r34091 - in /trunk/libyaml-syck-perl: Changes MANIFEST Makefile.PL README SIGNATURE debian/changelog debian/control lib/JSON/Syck.pm lib/YAML/Syck.pm t/json-loadfile.t

ryan52-guest at users.alioth.debian.org ryan52-guest at users.alioth.debian.org
Sat Apr 25 16:23:52 UTC 2009


Author: ryan52-guest
Date: Sat Apr 25 16:23:47 2009
New Revision: 34091

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=34091
Log:
* New upstream release
* Add myself to Uploaders
* Debian Policy 3.8.1

Added:
    trunk/libyaml-syck-perl/t/json-loadfile.t
      - copied unchanged from r34090, branches/upstream/libyaml-syck-perl/current/t/json-loadfile.t
Removed:
    trunk/libyaml-syck-perl/SIGNATURE
Modified:
    trunk/libyaml-syck-perl/Changes
    trunk/libyaml-syck-perl/MANIFEST
    trunk/libyaml-syck-perl/Makefile.PL
    trunk/libyaml-syck-perl/README
    trunk/libyaml-syck-perl/debian/changelog
    trunk/libyaml-syck-perl/debian/control
    trunk/libyaml-syck-perl/lib/JSON/Syck.pm
    trunk/libyaml-syck-perl/lib/YAML/Syck.pm

Modified: trunk/libyaml-syck-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libyaml-syck-perl/Changes?rev=34091&op=diff
==============================================================================
--- trunk/libyaml-syck-perl/Changes (original)
+++ trunk/libyaml-syck-perl/Changes Sat Apr 25 16:23:47 2009
@@ -1,3 +1,8 @@
+[Changes for 1.07 (JSON::Syck 0.30) - 2009-04-25]
+
+* Added the missing Loadfile function to JSON::Syck.
+  Reported by: Dan McCormick
+
 [Changes for 1.05 (JSON::Syck 0.29) - 2008-06-09]
 
 * Loading a YAML stream containing Regexp nodes under -d:DProf should

Modified: trunk/libyaml-syck-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libyaml-syck-perl/MANIFEST?rev=34091&op=diff
==============================================================================
--- trunk/libyaml-syck-perl/MANIFEST (original)
+++ trunk/libyaml-syck-perl/MANIFEST Sat Apr 25 16:23:47 2009
@@ -35,7 +35,6 @@
 ppport_math.h
 ppport_sort.h
 README
-SIGNATURE			Public-key signature (added by MakeMaker)
 syck.h
 Syck.xs
 syck_.c
@@ -52,6 +51,7 @@
 t/json-crlf.t
 t/json-empty.t
 t/json-indent.t
+t/json-loadfile.t
 t/json-minus.t
 t/json-newline.t
 t/json-null.t

Modified: trunk/libyaml-syck-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libyaml-syck-perl/Makefile.PL?rev=34091&op=diff
==============================================================================
--- trunk/libyaml-syck-perl/Makefile.PL (original)
+++ trunk/libyaml-syck-perl/Makefile.PL Sat Apr 25 16:23:47 2009
@@ -40,4 +40,4 @@
 include_deps    'Test::More';
 requires        'Scalar::Util';
 build_requires  'Devel::Leak' if defined $ENV{'AUTOMATED_TESTING'};
-sign; WriteAll;
+WriteAll;

Modified: trunk/libyaml-syck-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libyaml-syck-perl/README?rev=34091&op=diff
==============================================================================
--- trunk/libyaml-syck-perl/README (original)
+++ trunk/libyaml-syck-perl/README Sat Apr 25 16:23:47 2009
@@ -2,8 +2,8 @@
     YAML::Syck - Fast, lightweight YAML loader and dumper
 
 VERSION
-    This document describes version 1.01 of YAML::Syck, released January 18,
-    2008.
+    This document describes version 1.07 of YAML::Syck, released April 25,
+    2009.
 
 SYNOPSIS
         use YAML::Syck;
@@ -101,7 +101,7 @@
     Audrey Tang <cpan at audreyt.org>
 
 COPYRIGHT
-    Copyright 2005, 2006, 2007, 2008 by Audrey Tang <cpan at audreyt.org>.
+    Copyright 2005-2009 by Audrey Tang <cpan at audreyt.org>.
 
     This software is released under the MIT license cited below.
 

Modified: trunk/libyaml-syck-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libyaml-syck-perl/debian/changelog?rev=34091&op=diff
==============================================================================
--- trunk/libyaml-syck-perl/debian/changelog (original)
+++ trunk/libyaml-syck-perl/debian/changelog Sat Apr 25 16:23:47 2009
@@ -1,9 +1,15 @@
-libyaml-syck-perl (1.05-2) UNRELEASED; urgency=low
+libyaml-syck-perl (1.07-1) UNRELEASED; urgency=low
 
+  [ gregor herrmann ]
   * debian/control: Changed: Switched Vcs-Browser field to ViewSVN
     (source stanza).
 
- -- gregor herrmann <gregoa at debian.org>  Sun, 16 Nov 2008 20:49:37 +0100
+  [ Ryan Niebur ]
+  * New upstream release
+  * Add myself to Uploaders
+  * Debian Policy 3.8.1
+
+ -- Ryan Niebur <ryanryan52 at gmail.com>  Sat, 25 Apr 2009 09:23:38 -0700
 
 libyaml-syck-perl (1.05-1) unstable; urgency=low
 

Modified: trunk/libyaml-syck-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libyaml-syck-perl/debian/control?rev=34091&op=diff
==============================================================================
--- trunk/libyaml-syck-perl/debian/control (original)
+++ trunk/libyaml-syck-perl/debian/control Sat Apr 25 16:23:47 2009
@@ -3,8 +3,8 @@
 Priority: optional
 Build-Depends: perl (>= 5.6.0), debhelper (>= 5)
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: AGOSTINI Yves <agostini at univ-metz.fr>
-Standards-Version: 3.8.0
+Uploaders: AGOSTINI Yves <agostini at univ-metz.fr>, Ryan Niebur <ryanryan52 at gmail.com>
+Standards-Version: 3.8.1
 Homepage: http://search.cpan.org/dist/YAML-Syck/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libyaml-syck-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libyaml-syck-perl/

Modified: trunk/libyaml-syck-perl/lib/JSON/Syck.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libyaml-syck-perl/lib/JSON/Syck.pm?rev=34091&op=diff
==============================================================================
--- trunk/libyaml-syck-perl/lib/JSON/Syck.pm (original)
+++ trunk/libyaml-syck-perl/lib/JSON/Syck.pm Sat Apr 25 16:23:47 2009
@@ -5,7 +5,7 @@
 use YAML::Syck ();
 
 BEGIN {
-    $VERSION    = '0.29';
+    $VERSION    = '0.30';
     @EXPORT_OK  = qw( Load Dump LoadFile DumpFile );
     @ISA        = 'Exporter';
     *Load       = \&YAML::Syck::LoadJSON;
@@ -22,6 +22,19 @@
         open FH, "> $file" or die "Cannot write to $file: $!";
         print FH YAML::Syck::DumpJSON($_[0]);
         close FH;
+    }
+}
+
+
+sub LoadFile {
+    my $file = shift;
+    if ( YAML::Syck::_is_openhandle($file) ) {
+        YAML::Syck::LoadJSON(do { local $/; <$file> });
+    }
+    else {
+        local *FH;
+        open FH, "< $file" or die "Cannot read from $file: $!";
+        YAML::Syck::LoadJSON(do { local $/; <FH> });
     }
 }
 
@@ -142,7 +155,7 @@
 
 =head1 COPYRIGHT
 
-Copyright 2005, 2006, 2007, 2008 by Audrey Tang E<lt>cpan at audreyt.orgE<gt>.
+Copyright 2005-2009 by Audrey Tang E<lt>cpan at audreyt.orgE<gt>.
 
 This software is released under the MIT license cited below.
 

Modified: trunk/libyaml-syck-perl/lib/YAML/Syck.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libyaml-syck-perl/lib/YAML/Syck.pm?rev=34091&op=diff
==============================================================================
--- trunk/libyaml-syck-perl/lib/YAML/Syck.pm (original)
+++ trunk/libyaml-syck-perl/lib/YAML/Syck.pm Sat Apr 25 16:23:47 2009
@@ -13,7 +13,7 @@
 use Exporter;
 
 BEGIN {
-    $VERSION = '1.05';
+    $VERSION = '1.07';
     @EXPORT  = qw( Dump Load DumpFile LoadFile );
     @ISA     = qw( Exporter );
 
@@ -139,7 +139,7 @@
 
 =head1 VERSION
 
-This document describes version 1.04 of YAML::Syck, released February 17, 2008.
+This document describes version 1.07 of YAML::Syck, released April 25, 2009.
 
 =head1 SYNOPSIS
 
@@ -251,7 +251,7 @@
 
 =head1 COPYRIGHT
 
-Copyright 2005, 2006, 2007, 2008 by Audrey Tang E<lt>cpan at audreyt.orgE<gt>.
+Copyright 2005-2009 by Audrey Tang E<lt>cpan at audreyt.orgE<gt>.
 
 This software is released under the MIT license cited below.
 




More information about the Pkg-perl-cvs-commits mailing list