Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Exporter-Tiny for openSUSE:Factory checked in at 2022-10-01 17:41:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Exporter-Tiny (Old) and /work/SRC/openSUSE:Factory/.perl-Exporter-Tiny.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Exporter-Tiny" Sat Oct 1 17:41:53 2022 rev:9 rq:1006447 version:1.004002 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Exporter-Tiny/perl-Exporter-Tiny.changes 2022-09-10 20:16:48.788755199 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Exporter-Tiny.new.2275/perl-Exporter-Tiny.changes 2022-10-01 17:42:00.445544492 +0200 @@ -1,0 +2,14 @@ +Sat Sep 17 03:06:20 UTC 2022 - Tina M??ller <timueller+p...@suse.de> + +- updated to 1.004002 + see /usr/share/doc/packages/perl-Exporter-Tiny/Changes + + 1.004002 2022-09-16 + [ Test Suite ] + - Fix for t/15nonhashvalue.t on old versions of Test::More which don't + support `done_testing`. + 1.004001 2022-09-09 + [ Bug Fixes ] + - Fix handling of non-hashref references in import list. + +------------------------------------------------------------------- Old: ---- Exporter-Tiny-1.004000.tar.gz New: ---- Exporter-Tiny-1.004002.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Exporter-Tiny.spec ++++++ --- /var/tmp/diff_new_pack.58tCWO/_old 2022-10-01 17:42:00.885545295 +0200 +++ /var/tmp/diff_new_pack.58tCWO/_new 2022-10-01 17:42:00.889545302 +0200 @@ -18,7 +18,7 @@ %define cpan_name Exporter-Tiny Name: perl-Exporter-Tiny -Version: 1.004000 +Version: 1.004002 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: An exporter with the features of Sub::Exporter but only core dependencies ++++++ Exporter-Tiny-1.004000.tar.gz -> Exporter-Tiny-1.004002.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.004000/COPYRIGHT new/Exporter-Tiny-1.004002/COPYRIGHT --- old/Exporter-Tiny-1.004000/COPYRIGHT 2022-08-26 18:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004002/COPYRIGHT 2022-09-16 23:24:16.000000000 +0200 @@ -3,17 +3,6 @@ Upstream-Contact: Toby Inkster (TOBYINK) <toby...@cpan.org> Source: https://metacpan.org/release/Exporter-Tiny -Files: NEWS - TODO - inc/Test/Fatal.pm - inc/Test/Requires.pm - inc/Try/Tiny.pm - inc/archaic/Test/Builder/Module.pm - inc/archaic/Test/Builder/Tester.pm - inc/archaic/Test/Builder/Tester/Color.pm -Copyright: Unknown -License: Unknown - Files: lib/Exporter/Tiny/Manual/Etc.pod lib/Exporter/Tiny/Manual/Exporting.pod lib/Exporter/Tiny/Manual/Importing.pod @@ -25,6 +14,17 @@ Copyright: This software is copyright (c) 2013-2014, 2017 by Toby Inkster. License: GPL-1.0+ or Artistic-1.0 +Files: NEWS + TODO + inc/Test/Fatal.pm + inc/Test/Requires.pm + inc/Try/Tiny.pm + inc/archaic/Test/Builder/Module.pm + inc/archaic/Test/Builder/Tester.pm + inc/archaic/Test/Builder/Tester/Color.pm +Copyright: Unknown +License: Unknown + Files: lib/Exporter/Shiny.pm t/05shiny.t t/06notwant.t @@ -56,14 +56,9 @@ Copyright: This software is copyright (c) 2018 by Toby Inkster. License: GPL-1.0+ or Artistic-1.0 -Files: README - lib/Exporter/Tiny.pm -Copyright: This software is copyright (c) 2013-2014, 2017, 2022 by Toby Inkster. -License: GPL-1.0+ or Artistic-1.0 - -Files: dist.ini - examples/Example/Exporter.pm -Copyright: Copyright 2013 Toby Inkster. +Files: t/14lexical.t + t/15nonhashvalue.t +Copyright: This software is copyright (c) 2022 by Toby Inkster. License: GPL-1.0+ or Artistic-1.0 Files: inc/archaic/Test/More.pm @@ -71,16 +66,22 @@ Copyright: Copyright 2001-2008 by Michael G Schwern <schw...@pobox.com>. License: GPL-1.0+ or Artistic-1.0 -Files: inc/archaic/Test/Builder.pm -Copyright: Copyright 2002-2008 by chromatic <chroma...@wgz.org> and. +Files: dist.ini + examples/Example/Exporter.pm +Copyright: Copyright 2013 Toby Inkster. +License: GPL-1.0+ or Artistic-1.0 + +Files: README + lib/Exporter/Tiny.pm +Copyright: This software is copyright (c) 2013-2014, 2017, 2022 by Toby Inkster. License: GPL-1.0+ or Artistic-1.0 Files: SIGNATURE Copyright: None License: public-domain -Files: t/14lexical.t -Copyright: This software is copyright (c) 2022 by Toby Inkster. +Files: inc/archaic/Test/Builder.pm +Copyright: Copyright 2002-2008 by chromatic <chroma...@wgz.org> and. License: GPL-1.0+ or Artistic-1.0 Files: inc/archaic/Test/Builder/IO/Scalar.pm diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.004000/Changes new/Exporter-Tiny-1.004002/Changes --- old/Exporter-Tiny-1.004000/Changes 2022-08-26 18:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004002/Changes 2022-09-16 23:24:16.000000000 +0200 @@ -6,6 +6,17 @@ Bug tracker: <https://github.com/tobyink/p5-exporter-tiny/issues> Maintainer: Toby Inkster (TOBYINK) <toby...@cpan.org> +1.004002 2022-09-16 + + [ Test Suite ] + - Fix for t/15nonhashvalue.t on old versions of Test::More which don't + support `done_testing`. + +1.004001 2022-09-09 + + [ Bug Fixes ] + - Fix handling of non-hashref references in import list. + 1.004000 2022-08-26 [ Documentation ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.004000/MANIFEST new/Exporter-Tiny-1.004002/MANIFEST --- old/Exporter-Tiny-1.004000/MANIFEST 2022-08-26 18:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004002/MANIFEST 2022-09-16 23:24:16.000000000 +0200 @@ -44,3 +44,4 @@ t/12noncodegenerators.t t/13doesntexist.t t/14lexical.t +t/15nonhashvalue.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.004000/META.json new/Exporter-Tiny-1.004002/META.json --- old/Exporter-Tiny-1.004000/META.json 2022-08-26 18:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004002/META.json 2022-09-16 23:24:16.000000000 +0200 @@ -48,11 +48,11 @@ "provides" : { "Exporter::Shiny" : { "file" : "lib/Exporter/Shiny.pm", - "version" : "1.004000" + "version" : "1.004002" }, "Exporter::Tiny" : { "file" : "lib/Exporter/Tiny.pm", - "version" : "1.004000" + "version" : "1.004002" } }, "release_status" : "stable", @@ -72,6 +72,6 @@ "x_IRC" : "irc://irc.perl.org/#moops", "x_identifier" : "http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/project" }, - "version" : "1.004000", + "version" : "1.004002", "x_serialization_backend" : "JSON::PP version 4.09" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.004000/META.yml new/Exporter-Tiny-1.004002/META.yml --- old/Exporter-Tiny-1.004000/META.yml 2022-08-26 18:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004002/META.yml 2022-09-16 23:24:16.000000000 +0200 @@ -25,10 +25,10 @@ provides: Exporter::Shiny: file: lib/Exporter/Shiny.pm - version: '1.004000' + version: '1.004002' Exporter::Tiny: file: lib/Exporter/Tiny.pm - version: '1.004000' + version: '1.004002' requires: perl: '5.006001' resources: @@ -38,5 +38,5 @@ homepage: https://metacpan.org/release/Exporter-Tiny license: http://dev.perl.org/licenses/ repository: git://github.com/tobyink/p5-exporter-tiny.git -version: '1.004000' +version: '1.004002' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.004000/Makefile.PL new/Exporter-Tiny-1.004002/Makefile.PL --- old/Exporter-Tiny-1.004000/Makefile.PL 2022-08-26 18:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004002/Makefile.PL 2022-09-16 23:24:16.000000000 +0200 @@ -25,8 +25,8 @@ }, }, "provides" => { - "Exporter::Shiny" => { file => "lib/Exporter/Shiny.pm", version => "1.004000" }, - "Exporter::Tiny" => { file => "lib/Exporter/Tiny.pm", version => "1.004000" }, + "Exporter::Shiny" => { file => "lib/Exporter/Shiny.pm", version => 1.004002 }, + "Exporter::Tiny" => { file => "lib/Exporter/Tiny.pm", version => 1.004002 }, }, "release_status" => "stable", "resources" => { @@ -41,7 +41,7 @@ x_identifier => "http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/project", x_IRC => "irc://irc.perl.org/#moops", }, - "version" => "1.004000", + "version" => 1.004002, }; my %dynamic_config; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.004000/SIGNATURE new/Exporter-Tiny-1.004002/SIGNATURE --- old/Exporter-Tiny-1.004000/SIGNATURE 2022-08-26 18:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004002/SIGNATURE 2022-09-16 23:24:16.000000000 +0200 @@ -14,20 +14,20 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 -SHA256 36dcd63e6299c0db111db9b5d44dcdbd54390337e87d0fb0a1db1b9b9bcbb71f COPYRIGHT +SHA256 71e7c4c34fc6f9a6e5e81fac498e2de4b37d09434b17235994e61155dd2495a0 COPYRIGHT SHA256 8f4f9665e7482ef4ed2d2ea4094c3aa3660ad6eb5a354e4d42be8482bccab0e4 CREDITS -SHA256 9b8cfe934569c18831a5db0eb97916ff3a050efd17bcf5acdf909cf78abe62aa Changes +SHA256 20e2d558f997a35f996b3bd0bad7f2aa4837ad1ed96bbcbfbab6f1dd49090639 Changes SHA256 2f314c303b24f03c1ffbc54001a90eb7d50ebe724a60b2fe4f2f6e42e5170c1d INSTALL SHA256 a4f85c6f4d6e8bdd37b7ab08013e3e3bee1fe8e910e20f8f54d5025ffe40f384 LICENSE -SHA256 2b9540524ce869a214ec369e0e54d375bc65a8c7b5d1749891f7976688d8ec5f MANIFEST -SHA256 256f3a92a1a18ca9734aee23873d7af905e3b2bab21c0778fec563f1250dcc52 META.json -SHA256 edbbfa4020214dfc74b474c9e7cb217f9ac53b4d3e77ae47868f4325ca6bbb36 META.yml -SHA256 d9f6ec50ed7952a8ec0d9df605bcf4e5c6b040a2e08b52822d5f25544c2eb38d Makefile.PL +SHA256 dd356946ebbcf40867406557348e94b9edc2e90aa6007130a47d2b38c5e3a834 MANIFEST +SHA256 95906d25d37b164c51902b04753d73c13a956b29bdc5053d8b6b8314b1e2e3f0 META.json +SHA256 7a25e2ec26fe951ecf8208fa6269494b2da7d715c4da43cc9a7d9512d80e7fcb META.yml +SHA256 e378e69d438da8b27619117d46f1a68e5ccf0844e8a2899bd1442d04d000ffdc Makefile.PL SHA256 47b10ed37d8da7c65245ffe5773cf59654f1545cc0e2fbbfa4f1e25f67bb0ff3 NEWS SHA256 0d2ea0e8456261f541cb039ee38d7994b28c989f2284a7fbb714bf7bf7952536 README SHA256 846fcc88a04c5b7cd65ec32c5f842f8b339d8fc28c1cc75f36fa10af809353e2 TODO SHA256 43562b3806635eddcf6e7ea7cf6edc690a7f52cca15e4fc76593d144fd450aa6 dist.ini -SHA256 07095e1460eaf05a4ce708c53909cc7d6bda594b24dba9be2f1879eda915ce04 doap.ttl +SHA256 1b53d5f256abc4b803aebf866094892975293ae09d0f344a766dc58b1a1ded3d doap.ttl SHA256 bbe194f6f9a9832847d82b7cb8b5d5f16c4af255bcef0d25f90992ff268462ea examples/Example/Exporter.pm SHA256 c361b86d13c8fdfbe75840d11dbe6af488e44af27b0edb80fd1eea28c8e935d4 inc/Test/Fatal.pm SHA256 b8b2edfbb16b30d0e3b212a413c55a8de7ce929591d0a1029b70c47c8c0be11a inc/Test/Requires.pm @@ -39,8 +39,8 @@ SHA256 ae528d9fc2962793e98af13f4d4e802fbf8d78b17b1c27a860728a16e8bf4a3a inc/archaic/Test/Builder/Tester/Color.pm SHA256 764f3ed1e0a314e7e9f8d803dff3d894e8c572e2a128d7ce14f2a80268e50543 inc/archaic/Test/More.pm SHA256 c4fd1410a9bd85a0e7700de08c1614fc5928c0d02151ba1ec7d06bd56407e0d5 inc/archaic/Test/Simple.pm -SHA256 7cefbeb568f9111ee72270d647bc1a700bebd27216b7114cc7fd45a1b69cb2cb lib/Exporter/Shiny.pm -SHA256 64602b5db07ef35c31914eb0bb77cfc133fc65ddbb665586ce6246758765c64d lib/Exporter/Tiny.pm +SHA256 918bb0020379ac0bceaf1b7a2fe41cce561d6cb4711cb8315834220a7aa009d6 lib/Exporter/Shiny.pm +SHA256 73fb7ca40136e828eacd54f6e9b010e5a52528a94170f7f8a169a61b1e286cc8 lib/Exporter/Tiny.pm SHA256 3e080e8653b3b717c52dad07fcfc84c31766a9034c9c3b881ff41301a19b378a lib/Exporter/Tiny/Manual/Etc.pod SHA256 293f6a8c2d4dacb49b775b24547a2f4845487bd6549b08a82f06dd89281111c8 lib/Exporter/Tiny/Manual/Exporting.pod SHA256 c187110096953b6629df1cc4aef1eae17625be5ca1dd75d388da1aea43c7fb4e lib/Exporter/Tiny/Manual/Importing.pod @@ -59,9 +59,10 @@ SHA256 2488f918037f954ecec64a28c8a9e2bcb3ea9a9a7fe092fdcfd1c3bdd11e3f51 t/12noncodegenerators.t SHA256 47728bc580e310a5c3c3c61fb6be7a450ebdf6aa420bbf7c5b1ae514223e533f t/13doesntexist.t SHA256 82953c33b12d287478d5b5b120cdedb43b71d2eec311eef91ae0a77fc3451732 t/14lexical.t +SHA256 70029832b2fbebf24679c78fd2a8be2f993ecbfa6f8f86185d1fb6d7118ff1ed t/15nonhashvalue.t -----BEGIN PGP SIGNATURE----- -iF0EAREDAB0WIQRVJKj/4+s6z4WzNujOv4Eoaip9OQUCYwj33AAKCRDOv4Eoaip9 -OVkVAJ9/WKpyTEdu/KnTMXDXLEYyuO0BtgCcC4YjpjyvFBMcHeWwT8Y2jtecyLs= -=hV0u +iF0EAREDAB0WIQRVJKj/4+s6z4WzNujOv4Eoaip9OQUCYyTpgAAKCRDOv4Eoaip9 +OUnvAKC0mykx6LyzJ/HEpih/m0FwvEY69wCfcmS97hwXViXbLpva5td1FheFjPs= +=x+t9 -----END PGP SIGNATURE----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.004000/doap.ttl new/Exporter-Tiny-1.004002/doap.ttl --- old/Exporter-Tiny-1.004000/doap.ttl 2022-08-26 18:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004002/doap.ttl 2022-09-16 23:24:16.000000000 +0200 @@ -27,7 +27,7 @@ doap:maintainer <http://purl.org/NET/cpan-uri/person/tobyink>; doap:name "Exporter-Tiny"; doap:programming-language "Perl"; - doap:release <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-026>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-029_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-030>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-031_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-032>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-033_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-034>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-035_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-035_02>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-036>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-037_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-037_02>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-037_03>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-038>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-039_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-040>, <htt p://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-041_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-041_02>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-042>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-043_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-043_02>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-044>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-000000>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-001_000>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-001_001>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-002000>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-002001>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-002002>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_000>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_001>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_002>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-004000>; + doap:release <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-026>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-029_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-030>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-031_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-032>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-033_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-034>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-035_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-035_02>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-036>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-037_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-037_02>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-037_03>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-038>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-039_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-040>, <htt p://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-041_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-041_02>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-042>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-043_01>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-043_02>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_0-044>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-000000>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-001_000>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-001_001>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-002000>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-002001>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-002002>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_000>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_001>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_002>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-004000>, <http://pu rl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-004001>, <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-004002>; doap:repository [ a doap:GitRepository; doap:browse <https://github.com/tobyink/p5-exporter-tiny>; @@ -532,6 +532,36 @@ doap:file-release <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Exporter-Tiny-1.004000.tar.gz>; doap:revision "1.004000"^^xsd:string. +<http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-004001> + a doap:Version; + dc:identifier "Exporter-Tiny-1.004001"^^xsd:string; + dc:issued "2022-09-09"^^xsd:date; + doap-changeset:changeset [ + doap-changeset:item [ + a doap-changeset:Bugfix; + rdfs:label "Fix handling of non-hashref references in import list."; + ]; + doap-changeset:versus <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-004000>; + ]; + doap-changeset:released-by <http://purl.org/NET/cpan-uri/person/tobyink>; + doap:file-release <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Exporter-Tiny-1.004001.tar.gz>; + doap:revision "1.004001"^^xsd:string. + +<http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-004002> + a doap:Version; + dc:identifier "Exporter-Tiny-1.004002"^^xsd:string; + dc:issued "2022-09-16"^^xsd:date; + doap-changeset:changeset [ + doap-changeset:item [ + a doap-changeset:Tests; + rdfs:label "Fix for t/15nonhashvalue.t on old versions of Test::More which don't support `done_testing`."; + ]; + doap-changeset:versus <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-004001>; + ]; + doap-changeset:released-by <http://purl.org/NET/cpan-uri/person/tobyink>; + doap:file-release <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Exporter-Tiny-1.004002.tar.gz>; + doap:revision "1.004002"^^xsd:string. + <http://purl.org/NET/cpan-uri/dist/Type-Tiny/project> a doap:Project; dc:contributor <http://purl.org/NET/cpan-uri/person/tobyink>; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.004000/lib/Exporter/Shiny.pm new/Exporter-Tiny-1.004002/lib/Exporter/Shiny.pm --- old/Exporter-Tiny-1.004000/lib/Exporter/Shiny.pm 2022-08-26 18:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004002/lib/Exporter/Shiny.pm 2022-09-16 23:24:16.000000000 +0200 @@ -7,7 +7,7 @@ use Exporter::Tiny (); our $AUTHORITY = 'cpan:TOBYINK'; -our $VERSION = '1.004000'; +our $VERSION = '1.004002'; sub import { my $me = shift; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.004000/lib/Exporter/Tiny.pm new/Exporter-Tiny-1.004002/lib/Exporter/Tiny.pm --- old/Exporter-Tiny-1.004000/lib/Exporter/Tiny.pm 2022-08-26 18:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004002/lib/Exporter/Tiny.pm 2022-09-16 23:24:16.000000000 +0200 @@ -5,7 +5,7 @@ use warnings; no warnings qw(void once uninitialized numeric redefine); our $AUTHORITY = 'cpan:TOBYINK'; -our $VERSION = '1.004000'; +our $VERSION = '1.004002'; our @EXPORT_OK = qw< mkopt mkopt_hash _croak _carp >; sub _croak ($;@) { require Carp; my $fmt = shift; @_ = sprintf($fmt, @_); goto \&Carp::croak } @@ -258,6 +258,7 @@ { my $class = shift; my ($name, $value, $globals, $sym) = @_; + my $value_hash = ( ref($value) eq 'HASH' ) ? $value : {}; my $into = $globals->{into}; my $installer = $globals->{installer} || $globals->{exporter}; @@ -273,9 +274,9 @@ } $name = - ref $globals->{as} ? $globals->{as}->($name) : - ref $value->{-as} ? $value->{-as}->($name) : - exists $value->{-as} ? $value->{-as} : + ref $globals->{as} ? $globals->{as}->($name) : + ref $value_hash->{-as} ? $value_hash->{-as}->($name) : + exists $value_hash->{-as} ? $value_hash->{-as} : $name; return unless defined $name; @@ -289,8 +290,8 @@ _croak("Cannot export symbols with a * sigil"); } } - my ($prefix) = grep defined, $value->{-prefix}, $globals->{prefix}, q(); - my ($suffix) = grep defined, $value->{-suffix}, $globals->{suffix}, q(); + my ($prefix) = grep defined, $value_hash->{-prefix}, $globals->{prefix}, q(); + my ($suffix) = grep defined, $value_hash->{-suffix}, $globals->{suffix}, q(); $name = "$prefix$name$suffix"; } @@ -310,7 +311,7 @@ if (ref($sym) eq 'CODE' and exists &{"$into\::$name"} and \&{"$into\::$name"} != $sym) { - my ($level) = grep defined, $value->{-replace}, $globals->{replace}, q(0); + my ($level) = grep defined, $value_hash->{-replace}, $globals->{replace}, q(0); my $action = { carp => \&_carp, 0 => \&_carp, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.004000/t/15nonhashvalue.t new/Exporter-Tiny-1.004002/t/15nonhashvalue.t --- old/Exporter-Tiny-1.004000/t/15nonhashvalue.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Exporter-Tiny-1.004002/t/15nonhashvalue.t 2022-09-16 23:24:16.000000000 +0200 @@ -0,0 +1,64 @@ +=pod + +=encoding utf-8 + +=head1 PURPOSE + +Test that C<< $value >> can be a non-hashref. + +=head1 AUTHOR + +Toby Inkster E<lt>toby...@cpan.orge<gt>. + +=head1 COPYRIGHT AND LICENCE + +This software is copyright (c) 2022 by Toby Inkster. + +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. + +=cut + +use strict; +use warnings; +use Test::More tests => 3; + +BEGIN { + package Local::XYZ; + use Exporter::Shiny 'mytest'; + sub _generate_mytest { + my ( $class, $name, $value ) = @_; + return sub { $value }; + } +}; + +{ + package Local::ABC1; + use Local::XYZ mytest => [ 1, 2, 4 ]; + ::is_deeply( + mytest(), + [ 1, 2, 4 ], + 'ARRAY ref', + ) or ::diag( ::explain( mytest() ) ); +} + +{ + package Local::ABC2; + use Local::XYZ mytest => \123; + ::is_deeply( + mytest(), + \123, + 'SCALAR ref', + ) or ::diag( ::explain( mytest() ) ); +} + +{ + package Local::ABC3; + use Local::XYZ mytest => qr/abc/; + ::is_deeply( + mytest(), + qr/abc/, + 'Regexp ref', + ) or ::diag( ::explain( mytest() ) ); +} +