r36484 - in /trunk/libsocialtext-resting-utils-perl: Changes META.yml Makefile.PL debian/changelog lib/Socialtext/Resting/DefaultRester.pm lib/Socialtext/Resting/Utils.pm t/getopt.t t/rester.conf t/wiki-localcopy.t
thialme-guest at users.alioth.debian.org
thialme-guest at users.alioth.debian.org
Tue May 26 23:08:36 UTC 2009
Author: thialme-guest
Date: Tue May 26 23:08:32 2009
New Revision: 36484
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=36484
Log:
Updated trunk with 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/lib/Socialtext/Resting/DefaultRester.pm
trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Utils.pm
trunk/libsocialtext-resting-utils-perl/t/getopt.t
trunk/libsocialtext-resting-utils-perl/t/rester.conf
trunk/libsocialtext-resting-utils-perl/t/wiki-localcopy.t
Modified: trunk/libsocialtext-resting-utils-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/Changes?rev=36484&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/Changes (original)
+++ trunk/libsocialtext-resting-utils-perl/Changes Tue May 26 23:08:32 2009
@@ -1,4 +1,7 @@
Revision history for Socialtext-Utils
+
+0.20 - Sat May 23 23:09:00 PDT 2009
+ - Bugfixes to better work with and without Crypt::CBC
0.19 - Mon Apr 20 11:22:58 PDT 2009
- s/localtime/gmtime/ when posting pages
Modified: trunk/libsocialtext-resting-utils-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/META.yml?rev=36484&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/META.yml (original)
+++ trunk/libsocialtext-resting-utils-perl/META.yml Tue May 26 23:08:32 2009
@@ -1,10 +1,11 @@
# 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.19
+version: 0.20
version_from: lib/Socialtext/Resting/Utils.pm
installdirs: site
requires:
+ Crypt::CBC: 0
Getopt::Long: 2.36
JSON::XS: 2.1
Socialtext::Resting: 0.27
Modified: trunk/libsocialtext-resting-utils-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/Makefile.PL?rev=36484&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/Makefile.PL (original)
+++ trunk/libsocialtext-resting-utils-perl/Makefile.PL Tue May 26 23:08:32 2009
@@ -15,6 +15,7 @@
'Getopt::Long' => '2.36',
'JSON::XS' => '2.1',
'YAML' => 0,
+ 'Crypt::CBC' => 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=36484&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/debian/changelog (original)
+++ trunk/libsocialtext-resting-utils-perl/debian/changelog Tue May 26 23:08:32 2009
@@ -1,3 +1,9 @@
+libsocialtext-resting-utils-perl (0.20-1) UNRELEASED; urgency=low
+
+ * New upstream release
+
+ -- Franck Joncourt <franck.mail at dthconnex.com> Wed, 27 May 2009 00:59:03 +0200
+
libsocialtext-resting-utils-perl (0.19-2) unstable; urgency=low
* Set maintainer to Debian Perl Group.
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=36484&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/DefaultRester.pm (original)
+++ trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/DefaultRester.pm Tue May 26 23:08:32 2009
@@ -82,7 +82,8 @@
}
sub _load_config {
- my $file = shift;
+ my $file = shift;
+ my $second_try = shift;
unless (-e $file) {
open(my $fh, ">$file") or die "Can't open $file: $!";
@@ -106,8 +107,10 @@
}
}
- if (-w $file and $opts{password} and $opts{password} !~ /^CRYPTED_/) {
- _change_password($file, $opts{password}) or return _load_config($file);
+ my $pw = $opts{password};
+ if (!$second_try and -w $file and $pw and $pw !~ /^CRYPTED_/) {
+ _change_password($file, $opts{password})
+ or return _load_config($file, 'i already tried once');
}
if ($opts{password} and $opts{password} =~ m/^CRYPTED_(.+)/) {
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=36484&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Utils.pm (original)
+++ trunk/libsocialtext-resting-utils-perl/lib/Socialtext/Resting/Utils.pm Tue May 26 23:08:32 2009
@@ -8,7 +8,7 @@
=cut
-our $VERSION = '0.19';
+our $VERSION = '0.20';
=head1 SYNOPSIS
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=36484&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/t/getopt.t (original)
+++ trunk/libsocialtext-resting-utils-perl/t/getopt.t Tue May 26 23:08:32 2009
@@ -53,7 +53,11 @@
open($fh, 't/rester.conf') or die;
my $contents = <$fh>;
close $fh;
- like $contents, qr/password = CRYPTED_\S+/, 'password was crypted';
+ eval 'require Crypt::CBC';
+ SKIP: {
+ skip "no Crypt::CBC", 1 if $@;
+ like $contents, qr/password = CRYPTED_\S+/, 'pw was crypted';
+ }
}
}
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=36484&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/t/rester.conf (original)
+++ trunk/libsocialtext-resting-utils-perl/t/rester.conf Tue May 26 23:08:32 2009
@@ -1,5 +1,5 @@
username = user-name
-password = pass-word
+password = CRYPTED_53616c7465645f5f2d397bd8c1652e2f91cd5a4e89a6c1a603aabd84b7340aea
workspace = work-space
server = http://socialtext.net
class = Socialtext::Resting::Mock
Modified: trunk/libsocialtext-resting-utils-perl/t/wiki-localcopy.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsocialtext-resting-utils-perl/t/wiki-localcopy.t?rev=36484&op=diff
==============================================================================
--- trunk/libsocialtext-resting-utils-perl/t/wiki-localcopy.t (original)
+++ trunk/libsocialtext-resting-utils-perl/t/wiki-localcopy.t Tue May 26 23:08:32 2009
@@ -81,12 +81,15 @@
exit;
-sub _make_tempdir {
- my $dir = "t/localstore.$$";
- rmtree $dir if -d $dir;
- mkpath $dir;
- END { rmtree $dir if $dir and -d $dir }
- return $dir;
+{
+ my $dir;
+ sub _make_tempdir {
+ $dir = "t/localstore.$$";
+ rmtree $dir if -d $dir;
+ mkpath $dir;
+ END { rmtree $dir if $dir and -d $dir }
+ return $dir;
+ }
}
sub _setup_rester {
More information about the Pkg-perl-cvs-commits
mailing list