diff --git a/Data-Dump-1.22.tar.gz b/Data-Dump-1.22.tar.gz deleted file mode 100644 index b5cc176..0000000 --- a/Data-Dump-1.22.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:533caad79f2f5ff453ed30137c96c1cb2a7e83972bf9dc48d265e0e035a738b2 -size 20621 diff --git a/Data-Dump-1.23.tar.gz b/Data-Dump-1.23.tar.gz new file mode 100644 index 0000000..47ad5de --- /dev/null +++ b/Data-Dump-1.23.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af53b05ef1387b4cab4427e6789179283e4f0da8cf036e8db516ddb344512b65 +size 20771 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b7ec50 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,23 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Data-Dump.changes b/perl-Data-Dump.changes index 3afb237..84cf166 100644 --- a/perl-Data-Dump.changes +++ b/perl-Data-Dump.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Sun Jun 14 08:03:10 UTC 2015 - coolo@suse.com + +- updated to 1.23 + see /usr/share/doc/packages/perl-Data-Dump/Changes + + 2015-06-09 Gisle Aas + + Release 1.23 + + Avoid "Negative repeat count does nothing"-warnings from perl-5.22 + + Typo fixes by David Steinbrunner + ------------------------------------------------------------------- Tue Jun 4 07:32:27 UTC 2013 - coolo@suse.com diff --git a/perl-Data-Dump.spec b/perl-Data-Dump.spec index 71c7b30..725567a 100644 --- a/perl-Data-Dump.spec +++ b/perl-Data-Dump.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Data-Dump # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,21 +17,19 @@ Name: perl-Data-Dump -Version: 1.22 +Version: 1.23 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/ -Source: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -#BuildRequires: perl(Data::Dump) -#BuildRequires: perl(Data::Dump::FilterContext) -#BuildRequires: perl(Data::Dump::Filtered) %{perl_requires} %description @@ -58,6 +56,62 @@ 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}