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-09-10 20:16:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Exporter-Tiny (Old) and /work/SRC/openSUSE:Factory/.perl-Exporter-Tiny.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Exporter-Tiny" Sat Sep 10 20:16:45 2022 rev:8 rq:1002197 version:1.004000 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Exporter-Tiny/perl-Exporter-Tiny.changes 2020-05-01 11:08:36.143227540 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Exporter-Tiny.new.2083/perl-Exporter-Tiny.changes 2022-09-10 20:16:48.788755199 +0200 @@ -1,0 +2,6 @@ +Sat Aug 27 03:06:15 UTC 2022 - Tina M??ller <timueller+p...@suse.de> + +- updated to 1.004000 + see /usr/share/doc/packages/perl-Exporter-Tiny/Changes + +------------------------------------------------------------------- Old: ---- Exporter-Tiny-1.002002.tar.gz New: ---- Exporter-Tiny-1.004000.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Exporter-Tiny.spec ++++++ --- /var/tmp/diff_new_pack.cvxlwR/_old 2022-09-10 20:16:49.152756134 +0200 +++ /var/tmp/diff_new_pack.cvxlwR/_new 2022-09-10 20:16:49.156756144 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Exporter-Tiny # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,16 @@ # +%define cpan_name Exporter-Tiny Name: perl-Exporter-Tiny -Version: 1.002002 +Version: 1.004000 Release: 0 -%define cpan_name Exporter-Tiny -Summary: An exporter with the features of Sub::Exporter but only core dependencies License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} +Summary: An exporter with the features of Sub::Exporter but only core dependencies +URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros %{perl_requires} @@ -56,11 +54,11 @@ * Exporter::Tiny::Manual::Importing %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -71,8 +69,7 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changes COPYRIGHT CREDITS doap.ttl examples README TODO +%doc Changes COPYRIGHT CREDITS doap.ttl examples NEWS README TODO %license LICENSE %changelog ++++++ Exporter-Tiny-1.002002.tar.gz -> Exporter-Tiny-1.004000.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/COPYRIGHT new/Exporter-Tiny-1.004000/COPYRIGHT --- old/Exporter-Tiny-1.002002/COPYRIGHT 2020-04-24 17:42:05.000000000 +0200 +++ new/Exporter-Tiny-1.004000/COPYRIGHT 2022-08-26 18:42:04.000000000 +0200 @@ -3,9 +3,18 @@ Upstream-Contact: Toby Inkster (TOBYINK) <toby...@cpan.org> Source: https://metacpan.org/release/Exporter-Tiny -Files: README - lib/Exporter/Tiny.pm - lib/Exporter/Tiny/Manual/Etc.pod +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 lib/Exporter/Tiny/Manual/QuickStart.pod @@ -26,16 +35,6 @@ Copyright: This software is copyright (c) 2014, 2017 by Toby Inkster. License: GPL-1.0+ or Artistic-1.0 -Files: 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: COPYRIGHT CREDITS INSTALL @@ -48,7 +47,7 @@ META.json META.yml doap.ttl -Copyright: Copyright 2020 Toby Inkster. +Copyright: Copyright 2022 Toby Inkster. License: GPL-1.0+ or Artistic-1.0 Files: t/11noncode.t @@ -57,6 +56,11 @@ 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. @@ -67,28 +71,32 @@ Copyright: Copyright 2001-2008 by Michael G Schwern <schw...@pobox.com>. License: GPL-1.0+ or Artistic-1.0 -Files: inc/archaic/Test/Builder/IO/Scalar.pm -Copyright: Copyright (c) 1996 by Eryq. All rights reserved. - Copyright (c) 1999,2001 by ZeeGee Software Inc. All rights reserved. +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: SIGNATURE Copyright: None License: public-domain -Files: inc/archaic/Test/Builder.pm -Copyright: Copyright 2002-2008 by chromatic <chroma...@wgz.org> and. +Files: t/14lexical.t +Copyright: This software is copyright (c) 2022 by Toby Inkster. +License: GPL-1.0+ or Artistic-1.0 + +Files: inc/archaic/Test/Builder/IO/Scalar.pm +Copyright: Copyright (c) 1996 by Eryq. All rights reserved. + Copyright (c) 1999,2001 by ZeeGee Software Inc. All rights reserved. License: GPL-1.0+ or Artistic-1.0 License: Artistic-1.0 - This software is Copyright (c) 2020 by the copyright holder(s). + This software is Copyright (c) 2022 by the copyright holder(s). This is free software, licensed under: The Artistic License 1.0 License: GPL-1.0 - This software is Copyright (c) 2020 by the copyright holder(s). + This software is Copyright (c) 2022 by the copyright holder(s). This is free software, licensed under: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/CREDITS new/Exporter-Tiny-1.004000/CREDITS --- old/Exporter-Tiny-1.002002/CREDITS 2020-04-24 17:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004000/CREDITS 2022-08-26 18:42:04.000000000 +0200 @@ -3,6 +3,7 @@ Thanks: - CHOCOLATEBOY <chocolate...@cpan.org> +- Eugen Konkov - Tomohiro Hosaka (BOKUTIN) <boku...@cpan.org> - ZHUMENGU diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/Changes new/Exporter-Tiny-1.004000/Changes --- old/Exporter-Tiny-1.002002/Changes 2020-04-24 17:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004000/Changes 2022-08-26 18:42:04.000000000 +0200 @@ -3,9 +3,34 @@ Created: 2013-09-05 Home page: <https://metacpan.org/release/Exporter-Tiny> -Bug tracker: <http://rt.cpan.org/Dist/Display.html?Queue=Exporter-Tiny> +Bug tracker: <https://github.com/tobyink/p5-exporter-tiny/issues> Maintainer: Toby Inkster (TOBYINK) <toby...@cpan.org> +1.004000 2022-08-26 + + [ Documentation ] + - Document that the `-lexical` export option is experimental. + + [ Packaging ] + - No functional changes; repackage as stable. + +1.003_002 2022-08-18 + + [ Bug Fixes ] + - Quote $1 when passing it as a parameter to a function + Eugen Konkov++ + <https://github.com/tobyink/p5-exporter-tiny/issues/7> + +1.003_001 2022-07-21 + + [ Bug Fixes ] + - Correctly check Perl version is at least 5.37.2+ before supporting + -lexical option. + +1.003_000 2022-07-21 + + - Updated: Provide a `-lexical` export option on Perl 5.37.2+. + 1.002002 2020-04-24 [ Bug Fixes ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/LICENSE new/Exporter-Tiny-1.004000/LICENSE --- old/Exporter-Tiny-1.002002/LICENSE 2020-04-24 17:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004000/LICENSE 2022-08-26 18:42:04.000000000 +0200 @@ -1,4 +1,4 @@ -This software is copyright (c) 2020 by Toby Inkster. +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. @@ -12,7 +12,7 @@ --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2020 by Toby Inkster. +This software is Copyright (c) 2022 by Toby Inkster. This is free software, licensed under: @@ -272,7 +272,7 @@ --- The Artistic License 1.0 --- -This software is Copyright (c) 2020 by Toby Inkster. +This software is Copyright (c) 2022 by Toby Inkster. This is free software, licensed under: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/MANIFEST new/Exporter-Tiny-1.004000/MANIFEST --- old/Exporter-Tiny-1.002002/MANIFEST 2020-04-24 17:42:05.000000000 +0200 +++ new/Exporter-Tiny-1.004000/MANIFEST 2022-08-26 18:42:04.000000000 +0200 @@ -7,6 +7,7 @@ META.json META.yml Makefile.PL +NEWS README SIGNATURE TODO @@ -42,3 +43,4 @@ t/11noncode.t t/12noncodegenerators.t t/13doesntexist.t +t/14lexical.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/META.json new/Exporter-Tiny-1.004000/META.json --- old/Exporter-Tiny-1.002002/META.json 2020-04-24 17:42:05.000000000 +0200 +++ new/Exporter-Tiny-1.004000/META.json 2022-08-26 18:42:04.000000000 +0200 @@ -11,7 +11,7 @@ ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", - "version" : "2" + "version" : 2 }, "name" : "Exporter-Tiny", "no_index" : { @@ -48,17 +48,17 @@ "provides" : { "Exporter::Shiny" : { "file" : "lib/Exporter/Shiny.pm", - "version" : "1.002002" + "version" : "1.004000" }, "Exporter::Tiny" : { "file" : "lib/Exporter/Tiny.pm", - "version" : "1.002002" + "version" : "1.004000" } }, "release_status" : "stable", "resources" : { "bugtracker" : { - "web" : "http://rt.cpan.org/Dist/Display.html?Queue=Exporter-Tiny" + "web" : "https://github.com/tobyink/p5-exporter-tiny/issues" }, "homepage" : "https://metacpan.org/release/Exporter-Tiny", "license" : [ @@ -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.002002", - "x_serialization_backend" : "JSON::PP version 2.27400_02" + "version" : "1.004000", + "x_serialization_backend" : "JSON::PP version 4.09" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/META.yml new/Exporter-Tiny-1.004000/META.yml --- old/Exporter-Tiny-1.002002/META.yml 2020-04-24 17:42:05.000000000 +0200 +++ new/Exporter-Tiny-1.004000/META.yml 2022-08-26 18:42:04.000000000 +0200 @@ -25,18 +25,18 @@ provides: Exporter::Shiny: file: lib/Exporter/Shiny.pm - version: '1.002002' + version: '1.004000' Exporter::Tiny: file: lib/Exporter/Tiny.pm - version: '1.002002' + version: '1.004000' requires: perl: '5.006001' resources: IRC: irc://irc.perl.org/#moops Identifier: http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/project - bugtracker: http://rt.cpan.org/Dist/Display.html?Queue=Exporter-Tiny + bugtracker: https://github.com/tobyink/p5-exporter-tiny/issues homepage: https://metacpan.org/release/Exporter-Tiny license: http://dev.perl.org/licenses/ repository: git://github.com/tobyink/p5-exporter-tiny.git -version: '1.002002' +version: '1.004000' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/Makefile.PL new/Exporter-Tiny-1.004000/Makefile.PL --- old/Exporter-Tiny-1.002002/Makefile.PL 2020-04-24 17:42:05.000000000 +0200 +++ new/Exporter-Tiny-1.004000/Makefile.PL 2022-08-26 18:42:04.000000000 +0200 @@ -25,14 +25,12 @@ }, }, "provides" => { - "Exporter::Shiny" => { file => "lib/Exporter/Shiny.pm", version => 1.002002 }, - "Exporter::Tiny" => { file => "lib/Exporter/Tiny.pm", version => 1.002002 }, + "Exporter::Shiny" => { file => "lib/Exporter/Shiny.pm", version => "1.004000" }, + "Exporter::Tiny" => { file => "lib/Exporter/Tiny.pm", version => "1.004000" }, }, "release_status" => "stable", "resources" => { - bugtracker => { - web => "http://rt.cpan.org/Dist/Display.html?Queue=Exporter-Tiny", - }, + bugtracker => { web => "https://github.com/tobyink/p5-exporter-tiny/issues" }, homepage => "https://metacpan.org/release/Exporter-Tiny", license => ["http://dev.perl.org/licenses/"], repository => { @@ -43,7 +41,7 @@ x_identifier => "http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/project", x_IRC => "irc://irc.perl.org/#moops", }, - "version" => 1.002002, + "version" => "1.004000", }; my %dynamic_config; @@ -123,6 +121,9 @@ } } + +my $mm = WriteMakefile(%WriteMakefileArgs); + sub FixMakefile { return unless -d 'inc'; @@ -144,7 +145,7 @@ close MAKEFILE or die $!; } -my $mm = WriteMakefile(%WriteMakefileArgs); FixMakefile($mm->{FIRST_MAKEFILE} || 'Makefile'); + exit(0); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/NEWS new/Exporter-Tiny-1.004000/NEWS --- old/Exporter-Tiny-1.002002/NEWS 1970-01-01 01:00:00.000000000 +0100 +++ new/Exporter-Tiny-1.004000/NEWS 2022-08-26 18:42:04.000000000 +0200 @@ -0,0 +1,11 @@ +1.000000 2017-01-30 + + - First stable release. + +1.002000 2018-07-17 + + - Added support for exporting non-code symbols. + +1.004000 2022? + + - Added support for lexical exports if your Perl version is new enough. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/README new/Exporter-Tiny-1.004000/README --- old/Exporter-Tiny-1.002002/README 2020-04-24 17:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004000/README 2022-08-26 18:42:04.000000000 +0200 @@ -38,7 +38,7 @@ BUGS Please report any bugs to - <http://rt.cpan.org/Dist/Display.html?Queue=Exporter-Tiny>. + <https://github.com/tobyink/p5-exporter-tiny/issues>. SUPPORT IRC: support is available through in the *#moops* channel on irc.perl.org @@ -53,7 +53,7 @@ Toby Inkster <toby...@cpan.org>. COPYRIGHT AND LICENCE - This software is copyright (c) 2013-2014, 2017 by Toby Inkster. + This software is copyright (c) 2013-2014, 2017, 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. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/SIGNATURE new/Exporter-Tiny-1.004000/SIGNATURE --- old/Exporter-Tiny-1.002002/SIGNATURE 2020-04-24 17:42:05.000000000 +0200 +++ new/Exporter-Tiny-1.004000/SIGNATURE 2022-08-26 18:42:04.000000000 +0200 @@ -1,5 +1,5 @@ This file contains message digests of all files listed in MANIFEST, -signed via the Module::Signature module, version 0.83. +signed via the Module::Signature module, version 0.87. To verify the content in this distribution, first make sure you have Module::Signature installed, then type: @@ -12,24 +12,25 @@ not run its Makefile.PL or Build.PL. -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 +Hash: RIPEMD160 -SHA256 f4cb223c8ac37d6ccd0e78b2892ca54a48a6adbe6a271c3c17c0226646297e66 COPYRIGHT -SHA256 0f71a67486aff3c397628f7d2f502de8ec499973640af3eeb99e4823a8424888 CREDITS -SHA256 baf3286f4336c07a49043e9355c5d7a5da61a26fb8f11bbc744210aa50422a9d Changes +SHA256 36dcd63e6299c0db111db9b5d44dcdbd54390337e87d0fb0a1db1b9b9bcbb71f COPYRIGHT +SHA256 8f4f9665e7482ef4ed2d2ea4094c3aa3660ad6eb5a354e4d42be8482bccab0e4 CREDITS +SHA256 9b8cfe934569c18831a5db0eb97916ff3a050efd17bcf5acdf909cf78abe62aa Changes SHA256 2f314c303b24f03c1ffbc54001a90eb7d50ebe724a60b2fe4f2f6e42e5170c1d INSTALL -SHA256 1fb7395e76eabf94c421912d7d0a4f7fa745d49e1acb76b222c21d605b66bd25 LICENSE -SHA256 156b3679dca2069371f59cae56595474c59854d6bd7d9ef28c3afebcb483b3dd MANIFEST -SHA256 50d05bb771666ce374de0b8ca30dab1c0c42ac75a43dcd9fe0a3a67d89ddc055 META.json -SHA256 d7c59cc52d5536466bf962872d13ed061739457d99374b328fd65a7f13ee1104 META.yml -SHA256 36afff71494877e3247d6a7d152bdc95bffa303f06d0f9d4c7c9d6c377c1d861 Makefile.PL -SHA256 a0bc53c6732c9b73bbdb7dd6b8206e4431523c1eafcd5d7dcab1568e00c16ea7 README +SHA256 a4f85c6f4d6e8bdd37b7ab08013e3e3bee1fe8e910e20f8f54d5025ffe40f384 LICENSE +SHA256 2b9540524ce869a214ec369e0e54d375bc65a8c7b5d1749891f7976688d8ec5f MANIFEST +SHA256 256f3a92a1a18ca9734aee23873d7af905e3b2bab21c0778fec563f1250dcc52 META.json +SHA256 edbbfa4020214dfc74b474c9e7cb217f9ac53b4d3e77ae47868f4325ca6bbb36 META.yml +SHA256 d9f6ec50ed7952a8ec0d9df605bcf4e5c6b040a2e08b52822d5f25544c2eb38d Makefile.PL +SHA256 47b10ed37d8da7c65245ffe5773cf59654f1545cc0e2fbbfa4f1e25f67bb0ff3 NEWS +SHA256 0d2ea0e8456261f541cb039ee38d7994b28c989f2284a7fbb714bf7bf7952536 README SHA256 846fcc88a04c5b7cd65ec32c5f842f8b339d8fc28c1cc75f36fa10af809353e2 TODO SHA256 43562b3806635eddcf6e7ea7cf6edc690a7f52cca15e4fc76593d144fd450aa6 dist.ini -SHA256 83332c1825e64a806d879bd7082c3dcf2f1446a7330ecb7565aa0622191b365b doap.ttl +SHA256 07095e1460eaf05a4ce708c53909cc7d6bda594b24dba9be2f1879eda915ce04 doap.ttl SHA256 bbe194f6f9a9832847d82b7cb8b5d5f16c4af255bcef0d25f90992ff268462ea examples/Example/Exporter.pm SHA256 c361b86d13c8fdfbe75840d11dbe6af488e44af27b0edb80fd1eea28c8e935d4 inc/Test/Fatal.pm -SHA256 fe1cb3feb9e6892c5796e5883e63abd052b388dab44b9b2103e23828e7dd4db4 inc/Test/Requires.pm +SHA256 b8b2edfbb16b30d0e3b212a413c55a8de7ce929591d0a1029b70c47c8c0be11a inc/Test/Requires.pm SHA256 083292e0cefc5cd41c82975f7b9aadc6893065d4297dc153b7f13356c0c0a44c inc/Try/Tiny.pm SHA256 a93c5c677f44f7b00a7c414afeafaaa15ee7c7b72a47083936e1a8d37f0970b9 inc/archaic/Test/Builder.pm SHA256 fea307eee1d65187effaaaaf85663e55f1a23c2a25cd6a4963bada80c440075d inc/archaic/Test/Builder/IO/Scalar.pm @@ -38,11 +39,11 @@ SHA256 ae528d9fc2962793e98af13f4d4e802fbf8d78b17b1c27a860728a16e8bf4a3a inc/archaic/Test/Builder/Tester/Color.pm SHA256 764f3ed1e0a314e7e9f8d803dff3d894e8c572e2a128d7ce14f2a80268e50543 inc/archaic/Test/More.pm SHA256 c4fd1410a9bd85a0e7700de08c1614fc5928c0d02151ba1ec7d06bd56407e0d5 inc/archaic/Test/Simple.pm -SHA256 814e52b4e5cc338e2f90b876a9c0c6bae69b016eea440f26dc188b8f6b0fc60f lib/Exporter/Shiny.pm -SHA256 a565cc5c7247d66e0fb2c8de72b2d1fcffee9cddd92b7e30c8a4f11d6e2d624b lib/Exporter/Tiny.pm +SHA256 7cefbeb568f9111ee72270d647bc1a700bebd27216b7114cc7fd45a1b69cb2cb lib/Exporter/Shiny.pm +SHA256 64602b5db07ef35c31914eb0bb77cfc133fc65ddbb665586ce6246758765c64d lib/Exporter/Tiny.pm SHA256 3e080e8653b3b717c52dad07fcfc84c31766a9034c9c3b881ff41301a19b378a lib/Exporter/Tiny/Manual/Etc.pod SHA256 293f6a8c2d4dacb49b775b24547a2f4845487bd6549b08a82f06dd89281111c8 lib/Exporter/Tiny/Manual/Exporting.pod -SHA256 b30bb287d84da14a188de33cffbb886aeefc006338bdea42c9692b851d496b41 lib/Exporter/Tiny/Manual/Importing.pod +SHA256 c187110096953b6629df1cc4aef1eae17625be5ca1dd75d388da1aea43c7fb4e lib/Exporter/Tiny/Manual/Importing.pod SHA256 02201691ea56dd237b75984d680ac5d6c1152d09c761ef6376a2a3df84c18109 lib/Exporter/Tiny/Manual/QuickStart.pod SHA256 4d3896ea5efe37ef1d7ed52c4da53c49fcf00cf504d3db1d69cbd1f2755dbee2 t/01basic.t SHA256 1e979b56fb80efb07094f1172b63e35a90fd1c8291ee0e374d619a4d75465d24 t/02renaming.t @@ -57,9 +58,10 @@ SHA256 b0fcc16f86d948934caf5edf9fe09360a5eb8e60dd15d79b3b31d7f259d1edef t/11noncode.t SHA256 2488f918037f954ecec64a28c8a9e2bcb3ea9a9a7fe092fdcfd1c3bdd11e3f51 t/12noncodegenerators.t SHA256 47728bc580e310a5c3c3c61fb6be7a450ebdf6aa420bbf7c5b1ae514223e533f t/13doesntexist.t +SHA256 82953c33b12d287478d5b5b120cdedb43b71d2eec311eef91ae0a77fc3451732 t/14lexical.t -----BEGIN PGP SIGNATURE----- -iF0EARECAB0WIQRVJKj/4+s6z4WzNujOv4Eoaip9OQUCXqMIzQAKCRDOv4Eoaip9 -OW8UAJ9WxalOluxGq4UMkgqUTfRDWDnUdwCfYJVCGz5gggKkGsevInkkBXrnh2A= -=vy7S +iF0EAREDAB0WIQRVJKj/4+s6z4WzNujOv4Eoaip9OQUCYwj33AAKCRDOv4Eoaip9 +OVkVAJ9/WKpyTEdu/KnTMXDXLEYyuO0BtgCcC4YjpjyvFBMcHeWwT8Y2jtecyLs= +=hV0u -----END PGP SIGNATURE----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/doap.ttl new/Exporter-Tiny-1.004000/doap.ttl --- old/Exporter-Tiny-1.002002/doap.ttl 2020-04-24 17:42:05.000000000 +0200 +++ new/Exporter-Tiny-1.004000/doap.ttl 2022-08-26 18:42:04.000000000 +0200 @@ -18,7 +18,7 @@ doap-deps:runtime-requirement [ doap-deps:on "perl 5.006001"^^doap-deps:CpanId ]; doap-deps:test-recommendation [ doap-deps:on "Test::Fatal"^^doap-deps:CpanId ], [ doap-deps:on "Test::Warnings"^^doap-deps:CpanId ]; doap-deps:test-requirement [ doap-deps:on "Test::More 0.47"^^doap-deps:CpanId ]; - doap:bug-database <http://rt.cpan.org/Dist/Display.html?Queue=Exporter-Tiny>; + doap:bug-database <https://github.com/tobyink/p5-exporter-tiny/issues>; doap:created "2013-09-05"^^xsd:date; doap:developer <http://purl.org/NET/cpan-uri/person/tobyink>; doap:download-page <https://metacpan.org/release/Exporter-Tiny>; @@ -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>; + 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:repository [ a doap:GitRepository; doap:browse <https://github.com/tobyink/p5-exporter-tiny>; @@ -467,6 +467,71 @@ doap:file-release <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Exporter-Tiny-1.002002.tar.gz>; doap:revision "1.002002"^^xsd:string. +<http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_000> + a cpan-uri:DeveloperRelease, doap:Version; + dc:identifier "Exporter-Tiny-1.003_000"^^xsd:string; + dc:issued "2022-07-21"^^xsd:date; + doap-changeset:changeset [ + doap-changeset:item [ + a doap-changeset:Update; + rdfs:label "Provide a `-lexical` export option on Perl 5.37.2+."; + ]; + doap-changeset:versus <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-002002>; + ]; + 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.003_000.tar.gz>; + doap:revision "1.003_000"^^xsd:string. + +<http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_001> + a cpan-uri:DeveloperRelease, doap:Version; + dc:identifier "Exporter-Tiny-1.003_001"^^xsd:string; + dc:issued "2022-07-21"^^xsd:date; + doap-changeset:changeset [ + doap-changeset:item [ + a doap-changeset:Bugfix; + rdfs:label "Correctly check Perl version is at least 5.37.2+ before supporting -lexical option."; + ]; + doap-changeset:versus <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_000>; + ]; + 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.003_001.tar.gz>; + doap:revision "1.003_001"^^xsd:string. + +<http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_002> + a cpan-uri:DeveloperRelease, doap:Version; + dc:identifier "Exporter-Tiny-1.003_002"^^xsd:string; + dc:issued "2022-08-18"^^xsd:date; + doap-changeset:changeset [ + doap-changeset:item [ + a doap-changeset:Bugfix; + rdfs:label "Quote $1 when passing it as a parameter to a function"; + doap-changeset:thanks <urn:uuid:b9949163-3436-4e80-93f4-8be211e644c4>; + rdfs:seeAlso <https://github.com/tobyink/p5-exporter-tiny/issues/7>; + ]; + doap-changeset:versus <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_001>; + ]; + 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.003_002.tar.gz>; + doap:revision "1.003_002"^^xsd:string. + +<http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-004000> + a doap:Version; + dc:identifier "Exporter-Tiny-1.004000"^^xsd:string; + dc:issued "2022-08-26"^^xsd:date; + doap-changeset:changeset [ + doap-changeset:item [ + a doap-changeset:Packaging; + rdfs:label "No functional changes; repackage as stable."; + ], [ + a doap-changeset:Documentation; + rdfs:label "Document that the `-lexical` export option is experimental."; + ]; + doap-changeset:versus <http://purl.org/NET/cpan-uri/dist/Exporter-Tiny/v_1-003_002>; + ]; + 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.004000.tar.gz>; + doap:revision "1.004000"^^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>; @@ -506,6 +571,12 @@ foaf:nick "zhumengu"; foaf:page <https://github.com/zhumengu>. +<urn:uuid:b9949163-3436-4e80-93f4-8be211e644c4> + a foaf:Person; + foaf:name "Eugen Konkov"; + foaf:nick "KES777"; + foaf:page <https://github.com/KES777>. + [] a nfo:FileDataObject; dc:license <http://dev.perl.org/licenses/>; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/inc/Test/Requires.pm new/Exporter-Tiny-1.004000/inc/Test/Requires.pm --- old/Exporter-Tiny-1.002002/inc/Test/Requires.pm 2020-04-24 17:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004000/inc/Test/Requires.pm 2022-08-26 18:42:04.000000000 +0200 @@ -36,7 +36,7 @@ } $ver ||= ''; - eval qq{package $caller; use $mod $ver}; ## no critic. + eval qq{package $caller; no warnings; use $mod $ver}; ## no critic. if (my $e = $@) { my $skip_all = sub { my $builder = __PACKAGE__->builder; @@ -62,6 +62,12 @@ if ( $e =~ /^Can't locate/ ) { $skip_all->("requires $mod"); } + elsif ( $e =~ /^Perl (\S+) required/ ) { + $skip_all->("requires Perl $1"); + } + elsif ( $e =~ /^\Q$mod\E version (\S+) required/ ) { + $skip_all->("requires $mod $1"); + } else { $skip_all->("$e"); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/lib/Exporter/Shiny.pm new/Exporter-Tiny-1.004000/lib/Exporter/Shiny.pm --- old/Exporter-Tiny-1.002002/lib/Exporter/Shiny.pm 2020-04-24 17:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004000/lib/Exporter/Shiny.pm 2022-08-26 18:42:04.000000000 +0200 @@ -7,7 +7,7 @@ use Exporter::Tiny (); our $AUTHORITY = 'cpan:TOBYINK'; -our $VERSION = '1.002002'; +our $VERSION = '1.004000'; sub import { my $me = shift; @@ -86,7 +86,7 @@ =head1 BUGS Please report any bugs to -L<http://rt.cpan.org/Dist/Display.html?Queue=Exporter-Tiny>. +L<https://github.com/tobyink/p5-exporter-tiny/issues>. =head1 SEE ALSO diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/lib/Exporter/Tiny/Manual/Importing.pod new/Exporter-Tiny-1.004000/lib/Exporter/Tiny/Manual/Importing.pod --- old/Exporter-Tiny-1.002002/lib/Exporter/Tiny/Manual/Importing.pod 2020-04-24 17:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004000/lib/Exporter/Tiny/Manual/Importing.pod 2022-08-26 18:42:04.000000000 +0200 @@ -136,11 +136,27 @@ approach which doesn't just work with Exporter::Tiny, but B<all> exporters. -=head2 Lexical subs +=head2 Lexical subs on Perl 5.37.2 and above Often you want to make use of an exported function, but don't want it to "pollute" your namespace. +On newer versions of Perl, Exporter::Tiny can use C<export_lexically> +from L<builtin> to give you lexical versions of exports. + + { + use MyUtils -lexical, "frobnicate"; + + frobnicate(...); # ok + } + + frobnicate(...); # not ok + +This functionality should be considered B<EXPERIMENTAL> until +C<export_lexically> is included in a stable release of Perl. + +=head2 Lexical subs on Perl older than 5.37.2 + There is this L<Sub::Exporter::Lexical> thing that was designed as a plugin for L<Sub::Exporter>, but Exporter::Tiny's API is close enough that it will work. Do you remember that global options hash? Just diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/lib/Exporter/Tiny.pm new/Exporter-Tiny-1.004000/lib/Exporter/Tiny.pm --- old/Exporter-Tiny-1.002002/lib/Exporter/Tiny.pm 2020-04-24 17:42:04.000000000 +0200 +++ new/Exporter-Tiny-1.004000/lib/Exporter/Tiny.pm 2022-08-26 18:42:04.000000000 +0200 @@ -5,7 +5,7 @@ use warnings; no warnings qw(void once uninitialized numeric redefine); our $AUTHORITY = 'cpan:TOBYINK'; -our $VERSION = '1.002002'; +our $VERSION = '1.004000'; our @EXPORT_OK = qw< mkopt mkopt_hash _croak _carp >; sub _croak ($;@) { require Carp; my $fmt = shift; @_ = sprintf($fmt, @_); goto \&Carp::croak } @@ -23,13 +23,13 @@ ($name =~ m{\A\!(/.+/[msixpodual]*)\z}) ? do { - my @not = $class->_exporter_expand_regexp($1, $value, $global_opts); + my @not = $class->_exporter_expand_regexp("$1", $value, $global_opts); ++$not_want->{$_->[0]} for @not; } : ($name =~ m{\A\!(.+)\z}) ? (++$not_want->{$1}) : ($name =~ m{\A[:-](.+)\z}) ? - push(@$opts, $class->_exporter_expand_tag($1, $value, $global_opts)) : + push(@$opts, $class->_exporter_expand_tag("$1", $value, $global_opts)) : ($name =~ m{\A/.+/[msixpodual]*\z}) ? push(@$opts, $class->_exporter_expand_regexp($name, $value, $global_opts)) : # else ? @@ -261,7 +261,17 @@ my $into = $globals->{into}; my $installer = $globals->{installer} || $globals->{exporter}; - + + if ( $into eq '-lexical' or $globals->{lexical} ) { + $] ge '5.037002' + or _croak( 'Lexical export requires Perl 5.37.2 or above' ); + $installer ||= sub { + my ( $sigilname, $sym ) = @{ $_[1] }; + no warnings ( $] ge '5.037002' ? 'experimental::builtin' : () ); + builtin::export_lexically( $sigilname, $sym ); + }; + } + $name = ref $globals->{as} ? $globals->{as}->($name) : ref $value->{-as} ? $value->{-as}->($name) : @@ -476,7 +486,7 @@ =head1 BUGS Please report any bugs to -L<http://rt.cpan.org/Dist/Display.html?Queue=Exporter-Tiny>. +L<https://github.com/tobyink/p5-exporter-tiny/issues>. =head1 SUPPORT @@ -495,7 +505,7 @@ =head1 COPYRIGHT AND LICENCE -This software is copyright (c) 2013-2014, 2017 by Toby Inkster. +This software is copyright (c) 2013-2014, 2017, 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. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Tiny-1.002002/t/14lexical.t new/Exporter-Tiny-1.004000/t/14lexical.t --- old/Exporter-Tiny-1.002002/t/14lexical.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Exporter-Tiny-1.004000/t/14lexical.t 2022-08-26 18:42:04.000000000 +0200 @@ -0,0 +1,44 @@ +=pod + +=encoding utf-8 + +=head1 PURPOSE + +Tests support for lexical imports on Perl 5.37.2 and above. + +=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; +use Test::Requires '5.037002'; + +BEGIN { + package My::Utils; + use Exporter::Shiny qw( foo $bar ); + our $bar = 42; + sub foo { return $bar } +}; + +{ + use My::Utils -lexical, qw( foo $bar ); + is( foo(), 42 ); + is( $bar, 42 ); + ok ! main->can( 'foo' ); +} + +ok ! eval ' foo() '; +ok ! eval ' $bar '; + +done_testing;