r11532 - in /branches/upstream/libdata-serializer-perl/current: ./ lib/Data/ lib/Data/Serializer/ lib/Data/Serializer/Config/ lib/Data/Serializer/Data/ lib/Data/Serializer/JSON/ lib/Data/Serializer/PHP/ lib/Data/Serializer/XML/ lib/Data/Serializer/YAML/
gwolf at users.alioth.debian.org
gwolf at users.alioth.debian.org
Sun Dec 23 18:33:09 UTC 2007
Author: gwolf
Date: Sun Dec 23 18:33:08 2007
New Revision: 11532
URL: http://svn.debian.org/wsvn/?sc=1&rev=11532
Log:
[svn-upgrade] Integrating new upstream version, libdata-serializer-perl (0.43)
Added:
branches/upstream/libdata-serializer-perl/current/Build.PL
Modified:
branches/upstream/libdata-serializer-perl/current/Changes
branches/upstream/libdata-serializer-perl/current/MANIFEST
branches/upstream/libdata-serializer-perl/current/META.yml
branches/upstream/libdata-serializer-perl/current/Makefile.PL
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Config/General.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Cookbook.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Denter.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Dumper.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Taxi.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/FreezeThaw.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/JSON.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/JSON/Syck.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/PHP/Serialization.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Storable.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/XML/Dumper.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/XML/Simple.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/YAML.pm
branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/YAML/Syck.pm
Added: branches/upstream/libdata-serializer-perl/current/Build.PL
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/Build.PL?rev=11532&op=file
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/Build.PL (added)
+++ branches/upstream/libdata-serializer-perl/current/Build.PL Sun Dec 23 18:33:08 2007
@@ -1,0 +1,43 @@
+use Module::Build;
+my $build = Module::Build->new
+(
+ module_name => 'Data::Serializer',
+ dist_author => 'Neil Neely (neil at neely.cx)',
+ license => 'perl',
+ build_class => 'Module::Build',
+ requires => {
+ 'Exporter' => 0,
+ 'AutoLoader' => 0,
+ 'IO::File' => 0,
+ 'Digest::SHA' => 0,
+ 'Data::Dumper' => 2.08,
+ },
+ build_requires => {
+ 'AutoSplit' => 0,
+ 'IO::File' => 0,
+ 'Test::More' => 0,
+ 'File::Spec' => 0,
+ },
+ recommends => {
+ 'Crypt::CBC' => 0,
+ 'Crypt::Blowfish' => 0,
+ 'Data::Denter' => 0,
+ 'Data::Taxi' => 0,
+ 'Storable' => 0,
+ 'FreezeThaw' => 0,
+ 'Config::General' => 0,
+ 'YAML' => 0,
+ 'YAML::Syck' => 0,
+ 'PHP::Serialization' => 0,
+ 'JSON' => 0,
+ 'JSON::Syck' => 0,
+ 'XML::Simple' => 0,
+ 'XML::Dumper' => 0,
+ 'Compress::Zlib' => 0,
+ 'Compress::PPMd' => 0,
+ 'MIME::Base64' => 0,
+ },
+ autosplit => 'lib/Data/Serializer.pm',
+);
+$build->create_build_script;
+
Modified: branches/upstream/libdata-serializer-perl/current/Changes
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/Changes?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/Changes (original)
+++ branches/upstream/libdata-serializer-perl/current/Changes Sun Dec 23 18:33:08 2007
@@ -1,4 +1,14 @@
Revision history for Perl extension Data::Serializer
+
+0.43 Wed Dec 19 2007
+ - Converted to utilizing Module::Build to support recommended options
+ - Added recommended module list
+ - Added build_requires list
+ - Added use warnings calls to all modules
+ - Patched to support JSON 2 by Makamaka <makamaka at donzoko.net> (Thanks Makamaka!)
+ - Removed Autoloader from sub-modules
+ -sub modules are tiny two method affairs that really don't need autosplit - and Module::Build makes it a pain
+ - Removed 'require Exporter' from sub modules, as they weren't using them in anyway (just cleaning up)
0.42 Fri Oct 26 2007
- Added support for Compress::PPMd
Modified: branches/upstream/libdata-serializer-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/MANIFEST?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/MANIFEST (original)
+++ branches/upstream/libdata-serializer-perl/current/MANIFEST Sun Dec 23 18:33:08 2007
@@ -2,6 +2,7 @@
MANIFEST
README
INSTALL
+Build.PL
Makefile.PL
lib/Data/Serializer.pm
lib/Data/Serializer/Storable.pm
Modified: branches/upstream/libdata-serializer-perl/current/META.yml
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/META.yml?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/META.yml (original)
+++ branches/upstream/libdata-serializer-perl/current/META.yml Sun Dec 23 18:33:08 2007
@@ -1,17 +1,88 @@
---- #YAML:1.0
-name: Data-Serializer
-version: 0.42
-abstract: ~
-license: perl
-generated_by: ExtUtils::MakeMaker version 6.36
-distribution_type: module
-requires:
- Data::Dumper: 2.08
- Digest::SHA: 0
- IO::File: 0
- Test::More: 0
+---
+name: Data-Serializer
+version: 0.43
+author:
+ - Neil Neely (neil at neely.cx)
+abstract: Modules that serialize data structures
+license: perl
+resources:
+ license: http://dev.perl.org/licenses/
+requires:
+ AutoLoader: 0
+ Data::Dumper: 2.08
+ Digest::SHA: 0
+ Exporter: 0
+ IO::File: 0
+build_requires:
+ AutoSplit: 0
+ File::Spec: 0
+ IO::File: 0
+ Test::More: 0
+recommends:
+ Compress::PPMd: 0
+ Compress::Zlib: 0
+ Config::General: 0
+ Crypt::Blowfish: 0
+ Crypt::CBC: 0
+ Data::Denter: 0
+ Data::Taxi: 0
+ FreezeThaw: 0
+ JSON: 0
+ JSON::Syck: 0
+ MIME::Base64: 0
+ PHP::Serialization: 0
+ Storable: 0
+ XML::Dumper: 0
+ XML::Simple: 0
+ YAML: 0
+ YAML::Syck: 0
+provides:
+ Data::Serializer:
+ file: lib/Data/Serializer.pm
+ version: 0.43
+ Data::Serializer::Config::General:
+ file: lib/Data/Serializer/Config/General.pm
+ version: 0.02
+ Data::Serializer::Cookbook:
+ file: lib/Data/Serializer/Cookbook.pm
+ version: 0.03
+ Data::Serializer::Data::Denter:
+ file: lib/Data/Serializer/Data/Denter.pm
+ version: 0.02
+ Data::Serializer::Data::Dumper:
+ file: lib/Data/Serializer/Data/Dumper.pm
+ version: 0.05
+ Data::Serializer::Data::Taxi:
+ file: lib/Data/Serializer/Data/Taxi.pm
+ version: 0.02
+ Data::Serializer::FreezeThaw:
+ file: lib/Data/Serializer/FreezeThaw.pm
+ version: 0.02
+ Data::Serializer::JSON:
+ file: lib/Data/Serializer/JSON.pm
+ version: 0.02
+ Data::Serializer::JSON::Syck:
+ file: lib/Data/Serializer/JSON/Syck.pm
+ version: 0.02
+ Data::Serializer::PHP::Serialization:
+ file: lib/Data/Serializer/PHP/Serialization.pm
+ version: 0.02
+ Data::Serializer::Storable:
+ file: lib/Data/Serializer/Storable.pm
+ version: 0.03
+ Data::Serializer::XML::Dumper:
+ file: lib/Data/Serializer/XML/Dumper.pm
+ version: 0.02
+ Data::Serializer::XML::Simple:
+ file: lib/Data/Serializer/XML/Simple.pm
+ version: 0.02
+ Data::Serializer::YAML:
+ file: lib/Data/Serializer/YAML.pm
+ version: 0.02
+ Data::Serializer::YAML::Syck:
+ file: lib/Data/Serializer/YAML/Syck.pm
+ version: 0.02
+generated_by: Module::Build version 0.2808
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.2.html
- version: 1.2
-author:
- - Neil Neely (neil at neely.cx)
+ url: http://module-build.sourceforge.net/META-spec-v1.2.html
+ version: 1.2
Modified: branches/upstream/libdata-serializer-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/Makefile.PL?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/Makefile.PL (original)
+++ branches/upstream/libdata-serializer-perl/current/Makefile.PL Sun Dec 23 18:33:08 2007
@@ -1,21 +1,3 @@
-use ExtUtils::MakeMaker;
-
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written.
-#
-WriteMakefile(
- 'NAME' => 'Data::Serializer',
- 'DISTNAME' => 'Data-Serializer',
- 'VERSION_FROM' => 'lib/Data/Serializer.pm', # finds $VERSION
- 'AUTHOR' => 'Neil Neely (neil at neely.cx)',
- 'LICENSE' => 'perl',
- 'PREREQ_PM' => {
- 'IO::File' => 0,
- 'Digest::SHA' => 0,
- 'Data::Dumper' => 2.08,
- 'Test::More' => 0,
- },
- 'dist' => {'COMPRESS'=>'gzip -9f', 'SUFFIX' => 'gz',
- 'ZIP'=>'/usr/bin/zip','ZIPFLAGS'=>'-rl'}
-
-);
+use Module::Build::Compat;
+Module::Build::Compat->run_build_pl(args => \@ARGV);
+Module::Build::Compat->write_makefile(build_class => 'Module::Build');
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer.pm Sun Dec 23 18:33:08 2007
@@ -1,5 +1,6 @@
package Data::Serializer;
+use warnings;
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
@@ -17,7 +18,7 @@
@EXPORT = qw( );
@EXPORT_OK = qw( );
-$VERSION = '0.42';
+$VERSION = '0.43';
# Preloaded methods go here.
{
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Config/General.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Config/General.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Config/General.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Config/General.pm Sun Dec 23 18:33:08 2007
@@ -1,18 +1,15 @@
package Data::Serializer::Config::General;
BEGIN { @Data::Serializer::Config::General::ISA = qw(Data::Serializer) }
+use warnings;
use strict;
use Config::General;
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
+use vars qw($VERSION @ISA);
-require Exporter;
-require AutoLoader;
-
- at ISA = qw(Exporter AutoLoader);
- at EXPORT = qw();
-$VERSION = '0.01';
+$VERSION = '0.02';
sub options {
return (shift)->{options};
}
+
sub serialize {
my $self = (shift);
my $ref = (shift);
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Cookbook.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Cookbook.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Cookbook.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Cookbook.pm Sun Dec 23 18:33:08 2007
@@ -5,7 +5,7 @@
use strict;
use vars ('$VERSION');
-$VERSION = '0.02';
+$VERSION = '0.03';
1;
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Denter.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Denter.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Denter.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Denter.pm Sun Dec 23 18:33:08 2007
@@ -1,62 +1,16 @@
package Data::Serializer::Data::Denter;
BEGIN { @Data::Serializer::Data::Denter::ISA = qw(Data::Serializer) }
-
+use warnings;
use strict;
use Carp;
use Data::Denter;
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
-
-require Exporter;
-require AutoLoader;
-
- at ISA = qw(Exporter AutoLoader);
-# Items to export into callers namespace by default. Note: do not export
-# names by default without a very good reason. Use EXPORT_OK instead.
-# Do not simply export all your public functions/methods/constants.
- at EXPORT = qw(
-
-);
-$VERSION = '0.01';
+use vars qw($VERSION @ISA);
-# Preloaded methods go here.
-
-# Autoload methods go after =cut, and are processed by the autosplit program.
-
-1;
-__END__
-# Below is the stub of documentation for your module. You better edit it!
-
-=head1 NAME
-
-Data::Serializer::Data::Denter - Creates bridge between Data::Serializer and Data::Denter
-
-=head1 SYNOPSIS
-
- use Data::Serializer::Data::Denter;
-
-=head1 DESCRIPTION
-
-Module is used internally to Data::Serializer
-
-=head1 AUTHOR
-
-Neil Neely <neil at neely.cx>
-
-=head1 COPYRIGHT
-
- Copyright 2002 by Neil Neely. All rights reserved.
- This program is free software; you can redistribute it
- and/or modify it under the same terms as Perl itself.
-
-=head1 SEE ALSO
-
-perl(1), Data::Serializer(3), Data::Denter(3).
-
-=cut
+$VERSION = '0.02';
#
# Create a Data::Denter serializer object.
@@ -78,3 +32,45 @@
return Data::Denter::Undent($val);
}
+1;
+__END__
+
+#
+
+=head1 NAME
+
+Data::Serializer::Data::Denter - Creates bridge between Data::Serializer and Data::Denter
+
+=head1 SYNOPSIS
+
+ use Data::Serializer::Data::Denter;
+
+=head1 DESCRIPTION
+
+Module is used internally to Data::Serializer
+
+
+=over 4
+
+=item B<serialize> - Wrapper to normalize serializer method name
+
+=item B<deserialize> - Wrapper to normalize deserializer method name
+
+=back
+
+=head1 AUTHOR
+
+Neil Neely <neil at neely.cx>
+
+=head1 COPYRIGHT
+
+ Copyright 2002 by Neil Neely. All rights reserved.
+ This program is free software; you can redistribute it
+ and/or modify it under the same terms as Perl itself.
+
+=head1 SEE ALSO
+
+perl(1), Data::Serializer(3), Data::Denter(3).
+
+=cut
+
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Dumper.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Dumper.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Dumper.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Dumper.pm Sun Dec 23 18:33:08 2007
@@ -1,61 +1,16 @@
package Data::Serializer::Data::Dumper;
BEGIN { @Data::Serializer::Data::Dumper::ISA = qw(Data::Serializer) }
-
+use warnings;
use strict;
use Carp;
use Data::Dumper;
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
-
-require Exporter;
-require AutoLoader;
-
- at ISA = qw(Exporter AutoLoader);
-# Items to export into callers namespace by default. Note: do not export
-# names by default without a very good reason. Use EXPORT_OK instead.
-# Do not simply export all your public functions/methods/constants.
- at EXPORT = qw(
-
-);
-$VERSION = '0.04';
+use vars qw($VERSION @ISA);
-# Preloaded methods go here.
+$VERSION = '0.05';
-# Autoload methods go after =cut, and are processed by the autosplit program.
-
-1;
-__END__
-# Below is the stub of documentation for your module. You better edit it!
-
-=head1 NAME
-
-Data::Serializer::Data::Dumper - Creates bridge between Data::Serializer and Data::Dumper
-
-=head1 SYNOPSIS
-
- use Data::Serializer::Data::Dumper;
-
-=head1 DESCRIPTION
-
-Module is used internally to Data::Serializer
-
-=head1 AUTHOR
-
-Neil Neely <neil at neely.cx>
-
-=head1 COPYRIGHT
-
- Copyright 2001 by Neil Neely. All rights reserved.
- This program is free software; you can redistribute it
- and/or modify it under the same terms as Perl itself.
-
-=head1 SEE ALSO
-
-perl(1), Data::Serializer(3), Data::Dumper(3).
-
-=cut
#
# Create a Data::Dumper serializer object.
@@ -97,3 +52,48 @@
{
local $Data::Dumper::Terse;
}
+
+1;
+__END__
+
+#
+
+=head1 NAME
+
+Data::Serializer::Data::Dumper - Creates bridge between Data::Serializer and Data::Dumper
+
+=head1 SYNOPSIS
+
+ use Data::Serializer::Data::Dumper;
+
+=head1 DESCRIPTION
+
+Module is used internally to Data::Serializer
+
+
+=head1 METHODS
+
+=over 4
+
+=item B<serialize> - Wrapper to normalize serializer method name
+
+=item B<deserialize> - Wrapper to normalize deserializer method name
+
+=back
+
+=head1 AUTHOR
+
+Neil Neely <neil at neely.cx>
+
+=head1 COPYRIGHT
+
+ Copyright 2001 by Neil Neely. All rights reserved.
+ This program is free software; you can redistribute it
+ and/or modify it under the same terms as Perl itself.
+
+=head1 SEE ALSO
+
+perl(1), Data::Serializer(3), Data::Dumper(3).
+
+=cut
+
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Taxi.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Taxi.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Taxi.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Data/Taxi.pm Sun Dec 23 18:33:08 2007
@@ -1,31 +1,28 @@
package Data::Serializer::Data::Taxi;
BEGIN { @Data::Serializer::Data::Taxi::ISA = qw(Data::Serializer) }
-
+use warnings;
use strict;
use Data::Taxi;
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
+use vars qw($VERSION @ISA);
-require Exporter;
-require AutoLoader;
-
- at ISA = qw(Exporter AutoLoader);
-# Items to export into callers namespace by default. Note: do not export
-# names by default without a very good reason. Use EXPORT_OK instead.
-# Do not simply export all your public functions/methods/constants.
- at EXPORT = qw(
-
-);
-$VERSION = '0.01';
+$VERSION = '0.02';
-# Preloaded methods go here.
+sub serialize {
+ return Data::Taxi::freeze($_[1]);
+}
-# Autoload methods go after =cut, and are processed by the autosplit program.
+sub deserialize {
+ my ($obj) = Data::Taxi::thaw($_[1]);
+ return $obj;
+}
+
+
1;
__END__
-# Below is the stub of documentation for your module. You better edit it!
+#
=head1 NAME
@@ -38,6 +35,15 @@
=head1 DESCRIPTION
Module is used internally to Data::Serializer
+
+
+=over 4
+
+=item B<serialize> - Wrapper to normalize serializer method name
+
+=item B<deserialize> - Wrapper to normalize deserializer method name
+
+=back
=head1 AUTHOR
@@ -54,12 +60,3 @@
perl(1), Data::Serializer(3), Data::Taxi(3).
=cut
-
-sub serialize {
- return Data::Taxi::freeze($_[1]);
-}
-
-sub deserialize {
- my ($obj) = Data::Taxi::thaw($_[1]);
- return $obj;
-}
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/FreezeThaw.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/FreezeThaw.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/FreezeThaw.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/FreezeThaw.pm Sun Dec 23 18:33:08 2007
@@ -1,31 +1,26 @@
package Data::Serializer::FreezeThaw;
BEGIN { @Data::Serializer::FreezeThaw::ISA = qw(Data::Serializer) }
-
+use warnings;
use strict;
use FreezeThaw;
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
+use vars qw($VERSION @ISA);
-require Exporter;
-require AutoLoader;
-
- at ISA = qw(Exporter AutoLoader);
-# Items to export into callers namespace by default. Note: do not export
-# names by default without a very good reason. Use EXPORT_OK instead.
-# Do not simply export all your public functions/methods/constants.
- at EXPORT = qw(
-
-);
-$VERSION = '0.01';
+$VERSION = '0.02';
-# Preloaded methods go here.
+sub serialize {
+ return FreezeThaw::freeze($_[1]);
+}
-# Autoload methods go after =cut, and are processed by the autosplit program.
+sub deserialize {
+ my ($obj) = FreezeThaw::thaw($_[1]);
+ return $obj;
+}
1;
__END__
-# Below is the stub of documentation for your module. You better edit it!
+#
=head1 NAME
@@ -38,6 +33,15 @@
=head1 DESCRIPTION
Module is used internally to Data::Serializer
+
+
+=over 4
+
+=item B<serialize> - Wrapper to normalize serializer method name
+
+=item B<deserialize> - Wrapper to normalize deserializer method name
+
+=back
=head1 AUTHOR
@@ -55,11 +59,3 @@
=cut
-sub serialize {
- return FreezeThaw::freeze($_[1]);
-}
-
-sub deserialize {
- my ($obj) = FreezeThaw::thaw($_[1]);
- return $obj;
-}
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/JSON.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/JSON.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/JSON.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/JSON.pm Sun Dec 23 18:33:08 2007
@@ -1,29 +1,25 @@
package Data::Serializer::JSON;
BEGIN { @Data::Serializer::JSON::ISA = qw(Data::Serializer) }
+use warnings;
use strict;
use JSON;
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
+use vars qw($VERSION @ISA);
-require Exporter;
-require AutoLoader;
+$VERSION = '0.02';
- at ISA = qw(Exporter AutoLoader);
- at EXPORT = qw(
+sub serialize {
+ return JSON->VERSION < 2 ? JSON->new->objToJson($_[1]) : JSON->new->encode($_[1]);
+}
-);
-$VERSION = '0.01';
+sub deserialize {
+ return JSON->VERSION < 2 ? JSON->new->jsonToObj($_[1]) : JSON->new->decode($_[1]);
+}
1;
__END__
-sub serialize {
- return JSON->new->objToJson($_[1]);
-}
-sub deserialize {
- return JSON->new->jsonToObj($_[1]);
-}
=head1 NAME
@@ -50,6 +46,8 @@
Naoya Ito <naoya at bloghackers.net>
+Patch to JSON 2 by Makamaka <makamaka at donzoko.net>
+
=head1 COPYRIGHT
This program is free software; you can redistribute it
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/JSON/Syck.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/JSON/Syck.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/JSON/Syck.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/JSON/Syck.pm Sun Dec 23 18:33:08 2007
@@ -1,18 +1,20 @@
package Data::Serializer::JSON::Syck;
BEGIN { @Data::Serializer::JSON::Syck::ISA = qw(Data::Serializer) }
+use warnings;
use strict;
use JSON::Syck;
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
+use vars qw($VERSION @ISA);
-require Exporter;
-require AutoLoader;
+$VERSION = '0.02';
- at ISA = qw(Exporter AutoLoader);
- at EXPORT = qw(
-
-);
-$VERSION = '0.01';
+sub serialize {
+ return JSON::Syck::Dump($_[1]);
+}
+
+sub deserialize {
+ return JSON::Syck::Load($_[1]);
+}
1;
__END__
@@ -29,6 +31,15 @@
Module is used internally to Data::Serializer
+
+=over 4
+
+=item B<serialize> - Wrapper to normalize serializer method name
+
+=item B<deserialize> - Wrapper to normalize deserializer method name
+
+=back
+
=head1 AUTHOR
Naoya Ito <naoya at bloghackers.net>
@@ -44,10 +55,3 @@
=cut
-sub serialize {
- return JSON::Syck::Dump($_[1]);
-}
-
-sub deserialize {
- return JSON::Syck::Load($_[1]);
-}
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/PHP/Serialization.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/PHP/Serialization.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/PHP/Serialization.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/PHP/Serialization.pm Sun Dec 23 18:33:08 2007
@@ -1,31 +1,27 @@
package Data::Serializer::PHP::Serialization;
BEGIN { @Data::Serializer::PHP::Serialization::ISA = qw(Data::Serializer) }
-
+use warnings;
use strict;
use PHP::Serialization qw();
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
+use vars qw($VERSION @ISA);
-require Exporter;
-require AutoLoader;
+$VERSION = '0.02';
- at ISA = qw(Exporter AutoLoader);
-# Items to export into callers namespace by default. Note: do not export
-# names by default without a very good reason. Use EXPORT_OK instead.
-# Do not simply export all your public functions/methods/constants.
- at EXPORT = qw(
-
-);
-$VERSION = '0.01';
+sub serialize {
+ return PHP::Serialization::serialize($_[1]);
+}
+
+sub deserialize {
+ return PHP::Serialization::unserialize($_[1]);
+}
-# Preloaded methods go here.
-# Autoload methods go after =cut, and are processed by the autosplit program.
1;
__END__
-# Below is the stub of documentation for your module. You better edit it!
+#
=head1 NAME
@@ -38,6 +34,15 @@
=head1 DESCRIPTION
Module is used internally to Data::Serializer
+
+
+=over 4
+
+=item B<serialize> - Wrapper to normalize serializer method name
+
+=item B<deserialize> - Wrapper to normalize deserializer method name
+
+=back
=head1 AUTHOR
@@ -55,11 +60,3 @@
=cut
-sub serialize {
- return PHP::Serialization::serialize($_[1]);
-}
-
-sub deserialize {
- return PHP::Serialization::unserialize($_[1]);
-}
-
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Storable.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Storable.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Storable.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/Storable.pm Sun Dec 23 18:33:08 2007
@@ -1,59 +1,14 @@
package Data::Serializer::Storable;
BEGIN { @Data::Serializer::Storable::ISA = qw(Data::Serializer) }
-
+use warnings;
use strict;
use Storable;
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
+use vars qw($VERSION @ISA);
-require Exporter;
-require AutoLoader;
-
- at ISA = qw(Exporter AutoLoader);
-# Items to export into callers namespace by default. Note: do not export
-# names by default without a very good reason. Use EXPORT_OK instead.
-# Do not simply export all your public functions/methods/constants.
- at EXPORT = qw(
-
-);
-$VERSION = '0.02';
+$VERSION = '0.03';
-# Preloaded methods go here.
-
-# Autoload methods go after =cut, and are processed by the autosplit program.
-
-1;
-__END__
-# Below is the stub of documentation for your module. You better edit it!
-
-=head1 NAME
-
-Data::Serializer::Storable - Creates bridge between Data::Serializer and Storable
-
-=head1 SYNOPSIS
-
- use Data::Serializer::Storable;
-
-=head1 DESCRIPTION
-
-Module is used internally to Data::Serializer
-
-=head1 AUTHOR
-
-Neil Neely <neil at neely.cx>
-
-=head1 COPYRIGHT
-
- Copyright 2001 by Neil Neely. All rights reserved.
- This program is free software; you can redistribute it
- and/or modify it under the same terms as Perl itself.
-
-=head1 SEE ALSO
-
-perl(1), Data::Serializer(3), Data::Dumper(3).
-
-=cut
#
# Serialize a reference to supplied value
#
@@ -77,3 +32,45 @@
my $ret = Storable::thaw($_[1]); # Does not care whether portable
defined($ret) ? $ret : undef;
}
+
+1;
+__END__
+#
+
+=head1 NAME
+
+Data::Serializer::Storable - Creates bridge between Data::Serializer and Storable
+
+=head1 SYNOPSIS
+
+ use Data::Serializer::Storable;
+
+=head1 DESCRIPTION
+
+Module is used internally to Data::Serializer
+
+
+=over 4
+
+=item B<serialize> - Wrapper to normalize serializer method name
+
+=item B<deserialize> - Wrapper to normalize deserializer method name
+
+=back
+
+=head1 AUTHOR
+
+Neil Neely <neil at neely.cx>
+
+=head1 COPYRIGHT
+
+ Copyright 2001 by Neil Neely. All rights reserved.
+ This program is free software; you can redistribute it
+ and/or modify it under the same terms as Perl itself.
+
+=head1 SEE ALSO
+
+perl(1), Data::Serializer(3), Data::Dumper(3).
+
+=cut
+
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/XML/Dumper.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/XML/Dumper.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/XML/Dumper.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/XML/Dumper.pm Sun Dec 23 18:33:08 2007
@@ -1,32 +1,32 @@
package Data::Serializer::XML::Dumper;
BEGIN { @Data::Serializer::XML::Dumper::ISA = qw(Data::Serializer) }
-
+use warnings;
use strict;
use XML::Dumper qw();
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
+use vars qw($VERSION @ISA);
-require Exporter;
-require AutoLoader;
-
- at ISA = qw(Exporter AutoLoader);
-# Items to export into callers namespace by default. Note: do not export
-# names by default without a very good reason. Use EXPORT_OK instead.
-# Do not simply export all your public functions/methods/constants.
- at EXPORT = qw(
-
-);
-$VERSION = '0.01';
+$VERSION = '0.02';
-# Preloaded methods go here.
+sub serialize {
+ my $self = (shift);
+ my $xml = new XML::Dumper;
+ if (defined $self->{options} && $self->{options}->{dtd}) {
+ $xml->dtd;
+ }
+ return $xml->pl2xml( (shift) );
+}
-# Autoload methods go after =cut, and are processed by the autosplit program.
+sub deserialize {
+ my $xml = new XML::Dumper;
+ return $xml->xml2pl($_[1]);
+}
1;
__END__
-# Below is the stub of documentation for your module. You better edit it!
+#
=head1 NAME
@@ -42,6 +42,15 @@
The only option currently supported is B<dtd>. This just calls the dtd method of XML::Dumper
prior to serializing the data. See XML::Dumper(3) for details.
+
+
+=over 4
+
+=item B<serialize> - Wrapper to normalize serializer method name
+
+=item B<deserialize> - Wrapper to normalize deserializer method name
+
+=back
=head1 AUTHOR
@@ -59,17 +68,4 @@
=cut
-sub serialize {
- my $self = (shift);
- my $xml = new XML::Dumper;
- if (defined $self->{options} && $self->{options}->{dtd}) {
- $xml->dtd;
- }
- return $xml->pl2xml( (shift) );
-}
-sub deserialize {
- my $xml = new XML::Dumper;
- return $xml->xml2pl($_[1]);
-}
-
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/XML/Simple.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/XML/Simple.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/XML/Simple.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/XML/Simple.pm Sun Dec 23 18:33:08 2007
@@ -1,32 +1,28 @@
package Data::Serializer::XML::Simple;
BEGIN { @Data::Serializer::XML::Simple::ISA = qw(Data::Serializer) }
-
+use warnings;
use strict;
use XML::Simple qw();
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
+use vars qw($VERSION @ISA);
-require Exporter;
-require AutoLoader;
-
- at ISA = qw(Exporter AutoLoader);
-# Items to export into callers namespace by default. Note: do not export
-# names by default without a very good reason. Use EXPORT_OK instead.
-# Do not simply export all your public functions/methods/constants.
- at EXPORT = qw(
-
-);
-$VERSION = '0.01';
+$VERSION = '0.02';
+sub serialize {
+ my $self = (shift);
+ my $xml = XML::Simple->new(keyattr => [ 'name']);
+ return $xml->XMLout( (shift) );
+}
-# Preloaded methods go here.
-
-# Autoload methods go after =cut, and are processed by the autosplit program.
+sub deserialize {
+ my $xml = XML::Simple->new(keyattr => [ 'name']);
+ return $xml->XMLin($_[1]);
+}
1;
__END__
-# Below is the stub of documentation for your module. You better edit it!
+#
=head1 NAME
@@ -42,6 +38,15 @@
The only option currently supported is B<dtd>. This just calls the dtd method of XML::Simple
prior to serializing the data. See XML::Simple(3) for details.
+
+
+=over 4
+
+=item B<serialize> - Wrapper to normalize serializer method name
+
+=item B<deserialize> - Wrapper to normalize deserializer method name
+
+=back
=head1 AUTHOR
@@ -59,14 +64,4 @@
=cut
-sub serialize {
- my $self = (shift);
- my $xml = XML::Simple->new(keyattr => [ 'name']);
- return $xml->XMLout( (shift) );
-}
-sub deserialize {
- my $xml = XML::Simple->new(keyattr => [ 'name']);
- return $xml->XMLin($_[1]);
-}
-
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/YAML.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/YAML.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/YAML.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/YAML.pm Sun Dec 23 18:33:08 2007
@@ -1,31 +1,26 @@
package Data::Serializer::YAML;
BEGIN { @Data::Serializer::YAML::ISA = qw(Data::Serializer) }
-
+use warnings;
use strict;
use YAML;
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
+use vars qw($VERSION @ISA);
-require Exporter;
-require AutoLoader;
+$VERSION = '0.02';
- at ISA = qw(Exporter AutoLoader);
-# Items to export into callers namespace by default. Note: do not export
-# names by default without a very good reason. Use EXPORT_OK instead.
-# Do not simply export all your public functions/methods/constants.
- at EXPORT = qw(
-
-);
-$VERSION = '0.01';
+sub serialize {
+ return Dump($_[1]);
+}
+
+sub deserialize {
+ return Load($_[1]);
+}
-# Preloaded methods go here.
-
-# Autoload methods go after =cut, and are processed by the autosplit program.
1;
__END__
-# Below is the stub of documentation for your module. You better edit it!
+#
=head1 NAME
@@ -38,6 +33,15 @@
=head1 DESCRIPTION
Module is used internally to Data::Serializer
+
+
+=over 4
+
+=item B<serialize> - Wrapper to normalize serializer method name
+
+=item B<deserialize> - Wrapper to normalize deserializer method name
+
+=back
=head1 AUTHOR
@@ -55,10 +59,3 @@
=cut
-sub serialize {
- return Dump($_[1]);
-}
-
-sub deserialize {
- return Load($_[1]);
-}
Modified: branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/YAML/Syck.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/YAML/Syck.pm?rev=11532&op=diff
==============================================================================
--- branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/YAML/Syck.pm (original)
+++ branches/upstream/libdata-serializer-perl/current/lib/Data/Serializer/YAML/Syck.pm Sun Dec 23 18:33:08 2007
@@ -1,18 +1,20 @@
package Data::Serializer::YAML::Syck;
BEGIN { @Data::Serializer::YAML::Syck::ISA = qw(Data::Serializer) }
+use warnings;
use strict;
use YAML::Syck;
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
+use vars qw($VERSION @ISA);
-require Exporter;
-require AutoLoader;
+$VERSION = '0.02';
- at ISA = qw(Exporter AutoLoader);
- at EXPORT = qw(
-
-);
-$VERSION = '0.01';
+sub serialize {
+ return YAML::Syck::Dump($_[1]);
+}
+
+sub deserialize {
+ return YAML::Syck::Load($_[1]);
+}
1;
__END__
@@ -29,6 +31,15 @@
Module is used internally to Data::Serializer
+
+=over 4
+
+=item B<serialize> - Wrapper to normalize serializer method name
+
+=item B<deserialize> - Wrapper to normalize deserializer method name
+
+=back
+
=head1 AUTHOR
Naoya Ito <naoya at bloghackers.net>
@@ -44,10 +55,3 @@
=cut
-sub serialize {
- return YAML::Syck::Dump($_[1]);
-}
-
-sub deserialize {
- return YAML::Syck::Load($_[1]);
-}
More information about the Pkg-perl-cvs-commits
mailing list