commit perl-Data-Dump for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Data-Dump for openSUSE:Factory checked in at 2021-07-02 13:26:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Data-Dump (Old) and /work/SRC/openSUSE:Factory/.perl-Data-Dump.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Data-Dump" Fri Jul 2 13:26:47 2021 rev:9 rq:903049 version:1.25 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Data-Dump/perl-Data-Dump.changes 2015-06-15 17:46:40.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Data-Dump.new.2625/perl-Data-Dump.changes 2021-07-02 13:27:22.344804664 +0200 @@ -1,0 +2,21 @@ +Tue Jun 29 09:24:23 UTC 2021 - Tina M��ller <tina.mueller@suse.com> + +- Limit description paragraphs + +------------------------------------------------------------------- +Sun Jun 27 03:06:21 UTC 2021 - Tina M��ller <timueller+perl@suse.de> + +- updated to 1.25 + see /usr/share/doc/packages/perl-Data-Dump/Changes + + 2021-06-26 Breno G. de Oliveira <garu@cpan.org> + 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 <garu@cpan.org> + Release 1.24 + Strings like "NaN" are still strings + Update maintainer and repository information + +------------------------------------------------------------------- Old: ---- Data-Dump-1.23.tar.gz New: ---- Data-Dump-1.25.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Data-Dump.spec ++++++ --- /var/tmp/diff_new_pack.JcmTEQ/_old 2021-07-02 13:27:22.752801497 +0200 +++ /var/tmp/diff_new_pack.JcmTEQ/_new 2021-07-02 13:27:22.756801466 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Data-Dump # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,30 +12,28 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%define cpan_name Data-Dump Name: perl-Data-Dump -Version: 1.23 +Version: 1.25 Release: 0 -%define cpan_name Data-Dump Summary: Pretty printing of data structures -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Data-Dump/ -Source0: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz +License: Artistic-1.0 OR GPL-1.0-or-later +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/G/GA/GARU/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros %{perl_requires} %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 -'eval'ed, 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 '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: @@ -51,76 +49,15 @@ data that is more complex or there is a lot of it, line breaks are automatically added to keep it easy to read. -The following functions are provided (only the dd* functions are exported -by default): - -* dump( ... ) - -* pp( ... ) - - Returns a string containing a Perl expression. If you pass this string to - Perl's built-in eval() function it should return a copy of the arguments - you passed to dump(). - - If you call the function with multiple arguments then the output will be - wrapped in parenthesis "( ..., ... )". If you call the function with a - single argument the output will not have the wrapping. If you call the - function with a single scalar (non-reference) argument it will just - return the scalar quoted if needed, but never break it into multiple - lines. If you pass multiple arguments or references to arrays of hashes - then the return value might contain line breaks to format it for easier - reading. The returned string will never be "\n" terminated, even if - contains multiple lines. This allows code like this to place the - semicolon in the expected place: - - print '$obj = ', dump($obj), ";\n"; - - If dump() is called in void context, then the dump is printed on STDERR - and then "\n" terminated. You might find this useful for quick debug - printouts, but the dd*() functions might be better alternatives for this. - - There is no difference between dump() and pp(), except that dump() shares - its name with a not-so-useful perl builtin. Because of this some might - want to avoid using that name. - -* quote( $string ) - - Returns a quoted version of the provided string. - - It differs from 'dump($string)' in that it will quote even numbers and - not try to come up with clever expressions that might shorten the output. - If a non-scalar argument is provided then it's just stringified instead - of traversed. - -* dd( ... ) - -* ddx( ... ) - - These functions will call dump() on their argument and print the result - to STDOUT (actually, it's the currently selected output handle, but - STDOUT is the default for that). - - The difference between them is only that ddx() will prefix the lines it - prints with "# " and mark the first line with the file and line number - where it was called. This is meant to be useful for debug printouts of - state within programs. - -* dumpf( ..., \&filter ) - - Short hand for calling the dump_filtered() function of the - Data::Dump::Filtered manpage. This works like dump(), but the last - argument should be a filter callback function. As objects are visited the - filter callback is invoked and it can modify how the objects are dumped. - %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install @@ -128,7 +65,6 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changes README +%doc Changes README.md %changelog ++++++ Data-Dump-1.23.tar.gz -> Data-Dump-1.25.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dump-1.23/Changes new/Data-Dump-1.25/Changes --- old/Data-Dump-1.23/Changes 2015-06-09 20:48:03.000000000 +0200 +++ new/Data-Dump-1.25/Changes 2021-06-26 06:01:16.000000000 +0200 @@ -1,3 +1,23 @@ +2021-06-26 Breno G. de Oliveira <garu@cpan.org> + + 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 <garu@cpan.org> + + Release 1.24 + + Strings like "NaN" are still strings + + Update maintainer and repository information + + + 2015-06-09 Gisle Aas <gisle@ActiveState.com> Release 1.23 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dump-1.23/MANIFEST new/Data-Dump-1.25/MANIFEST --- old/Data-Dump-1.23/MANIFEST 2015-06-09 20:50:41.000000000 +0200 +++ new/Data-Dump-1.25/MANIFEST 2021-06-26 06:04:22.000000000 +0200 @@ -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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dump-1.23/META.json new/Data-Dump-1.25/META.json --- old/Data-Dump-1.23/META.json 2015-06-09 20:50:41.000000000 +0200 +++ new/Data-Dump-1.25/META.json 2021-06-26 06:04:22.000000000 +0200 @@ -4,13 +4,13 @@ "Gisle Aas <gisle@activestate.com>" ], "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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dump-1.23/META.yml new/Data-Dump-1.25/META.yml --- old/Data-Dump-1.23/META.yml 2015-06-09 20:50:41.000000000 +0200 +++ new/Data-Dump-1.25/META.yml 2021-06-26 06:04:22.000000000 +0200 @@ -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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dump-1.23/Makefile.PL new/Data-Dump-1.25/Makefile.PL --- old/Data-Dump-1.23/Makefile.PL 2013-04-11 21:51:45.000000000 +0200 +++ new/Data-Dump-1.25/Makefile.PL 2021-06-26 03:53:24.000000000 +0200 @@ -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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dump-1.23/README new/Data-Dump-1.25/README --- old/Data-Dump-1.23/README 2013-04-11 21:51:45.000000000 +0200 +++ new/Data-Dump-1.25/README 1970-01-01 01:00:00.000000000 +0100 @@ -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 <gisle@aas.no>, based on - "Data::Dumper" by Gurusamy Sarathy <gsar@umich.edu>. - - 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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dump-1.23/README.md new/Data-Dump-1.25/README.md --- old/Data-Dump-1.23/README.md 1970-01-01 01:00:00.000000000 +0100 +++ new/Data-Dump-1.25/README.md 2021-06-26 04:29:10.000000000 +0200 @@ -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 C<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: + +```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 <gisle@aas.no>, based on +"Data::Dumper" by Gurusamy Sarathy <gsar@umich.edu>. + +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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dump-1.23/lib/Data/Dump/Trace.pm new/Data-Dump-1.25/lib/Data/Dump/Trace.pm --- old/Data-Dump-1.23/lib/Data/Dump/Trace.pm 2013-05-17 00:07:58.000000000 +0200 +++ new/Data-Dump-1.25/lib/Data/Dump/Trace.pm 2021-06-26 03:53:51.000000000 +0200 @@ -401,11 +401,4 @@ L<Data::Dump> -=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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dump-1.23/lib/Data/Dump.pm new/Data-Dump-1.25/lib/Data/Dump.pm --- old/Data-Dump-1.23/lib/Data/Dump.pm 2015-06-09 20:44:42.000000000 +0200 +++ new/Data-Dump-1.25/lib/Data/Dump.pm 2021-06-26 06:01:16.000000000 +0200 @@ -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 C<eval>ed, 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 C<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: @@ -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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Data-Dump-1.23/t/dump.t new/Data-Dump-1.25/t/dump.t --- old/Data-Dump-1.23/t/dump.t 2013-04-11 21:51:45.000000000 +0200 +++ new/Data-Dump-1.25/t/dump.t 2021-06-26 05:59:37.000000000 +0200 @@ -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)"); ++++++ cpanspec.yml ++++++ --- /var/tmp/diff_new_pack.JcmTEQ/_old 2021-07-02 13:27:22.840800815 +0200 +++ /var/tmp/diff_new_pack.JcmTEQ/_new 2021-07-02 13:27:22.840800815 +0200 @@ -1,5 +1,5 @@ --- -#description_paragraphs: 3 +description_paragraphs: 6 #no_testing: broken upstream #sources: # - source1
participants (1)
-
Source-Sync