diff -Nru libdata-dump-perl-1.23/Changes libdata-dump-perl-1.25/Changes --- libdata-dump-perl-1.23/Changes 2015-06-09 18:48:03.000000000 +0000 +++ libdata-dump-perl-1.25/Changes 2021-06-26 04:01:16.000000000 +0000 @@ -1,3 +1,23 @@ +2021-06-26 Breno G. de Oliveira + + Release 1.25 + + New option $Data::Dump::LINEWIDTH controls when to perform a + linebreak (default is 60). Many thanks to Jonas Kramer, Rob Kinyon, + cybernicus and Lady Aleena for submitting reports and pull requests. + + + +2021-06-25 Breno G. de Oliveira + + Release 1.24 + + Strings like "NaN" are still strings + + Update maintainer and repository information + + + 2015-06-09 Gisle Aas Release 1.23 diff -Nru libdata-dump-perl-1.23/debian/changelog libdata-dump-perl-1.25/debian/changelog --- libdata-dump-perl-1.23/debian/changelog 2020-12-21 14:34:31.000000000 +0000 +++ libdata-dump-perl-1.25/debian/changelog 2021-09-26 13:36:24.000000000 +0000 @@ -1,3 +1,50 @@ +libdata-dump-perl (1.25-1) unstable; urgency=medium + + * Team upload. + + [ Salvatore Bonaccorso ] + * debian/control: Use HTTPS transport protocol for Vcs-Git URI + + [ gregor herrmann ] + * debian/copyright: change Copyright-Format 1.0 URL to HTTPS. + * debian/upstream/metadata: change GitHub/CPAN URL(s) to HTTPS. + * Remove Jonathan Yu from Uploaders. Thanks for your work! + * Remove Jotam Jr. Trejo from Uploaders. Thanks for your work! + * Remove Rene Mayorga from Uploaders. Thanks for your work! + + [ Alex Muntada ] + * Remove inactive pkg-perl members from Uploaders. + + [ Salvatore Bonaccorso ] + * Update Vcs-* headers for switch to salsa.debian.org + + [ Debian Janitor ] + * Bump debhelper from deprecated 8 to 12. + * Set debhelper-compat version in Build-Depends. + * Set upstream metadata fields: Bug-Database, Repository, Repository- + Browse. + * Remove obsolete fields Contact, Name from debian/upstream/metadata + (already present in machine-readable debian/copyright). + + [ gregor herrmann ] + * debian/copyright: replace tabs with spaces / remove trailing + whitespace. + * debian/watch: use uscan version 4. + + [ Debian Janitor ] + * Set upstream metadata fields: Bug-Submit. + + [ gregor herrmann ] + * Import upstream version 1.25. + * Update Upstream-Contact. + * Update debian/upstream/metadata. + * Update years of packaging copyright. + * Declare compliance with Debian Policy 4.6.0. + * Set Rules-Requires-Root: no. + * Bump debhelper-compat to 13. + + -- gregor herrmann Sun, 26 Sep 2021 15:36:24 +0200 + libdata-dump-perl (1.23-1.1) unstable; urgency=medium * Non maintainer upload by the Reproducible Builds team. diff -Nru libdata-dump-perl-1.23/debian/compat libdata-dump-perl-1.25/debian/compat --- libdata-dump-perl-1.23/debian/compat 2015-06-15 20:04:03.000000000 +0000 +++ libdata-dump-perl-1.25/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -8 diff -Nru libdata-dump-perl-1.23/debian/control libdata-dump-perl-1.25/debian/control --- libdata-dump-perl-1.23/debian/control 2015-06-15 20:04:03.000000000 +0000 +++ libdata-dump-perl-1.25/debian/control 2021-09-26 13:36:24.000000000 +0000 @@ -1,22 +1,22 @@ Source: libdata-dump-perl +Maintainer: Debian Perl Group +Uploaders: Ansgar Burchardt , + Salvatore Bonaccorso Section: perl +Testsuite: autopkgtest-pkg-perl Priority: optional -Maintainer: Debian Perl Group -Build-Depends: debhelper (>= 8) +Build-Depends: debhelper-compat (= 13) Build-Depends-Indep: perl -Uploaders: Krzysztof Krzyżaniak (eloy) , - Rene Mayorga , Ansgar Burchardt , - Jonathan Yu , Jotam Jr. Trejo , - Salvatore Bonaccorso -Standards-Version: 3.9.6 +Standards-Version: 4.6.0 +Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libdata-dump-perl +Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libdata-dump-perl.git Homepage: https://metacpan.org/release/Data-Dump -Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libdata-dump-perl.git -Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libdata-dump-perl.git -Testsuite: autopkgtest-pkg-perl +Rules-Requires-Root: no Package: libdata-dump-perl Architecture: all -Depends: ${perl:Depends}, ${misc:Depends} +Depends: ${misc:Depends}, + ${perl:Depends} Description: Perl module to help dump data structures Data::Dump provides a single function called dump that takes a list of values as its argument and produces a string as its result. The string contains Perl diff -Nru libdata-dump-perl-1.23/debian/copyright libdata-dump-perl-1.25/debian/copyright --- libdata-dump-perl-1.23/debian/copyright 2015-06-15 20:04:03.000000000 +0000 +++ libdata-dump-perl-1.25/debian/copyright 2021-09-26 13:36:24.000000000 +0000 @@ -1,6 +1,6 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Data-Dump -Upstream-Contact: Gisle Aas +Upstream-Contact: Breno G. de Oliveira Source: https://metacpan.org/release/Data-Dump Files: * @@ -16,7 +16,7 @@ Copyright: 2006-2010, Krzysztof Krzyzaniak (eloy) 2008-2009, Ansgar Burchardt 2008, Rene Mayorga - 2008, gregor herrmann + 2008-2021, gregor herrmann 2009, Jonathan Yu 2010, Jotam Jr. Trejo 2011-2015, Salvatore Bonaccorso @@ -36,4 +36,4 @@ any later version. . On Debian systems, the complete text of version 1 of the GNU General - Public License can be found in `/usr/share/common-licenses/GPL-1'. + Public License can be found in `/usr/share/common-licenses/GPL-1'. diff -Nru libdata-dump-perl-1.23/debian/upstream/metadata libdata-dump-perl-1.25/debian/upstream/metadata --- libdata-dump-perl-1.23/debian/upstream/metadata 2015-06-15 20:04:03.000000000 +0000 +++ libdata-dump-perl-1.25/debian/upstream/metadata 2021-09-26 13:36:24.000000000 +0000 @@ -1,5 +1,6 @@ --- Archive: CPAN -Contact: Gisle Aas -Name: Data-Dump -Repository: http://github.com/gisle/data-dump +Bug-Database: https://github.com/garu/data-dump/issues +Bug-Submit: https://github.com/garu/data-dump/issues/new +Repository: https://github.com/garu/data-dump.git +Repository-Browse: https://github.com/garu/data-dump diff -Nru libdata-dump-perl-1.23/debian/watch libdata-dump-perl-1.25/debian/watch --- libdata-dump-perl-1.23/debian/watch 2015-06-15 20:04:03.000000000 +0000 +++ libdata-dump-perl-1.25/debian/watch 2021-09-26 13:36:24.000000000 +0000 @@ -1,2 +1,2 @@ -version=3 -https://metacpan.org/release/Data-Dump .*/Data-Dump-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) +version=4 +https://metacpan.org/release/Data-Dump .*/Data-Dump-v?@ANY_VERSION@@ARCHIVE_EXT@$ diff -Nru libdata-dump-perl-1.23/lib/Data/Dump/Trace.pm libdata-dump-perl-1.25/lib/Data/Dump/Trace.pm --- libdata-dump-perl-1.23/lib/Data/Dump/Trace.pm 2013-05-16 22:07:58.000000000 +0000 +++ libdata-dump-perl-1.25/lib/Data/Dump/Trace.pm 2021-06-26 01:53:51.000000000 +0000 @@ -401,11 +401,4 @@ L -=head1 AUTHOR - -Copyright 2009 Gisle Aas. - -This library is free software; you can redistribute it and/or -modify it under the same terms as Perl itself. - =cut diff -Nru libdata-dump-perl-1.23/lib/Data/Dump.pm libdata-dump-perl-1.25/lib/Data/Dump.pm --- libdata-dump-perl-1.23/lib/Data/Dump.pm 2015-06-09 18:44:42.000000000 +0000 +++ libdata-dump-perl-1.25/lib/Data/Dump.pm 2021-06-26 04:01:16.000000000 +0000 @@ -9,14 +9,15 @@ @EXPORT = qw(dd ddx); @EXPORT_OK = qw(dump pp dumpf quote); -$VERSION = "1.23"; +$VERSION = "1.25"; $DEBUG = 0; use overload (); -use vars qw(%seen %refcnt @dump @fixup %require $TRY_BASE64 @FILTERS $INDENT); +use vars qw(%seen %refcnt @dump @fixup %require $TRY_BASE64 @FILTERS $INDENT $LINEWIDTH); $TRY_BASE64 = 50 unless defined $TRY_BASE64; $INDENT = " " unless defined $INDENT; +$LINEWIDTH = 60 unless defined $LINEWIDTH; sub dump { @@ -229,6 +230,9 @@ if (!defined $$rval) { $out = "undef"; } + elsif ($$rval =~ /^-?(?:nan|inf)/i) { + $out = str($$rval); + } elsif (do {no warnings 'numeric'; $$rval + 0 eq $$rval}) { $out = $$rval; } @@ -326,7 +330,7 @@ my $nl = ""; my $klen_pad = 0; my $tmp = "@keys @vals"; - if (length($tmp) > 60 || $tmp =~ /\n/ || $tied) { + if (length($tmp) > $LINEWIDTH || $tmp =~ /\n/ || $tied) { $nl = "\n"; # Determine what padding to add @@ -466,7 +470,7 @@ } } my $tmp = "@_"; - if ($comment || (@_ > $indent_lim && (length($tmp) > 60 || $tmp =~ /\n/))) { + if ($comment || (@_ > $indent_lim && (length($tmp) > $LINEWIDTH || $tmp =~ /\n/))) { my @elem = @_; for (@elem) { s/^/$INDENT/gm; } return "\n" . ($comment ? "$INDENT# $comment\n" : "") . @@ -569,10 +573,9 @@ =head1 DESCRIPTION -This module provide a few functions that traverse their -argument and produces a string as its result. The string contains -Perl code that, when Ced, produces a deep copy of the original -arguments. +This module provides a few functions that traverse their +argument list and return a string containing Perl code that, +when Ced, produces a deep copy of the original arguments. The main feature of the module is that it strives to produce output that is easy to read. Example: @@ -673,6 +676,11 @@ How long must a binary string be before we try to use the base64 encoding for the dump output. The default is 50. Set it to 0 to disable base64 dumps. +=item $Data::Dump::LINEWIDTH + +This controls how wide the string should before we add a line break. The +default is 60. + =back @@ -714,6 +722,8 @@ Copyright 1998-2010 Gisle Aas. Copyright 1996-1998 Gurusamy Sarathy. +This distribution is currenly maintained by Breno G. de Oliveira. + This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff -Nru libdata-dump-perl-1.23/Makefile.PL libdata-dump-perl-1.25/Makefile.PL --- libdata-dump-perl-1.23/Makefile.PL 2013-04-11 19:51:45.000000000 +0000 +++ libdata-dump-perl-1.25/Makefile.PL 2021-06-26 01:53:24.000000000 +0000 @@ -13,7 +13,9 @@ }, META_MERGE => { resources => { - repository => 'http://github.com/gisle/data-dump', + repository => 'http://github.com/garu/data-dump', + license => 'http://dev.perl.org/licenses/', + bugtracker => 'https://github.com/garu/data-dump/issues/', }, recommends => { 'MIME::Base64' => 0, diff -Nru libdata-dump-perl-1.23/MANIFEST libdata-dump-perl-1.25/MANIFEST --- libdata-dump-perl-1.23/MANIFEST 2015-06-09 18:50:41.000000000 +0000 +++ libdata-dump-perl-1.25/MANIFEST 2021-06-26 04:04:22.000000000 +0000 @@ -5,7 +5,7 @@ lib/Data/Dump/FilterContext.pm Makefile.PL MANIFEST -README +README.md t/dd.t t/dollar-one.t t/dump.t diff -Nru libdata-dump-perl-1.23/META.json libdata-dump-perl-1.25/META.json --- libdata-dump-perl-1.23/META.json 2015-06-09 18:50:41.000000000 +0000 +++ libdata-dump-perl-1.25/META.json 2021-06-26 04:04:22.000000000 +0000 @@ -4,13 +4,13 @@ "Gisle Aas " ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150001", + "generated_by" : "ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", - "version" : "2" + "version" : 2 }, "name" : "Data-Dump", "no_index" : { @@ -42,9 +42,16 @@ }, "release_status" : "stable", "resources" : { + "bugtracker" : { + "web" : "https://github.com/garu/data-dump/issues/" + }, + "license" : [ + "http://dev.perl.org/licenses/" + ], "repository" : { - "url" : "http://github.com/gisle/data-dump" + "url" : "http://github.com/garu/data-dump" } }, - "version" : "1.23" + "version" : "1.25", + "x_serialization_backend" : "JSON::PP version 4.06" } diff -Nru libdata-dump-perl-1.23/META.yml libdata-dump-perl-1.25/META.yml --- libdata-dump-perl-1.23/META.yml 2015-06-09 18:50:41.000000000 +0000 +++ libdata-dump-perl-1.25/META.yml 2021-06-26 04:04:22.000000000 +0000 @@ -7,7 +7,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150001' +generated_by: 'ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -23,5 +23,8 @@ Symbol: '0' perl: '5.006' resources: - repository: http://github.com/gisle/data-dump -version: '1.23' + bugtracker: https://github.com/garu/data-dump/issues/ + license: http://dev.perl.org/licenses/ + repository: http://github.com/garu/data-dump +version: '1.25' +x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -Nru libdata-dump-perl-1.23/README libdata-dump-perl-1.25/README --- libdata-dump-perl-1.23/README 2013-04-11 19:51:45.000000000 +0000 +++ libdata-dump-perl-1.25/README 1970-01-01 00:00:00.000000000 +0000 @@ -1,41 +0,0 @@ -NAME - Data::Dump - Pretty printing of data structures - -SYNOPSIS - use Data::Dump qw(dump ddx); - - $str = dump(@list); - @copy_of_list = eval $str; - - # or use it for easy debug printout - ddx localtime; - -DESCRIPTION - This module provide functions that takes a list of values as their - argument and produces a string as its result. The string contains Perl - code that, when "eval"ed, produces a deep copy of the original - arguments. - - The main feature of the module is that it strives to produce output that - is easy to read. Example: - - @a = (1, [2, 3], {4 => 5}); - dump(@a); - - Produces: - - (1, [2, 3], { 4 => 5 }) - - If you dump just a little data, it is output on a single line. If you - dump data that is more complex or there is a lot of it, line breaks are - automatically added to keep it easy to read. - -AUTHORS - The "Data::Dump" module is written by Gisle Aas , based on - "Data::Dumper" by Gurusamy Sarathy . - - Copyright 1998-2010 Gisle Aas. - Copyright 1996-1998 Gurusamy Sarathy. - - This library is free software; you can redistribute it and/or modify it - under the same terms as Perl itself. diff -Nru libdata-dump-perl-1.23/README.md libdata-dump-perl-1.25/README.md --- libdata-dump-perl-1.23/README.md 1970-01-01 00:00:00.000000000 +0000 +++ libdata-dump-perl-1.25/README.md 2021-06-26 02:29:10.000000000 +0000 @@ -0,0 +1,75 @@ +Data::Dump +========== + +This module provides a few functions that traverse their +argument list and return a string containing Perl code that, +when Ced, produces a deep copy of the original arguments. + +The main feature of the module is that it strives to produce output +that is easy to read. Example: + +```perl + @a = (1, [2, 3], {4 => 5}); + dump(@a); +``` + +Produces: + +```perl + "(1, [2, 3], { 4 => 5 })" +``` + +If you dump just a little data, it is output on a single line. If +you dump data that is more complex or there is a lot of it, line breaks +are automatically added to keep it easy to read. + +Please refer to [Data::Dump's complete documentation](https://metacpan.org/pod/Data::Dump) +for details on how to use this module, including which funcions it +exports. Or (after installation) type: + + perldoc Data::Dump + +To view the complete docs on your terminal. + + +Installation +------------ + +To install this module via cpanm: + + > cpanm Data::Dump + +Or, at the cpan shell: + + cpan> install Data::Dump + +If you wish to install it manually, download and unpack the tarball and +run the following commands: + + perl Makefile.PL + make + make test + make install + +Of course, instead of downloading the tarball you may simply clone the +git repository: + + $ git clone git://github.com/garu/Data-Dump.git + + + +LICENSE AND COPYRIGHT +--------------------- + +The "Data::Dump" module is written by Gisle Aas , based on +"Data::Dumper" by Gurusamy Sarathy . + +Copyright 1998-2010 Gisle Aas. +Copyright 1996-1998 Gurusamy Sarathy. + +This distribution is currenly maintained by Breno G. de Oliveira. + +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. + +See http://dev.perl.org/licenses/ for more information. diff -Nru libdata-dump-perl-1.23/t/dump.t libdata-dump-perl-1.25/t/dump.t --- libdata-dump-perl-1.23/t/dump.t 2013-04-11 19:51:45.000000000 +0000 +++ libdata-dump-perl-1.25/t/dump.t 2021-06-26 03:59:37.000000000 +0000 @@ -2,7 +2,7 @@ use strict; use Test qw(plan ok); -plan tests => 34; +plan tests => 38; use Data::Dump qw(dump); @@ -19,6 +19,10 @@ ok(dump(1/3), qr/^0\.3+\z/); ok(dump(-33), "-33"); ok(dump(-1.5), "-1.5"); +ok(dump("Inf"), qq("Inf")); +ok(dump("-Inf"), qq("-Inf")); +ok(dump("nan"), qq("nan")); +ok(dump("NaN"), qq("NaN")); ok(dump("0123"), qq("0123")); ok(dump(1..2), "(1, 2)"); ok(dump(1..3), "(1, 2, 3)");