r66313 - in /branches/upstream/libsocialtext-resting-perl/current: Changes META.yml bin/st-webhook lib/Socialtext/Resting.pm t/resting.t
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Sat Dec 25 15:07:15 UTC 2010
Author: jawnsy-guest
Date: Sat Dec 25 15:07:08 2010
New Revision: 66313
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=66313
Log:
[svn-upgrade] new version libsocialtext-resting-perl (0.35)
Modified:
branches/upstream/libsocialtext-resting-perl/current/Changes
branches/upstream/libsocialtext-resting-perl/current/META.yml
branches/upstream/libsocialtext-resting-perl/current/bin/st-webhook
branches/upstream/libsocialtext-resting-perl/current/lib/Socialtext/Resting.pm
branches/upstream/libsocialtext-resting-perl/current/t/resting.t
Modified: branches/upstream/libsocialtext-resting-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libsocialtext-resting-perl/current/Changes?rev=66313&op=diff
==============================================================================
--- branches/upstream/libsocialtext-resting-perl/current/Changes (original)
+++ branches/upstream/libsocialtext-resting-perl/current/Changes Sat Dec 25 15:07:08 2010
@@ -1,3 +1,8 @@
+0.35 - Wed Nov 17 20:04:07 PST 2010
+ - adds a --group-id option to the command line
+ - adds a ->offset method for requests
+ - adds a ->get_sheet_cell for Socialcalc sheet read API
+
0.34 - Fri Jul 16 09:35:49 PDT 2010
- Include st-webhook in the MANIFEST. Doh.
Modified: branches/upstream/libsocialtext-resting-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libsocialtext-resting-perl/current/META.yml?rev=66313&op=diff
==============================================================================
--- branches/upstream/libsocialtext-resting-perl/current/META.yml (original)
+++ branches/upstream/libsocialtext-resting-perl/current/META.yml Sat Dec 25 15:07:08 2010
@@ -1,31 +1,23 @@
--- #YAML:1.0
-name: Socialtext-Resting
-version: 0.34
-abstract: Simple tool to use Socialtext RESTful API
-author:
+name: Socialtext-Resting
+version: 0.35
+abstract: Simple tool to use Socialtext RESTful API
+license: ~
+author:
- Chris Dent <chris.dent at socialtext.com>, Kirsten Jones <kirsten.jones at socialtext.com>
-license: unknown
-distribution_type: module
-configure_requires:
- ExtUtils::MakeMaker: 0
-build_requires:
- ExtUtils::MakeMaker: 0
-requires:
- App::Options: 0
- Class::Field: 0
- HTTP::Request: 0
- IPC::Run: 0
- JSON::XS: 2.1
- LWP::UserAgent: 0
- Pod::Usage: 0
- Readonly: 0
- Test::Mock::LWP: 0.05
- URI::Escape: 1.31
-no_index:
- directory:
- - t
- - inc
-generated_by: ExtUtils::MakeMaker version 6.56
+generated_by: ExtUtils::MakeMaker version 6.44
+distribution_type: module
+requires:
+ App::Options: 0
+ Class::Field: 0
+ HTTP::Request: 0
+ IPC::Run: 0
+ JSON::XS: 2.1
+ LWP::UserAgent: 0
+ Pod::Usage: 0
+ Readonly: 0
+ Test::Mock::LWP: 0.05
+ URI::Escape: 1.31
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ url: http://module-build.sourceforge.net/META-spec-v1.3.html
+ version: 1.3
Modified: branches/upstream/libsocialtext-resting-perl/current/bin/st-webhook
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libsocialtext-resting-perl/current/bin/st-webhook?rev=66313&op=diff
==============================================================================
--- branches/upstream/libsocialtext-resting-perl/current/bin/st-webhook (original)
+++ branches/upstream/libsocialtext-resting-perl/current/bin/st-webhook Sat Dec 25 15:07:08 2010
@@ -17,10 +17,12 @@
'id=s',
'account-id=s',
'workspace-id=s',
+ 'group-id=s',
);
$args{account_id} = delete $args{'account-id'} if $args{'account-id'};
$args{workspace_id} = delete $args{'workspace-id'} if $args{'workspace-id'};
+$args{group_id} = delete $args{'group-id'} if $args{'group-id'};
my $command = shift || usage();
my %commands = (
Modified: branches/upstream/libsocialtext-resting-perl/current/lib/Socialtext/Resting.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libsocialtext-resting-perl/current/lib/Socialtext/Resting.pm?rev=66313&op=diff
==============================================================================
--- branches/upstream/libsocialtext-resting-perl/current/lib/Socialtext/Resting.pm (original)
+++ branches/upstream/libsocialtext-resting-perl/current/lib/Socialtext/Resting.pm Sat Dec 25 15:07:08 2010
@@ -11,7 +11,7 @@
use Readonly;
-our $VERSION = '0.34';
+our $VERSION = '0.35';
=head1 NAME
@@ -53,6 +53,7 @@
pageattachment => $BASE_WS_URI
. '/:ws/pages/:pname/attachments/:attachment_id',
pageattachments => $BASE_WS_URI . '/:ws/pages/:pname/attachments',
+ sheetcells => $BASE_WS_URI . '/:ws/sheets/:pname/cells/:cellid',
revisions => $BASE_WS_URI . '/:ws/pages/:pname/revisions',
taggedpages => $BASE_WS_URI . '/:ws/tags/:tag/pages',
workspace => $BASE_WS_URI . '/:ws',
@@ -84,6 +85,7 @@
field 'accept';
field 'filter';
field 'order';
+field 'offset';
field 'count';
field 'query';
field 'etag_cache' => {};
@@ -586,6 +588,23 @@
return $self->_get_things( 'pageattachments', pname => $pname );
}
+=head2 get_sheet_cell
+
+ $Rester->get_sheet_cell($page, $cellid)
+
+Get the value of a cell in a spreadsheet.
+
+=cut
+
+sub get_sheet_cell {
+ my $self = shift;
+ my $pname = shift;
+ my $cellid = shift;
+
+ return $self->_get_things('sheetcells', pname => $pname,
+ cellid => $cellid);
+}
+
=head2 get_revisions
$Rester->get_revisions($page)
@@ -630,6 +649,9 @@
}
if ( $self->order ) {
push (@extend, "order=" . $self->order);
+ }
+ if ( $self->offset ) {
+ push (@extend, "offset=" . $self->offset);
}
if ( $self->count ) {
push (@extend, "count=" . $self->count);
Modified: branches/upstream/libsocialtext-resting-perl/current/t/resting.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libsocialtext-resting-perl/current/t/resting.t?rev=66313&op=diff
==============================================================================
--- branches/upstream/libsocialtext-resting-perl/current/t/resting.t (original)
+++ branches/upstream/libsocialtext-resting-perl/current/t/resting.t Sat Dec 25 15:07:08 2010
@@ -105,7 +105,7 @@
return Socialtext::Resting->new(
username => $strut_user,
password => 'dozing',
- server => 'http://www.socialtext.net',
+ server => 'https://www.socialtext.net',
workspace => 'st-rest-test',
);
}
More information about the Pkg-perl-cvs-commits
mailing list