r50875 - in /trunk/libsocialtext-resting-utils-perl: ./ debian/ lib/Socialtext/ lib/Socialtext/Resting/ t/
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Wed Jan 13 19:36:38 UTC 2010
Author: jawnsy-guest
Date: Wed Jan 13 19:36:27 2010
New Revision: 50875
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=50875
Log:
New upstream release
Modified:
trunk/libsocialtext-resting-utils-perl/Changes
trunk/libsocialtext-resting-utils-perl/META.yml
trunk/libsocialtext-resting-utils-perl/Makefile.PL
trunk/libsocialtext-resting-utils-perl/debian/changelog
trunk/libsocialtext-resting-utils-perl/debian/control
trunk/libsocialtext-resting-utils-perl/lib/Socialtext/EditPage.pm
trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/DefaultRester.pm
trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Getopt.pm
trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Utils.pm
trunk/libsocialtext-resting-utils-perl/lib/Socialtext/WikiObject.pm
trunk/libsocialtext-resting-utils-perl/t/getopt.t
trunk/libsocialtext-resting-utils-perl/t/object.t
trunk/libsocialtext-resting-utils-perl/t/rester.conf
Modified: trunk/libsocialtext-resting-utils-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/Changes?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/Changes (original)
+++ trunk/libsocialtext-resting-utils-perl/Changes Wed Jan 13 19:36:27 2010
@@ -1,6 +1,10 @@
Revision history for Socialtext-Utils
-0.20 - Sat May 23 23:09:00 PDT 2009
+0.21 - Tue Jan 12 19:54:04 PST 2010
+ - Add dependency on Crypt::DES
+
+0.20 - Tue Apr 21 13:46:23 PDT 2009
+ - Add ability to use an NLW-user cookie instead of user/pass.
- Bugfixes to better work with and without Crypt::CBC
0.19 - Mon Apr 20 11:22:58 PDT 2009
Modified: trunk/libsocialtext-resting-utils-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/META.yml?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/META.yml (original)
+++ trunk/libsocialtext-resting-utils-perl/META.yml Wed Jan 13 19:36:27 2010
@@ -1,17 +1,29 @@
-# http://module-build.sourceforge.net/META-spec.html
-#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
-name: Socialtext-Resting-Utils
-version: 0.20
-version_from: lib/Socialtext/Resting/Utils.pm
-installdirs: site
+--- #YAML:1.0
+name: Socialtext-Resting-Utils
+version: 0.21
+abstract: Utilities for Socialtext REST APIs
+author:
+ - Luke Closs <cpan at 5thplane.com>
+license: unknown
+distribution_type: module
+configure_requires:
+ ExtUtils::MakeMaker: 0
+build_requires:
+ ExtUtils::MakeMaker: 0
requires:
- Crypt::CBC: 0
- Getopt::Long: 2.36
- JSON::XS: 2.1
- Socialtext::Resting: 0.27
- Test::Mock::LWP: 0
- Test::More: 0
- YAML: 0
-
-distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.17
+ Crypt::CBC: 0
+ Crypt::DES: 0
+ Getopt::Long: 2.36
+ JSON::XS: 2.01
+ Socialtext::Resting: 0.27
+ Test::Mock::LWP: 0
+ Test::More: 0
+ YAML: 0
+no_index:
+ directory:
+ - t
+ - inc
+generated_by: ExtUtils::MakeMaker version 6.50
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
Modified: trunk/libsocialtext-resting-utils-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/Makefile.PL?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/Makefile.PL (original)
+++ trunk/libsocialtext-resting-utils-perl/Makefile.PL Wed Jan 13 19:36:27 2010
@@ -13,9 +13,10 @@
'Test::More' => 0,
'Test::Mock::LWP' => 0,
'Getopt::Long' => '2.36',
- 'JSON::XS' => '2.1',
+ 'JSON::XS' => '2.01',
'YAML' => 0,
'Crypt::CBC' => 0,
+ 'Crypt::DES' => 0,
},
EXE_FILES => [
'bin/wikedit',
Modified: trunk/libsocialtext-resting-utils-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/debian/changelog?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/debian/changelog (original)
+++ trunk/libsocialtext-resting-utils-perl/debian/changelog Wed Jan 13 19:36:27 2010
@@ -1,3 +1,9 @@
+libsocialtext-resting-utils-perl (0.21-1) UNRELEASED; urgency=low
+
+ * New upstream release
+
+ -- Jonathan Yu <jawnsy at cpan.org> Wed, 13 Jan 2010 14:28:36 -0500
+
libsocialtext-resting-utils-perl (0.20-2) unstable; urgency=low
* Remove myself from Uploaders.
Modified: trunk/libsocialtext-resting-utils-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/debian/control?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/debian/control (original)
+++ trunk/libsocialtext-resting-utils-perl/debian/control Wed Jan 13 19:36:27 2010
@@ -3,7 +3,7 @@
Priority: optional
Build-Depends: debhelper (>= 5)
Build-Depends-Indep: perl, libtest-mock-lwp-perl, libsocialtext-resting-perl,
- libyaml-perl, libtest-pod-coverage-perl, libtest-pod-perl
+ libyaml-perl, libtest-pod-coverage-perl, libtest-pod-perl, libcrypt-des-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Franck Joncourt <franck.mail at dthconnex.com>
Standards-Version: 3.8.3
Modified: trunk/libsocialtext-resting-utils-perl/lib/Socialtext/EditPage.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/lib/Socialtext/EditPage.pm?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/lib/Socialtext/EditPage.pm (original)
+++ trunk/libsocialtext-resting-utils-perl/lib/Socialtext/EditPage.pm Wed Jan 13 19:36:27 2010
@@ -158,7 +158,7 @@
if ($@ =~ /412/) { # collision detected!
print "A collision was detected. I will merge the changes and "
. "re-open your editor.\nHit enter.\n";
- <>;
+ sleep 2;
print "Merging...\n";
$orig_content = $self->_get_page($page);
my $updated_file = _write_file(undef, $orig_content);
Modified: trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/DefaultRester.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/DefaultRester.pm?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/DefaultRester.pm (original)
+++ trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/DefaultRester.pm Wed Jan 13 19:36:27 2010
@@ -57,6 +57,12 @@
Your password will become crypted the first time it is loaded if Crypt::CBC
is installed.
+
+Alternately, you can use this format:
+
+ server = your-server
+ workspace = some-workspace
+ user_cookie = an-NLW-user-cookie
=cut
Modified: trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Getopt.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Getopt.pm?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Getopt.pm (original)
+++ trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Getopt.pm Wed Jan 13 19:36:27 2010
@@ -32,11 +32,12 @@
Getopt::Long::Configure('pass_through');
GetOptions(
\%opts,
- 'server=s',
- 'workspace=s',
- 'username=s',
- 'password=s',
- 'rester-config=s',
+ 'server|s=s',
+ 'workspace|w=s',
+ 'username|u=s',
+ 'password|p=s',
+ 'user_cookie=s',
+ 'rester-config|c=s',
);
Getopt::Long::Configure('no_pass_through');
return Socialtext::Resting::DefaultRester->new(%opts);
@@ -55,6 +56,7 @@
--server Socialtext server
--username User to login as
--password User password
+ --user_cookie NLW-user cookie to use (supercedes username & password)
--workspace Workspace to use
--rester-config Config file containing 'key = value'
Modified: trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Utils.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Utils.pm?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Utils.pm (original)
+++ trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Utils.pm Wed Jan 13 19:36:27 2010
@@ -8,7 +8,7 @@
=cut
-our $VERSION = '0.20';
+our $VERSION = '0.21';
=head1 SYNOPSIS
Modified: trunk/libsocialtext-resting-utils-perl/lib/Socialtext/WikiObject.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/lib/Socialtext/WikiObject.pm?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/lib/Socialtext/WikiObject.pm (original)
+++ trunk/libsocialtext-resting-utils-perl/lib/Socialtext/WikiObject.pm Wed Jan 13 19:36:27 2010
@@ -146,6 +146,7 @@
my $heading_level = length(shift || '') - $self->{heading_level_start};
my $new_heading = shift;
warn "hl=$heading_level hls=$self->{heading_level_start} ($new_heading)\n" if $DEBUG;
+ push @{$self->{headings}}, $new_heading;
my $cur_heading = $self->{current_heading};
while (@{$self->{parent_stack}} > $heading_level) {
Modified: trunk/libsocialtext-resting-utils-perl/t/getopt.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/t/getopt.t?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/t/getopt.t (original)
+++ trunk/libsocialtext-resting-utils-perl/t/getopt.t Wed Jan 13 19:36:27 2010
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use strict;
use warnings;
-use Test::More tests => 37;
+use Test::More tests => 51;
BEGIN {
use_ok 'Socialtext::Resting::Getopt', 'get_rester';
@@ -19,6 +19,11 @@
Rester_options: {
run_ok("--server foo", server => 'foo');
run_ok("--workspace monkey", workspace => 'monkey');
+}
+
+Shorthand: {
+ run_ok("-s foo", server => 'foo');
+ run_ok("-w monkey", workspace => 'monkey');
}
sub run_ok {
Modified: trunk/libsocialtext-resting-utils-perl/t/object.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/t/object.t?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/t/object.t (original)
+++ trunk/libsocialtext-resting-utils-perl/t/object.t Wed Jan 13 19:36:27 2010
@@ -41,6 +41,9 @@
Food
EOT
expected => {
+ headings => [
+ 'Currently listening to', 'Getting oriented',
+ ],
page => 'Test Page',
rester => $rester,
text => "Stuff\n",
@@ -75,6 +78,7 @@
items => [ 'Item 1', 'Item 2' ],
text => "Other text\nMore text\n",
},
+ headings => ['Contact Info'],
},
);
}
@@ -112,10 +116,10 @@
table => $table_two,
text => "These are some things I see:\n",
},
+ headings => ['Other things'],
},
);
}
-
exit;
sub object_ok {
@@ -249,6 +253,18 @@
items => [
$storyboards,
],
+ headings => [
+ 'Theme',
+ 'People',
+ 'Story Boards',
+ '[SetupApache]',
+ 'Tasks',
+ '[ModPerl HelloWorld]',
+ 'Tasks',
+ '[Styled Homepage]',
+ 'Tasks',
+ 'Other Information',
+ ],
};
push @data, {
@@ -298,6 +314,11 @@
items => [
$morning_top,
],
+ headings => [
+ 'Top of the morning',
+ 'Ball Tricks',
+ 'Club Tricks',
+ ],
};
push @data, {
page => $page_name,,
Modified: trunk/libsocialtext-resting-utils-perl/t/rester.conf
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/t/rester.conf?rev=50875&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/t/rester.conf (original)
+++ trunk/libsocialtext-resting-utils-perl/t/rester.conf Wed Jan 13 19:36:27 2010
@@ -1,5 +1,5 @@
username = user-name
-password = CRYPTED_53616c7465645f5f2d397bd8c1652e2f91cd5a4e89a6c1a603aabd84b7340aea
+password = CRYPTED_53616c7465645f5fbbf5d55045f42def3fafbc460b8f76e45cdd802553c46128
workspace = work-space
server = http://socialtext.net
class = Socialtext::Resting::Mock
More information about the Pkg-perl-cvs-commits
mailing list