Projects
Factory:RISC-V:Base
perl-experimental
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
_service:tar_scm:perl-experimental.spec
Changed
@@ -1,13 +1,11 @@ Name: perl-experimental -Version: 0.025 -Release: 2 +Version: 0.030 +Release: 1 Summary: Experimental features made easy License: GPL+ or Artistic URL: http://search.cpan.org/dist/experimental/ Source0: http://www.cpan.org/authors/id/L/LE/LEONT/experimental-%{version}.tar.gz -Patch0001: backport-Simplify-the-upgrade-to-next-stable-logic.patch - BuildArch: noarch BuildRequires: make perl-generators perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 @@ -53,6 +51,9 @@ %{_mandir}/man3/* %changelog +* Sun Jan 29 2023 hongjinghao <hongjinghao@huawei.com> - 0.030-1 +- update to 0.030 + * Mon Oct 24 2022 hongjinghao <hongjinghao@huawei.com> - 0.025-2 - Simplify code's logic
View file
_service:tar_scm:backport-Simplify-the-upgrade-to-next-stable-logic.patch
Deleted
@@ -1,31 +0,0 @@ -From 33e0c0e1de3fdecb4a627eaa1662871e13e041d2 Mon Sep 17 00:00:00 2001 -From: Leon Timmermans <fawaka@gmail.com> -Date: Fri, 4 Feb 2022 13:29:58 +0100 -Subject: PATCH Simplify the upgrade-to-next-stable logic - ---- - lib/experimental.pm | 8 ++------ - 1 file changed, 2 insertions(+), 6 deletions(-) - -diff --git a/lib/experimental.pm b/lib/experimental.pm -index 41b3994..9fa4461 100644 ---- a/lib/experimental.pm -+++ b/lib/experimental.pm -@@ -72,12 +72,8 @@ sub _enable { - croak "Can't enable unknown feature $pragma"; - } - elsif ($ < $min_version{$pragma}) { -- my $stable = $min_version{$pragma}; -- if ($stable->{version}1 % 2) { -- $stable = version->new( -- "5.".($stable->{version}1+1).'.0' -- ); -- } -+ my $stable = $min_version{$pragma}->stringify; -+ $stable =~ s/^ 5\. (0-9?13579) \. \d+ $/"5." . ($1 + 1) . ".0"/xe; - croak "Need perl $stable or later for feature $pragma"; - } - elsif ($ >= ($removed_in_version{$pragma} || 7)) { --- -2.33.0 -
View file
_service:tar_scm:experimental-0.025.tar.gz/xt
Deleted
-(directory)
View file
_service:tar_scm:experimental-0.025.tar.gz/Changes -> _service:tar_scm:experimental-0.030.tar.gz/Changes
Changed
@@ -1,5 +1,23 @@ Revision history for experimental +0.030 2022-12-10 13:02:15+01:00 Europe/Amsterdam + - Adapt to future deprecation of smartmatch + +0.029 2022-10-25 23:22:21+02:00 Europe/Amsterdam + - Fix handling of warning categories that have been removed + +0.028 2022-04-26 02:02:45+02:00 Europe/Amsterdam + - Add extra_paired_delims feature + +0.027 2022-02-08 18:41:07+01:00 Europe/Amsterdam + - Update documented list of experiments + +0.026 2022-02-08 14:41:02+01:00 Europe/Amsterdam + - Added defer experiment + - Added for_list experiment + - Added builtin experiment + - args_array_with_signatures + 0.025 2021-07-30 14:41:39+02:00 Europe/Amsterdam - Add missing documentation for try
View file
_service:tar_scm:experimental-0.025.tar.gz/INSTALL -> _service:tar_scm:experimental-0.030.tar.gz/INSTALL
Changed
@@ -21,8 +21,11 @@ ## Manual installation -As a last resort, you can manually install it. Download the tarball, untar it, -install configure prerequisites (see below), then build it: +As a last resort, you can manually install it. If you have not already +downloaded the release tarball, you can find the download link on the module's +MetaCPAN page: https://metacpan.org/pod/experimental + +Untar the tarball, install configure prerequisites (see below), then build it: % perl Makefile.PL % make && make test
View file
_service:tar_scm:experimental-0.025.tar.gz/LICENSE -> _service:tar_scm:experimental-0.030.tar.gz/LICENSE
Changed
@@ -292,21 +292,21 @@ - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through - textual modification. + textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright - Holder. + Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for - the package. + the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the - computing community at large as a market that must bear the fee.) + computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they - received it. + received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you @@ -373,7 +373,7 @@ 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF -MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End
View file
_service:tar_scm:experimental-0.025.tar.gz/MANIFEST -> _service:tar_scm:experimental-0.030.tar.gz/MANIFEST
Changed
@@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.020. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.029. Changes INSTALL LICENSE
View file
_service:tar_scm:experimental-0.025.tar.gz/META.json -> _service:tar_scm:experimental-0.030.tar.gz/META.json
Changed
@@ -4,7 +4,7 @@ "Leon Timmermans <leont@cpan.org>" , "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 6.020, CPAN::Meta::Converter version 2.150010", + "generated_by" : "Dist::Zilla version 6.029, CPAN::Meta::Converter version 2.150010", "license" : "perl_5" , @@ -45,7 +45,7 @@ "provides" : { "experimental" : { "file" : "lib/experimental.pm", - "version" : "0.025" + "version" : "0.030" } }, "release_status" : "stable", @@ -60,20 +60,22 @@ "web" : "https://github.com/Dual-Life/experimental" } }, - "version" : "0.025", + "version" : "0.030", "x_contributors" : "brian greenfield <0briang0@gmail.com>", "Dagfinn Ilmari Manns\u00e5ker <ilmari@ilmari.org>", "Father Chrysostomos <sprout@cpan.org>", + "Graham Knop <haarg@haarg.org>", "Grant McLean <grant@catalyst.net.nz>", "gregor herrmann <gregoa@debian.org>", "Karen Etheridge <ether@cpan.org>", "Leon Timmermans <fawaka@gmail.com>", + "Philippe Bruhat (BooK) <book@cpan.org>", "Ricardo Signes <rjbs@cpan.org>", "Sawyer X <xsawyerx@cpan.org>" , - "x_generated_by_perl" : "v5.32.0", - "x_serialization_backend" : "Cpanel::JSON::XS version 4.19", + "x_generated_by_perl" : "v5.36.0", + "x_serialization_backend" : "Cpanel::JSON::XS version 4.29", "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" }
View file
_service:tar_scm:experimental-0.025.tar.gz/META.yml -> _service:tar_scm:experimental-0.030.tar.gz/META.yml
Changed
@@ -7,7 +7,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.020, CPAN::Meta::Converter version 2.150010' +generated_by: 'Dist::Zilla version 6.029, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -16,7 +16,7 @@ provides: experimental: file: lib/experimental.pm - version: '0.025' + version: '0.030' requires: Carp: '0' strict: '0' @@ -25,17 +25,19 @@ resources: bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=experimental repository: git://github.com/Dual-Life/experimental.git -version: '0.025' +version: '0.030' x_contributors: - 'brian greenfield <0briang0@gmail.com>' - 'Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>' - 'Father Chrysostomos <sprout@cpan.org>' + - 'Graham Knop <haarg@haarg.org>' - 'Grant McLean <grant@catalyst.net.nz>' - 'gregor herrmann <gregoa@debian.org>' - 'Karen Etheridge <ether@cpan.org>' - 'Leon Timmermans <fawaka@gmail.com>' + - 'Philippe Bruhat (BooK) <book@cpan.org>' - 'Ricardo Signes <rjbs@cpan.org>' - 'Sawyer X <xsawyerx@cpan.org>' -x_generated_by_perl: v5.32.0 +x_generated_by_perl: v5.36.0 x_serialization_backend: 'YAML::Tiny version 1.73' x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
View file
_service:tar_scm:experimental-0.025.tar.gz/Makefile.PL -> _service:tar_scm:experimental-0.030.tar.gz/Makefile.PL
Changed
@@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.020. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.029. use strict; use warnings; @@ -24,7 +24,7 @@ "TEST_REQUIRES" => { "Test::More" => "0.89" }, - "VERSION" => "0.025", + "VERSION" => "0.030", "test" => { "TESTS" => "t/*.t" }
View file
_service:tar_scm:experimental-0.025.tar.gz/README -> _service:tar_scm:experimental-0.030.tar.gz/README
Changed
@@ -1,5 +1,5 @@ This archive contains the distribution experimental, -version 0.025: +version 0.030: Experimental features made easy @@ -9,4 +9,4 @@ the same terms as the Perl 5 programming language system itself. -This README file was generated by Dist::Zilla::Plugin::Readme v6.020. +This README file was generated by Dist::Zilla::Plugin::Readme v6.029.
View file
_service:tar_scm:experimental-0.025.tar.gz/lib/experimental.pm -> _service:tar_scm:experimental-0.030.tar.gz/lib/experimental.pm
Changed
@@ -1,5 +1,5 @@ package experimental; -$experimental::VERSION = '0.025'; +$experimental::VERSION = '0.030'; use strict; use warnings; use version (); @@ -8,6 +8,7 @@ use Carp qw/croak carp/; my %warnings = map { $_ => 1 } grep { /^experimental::/ } keys %warnings::Offsets; +my %removed_warnings = map { $_ => 1 } grep { /^experimental::/ } keys %warnings::NoOp; my %features = map { $_ => 1 } $ > 5.015006 ? keys %feature::feature : do { my @features; if ($ >= 5.010) { @@ -18,14 +19,19 @@ }; my %min_version = ( + args_array_with_signatures => '5.20.0', array_base => '5', autoderef => '5.14.0', bitwise => '5.22.0', + builtin => '5.35.7', const_attr => '5.22.0', current_sub => '5.16.0', declared_refs => '5.26.0', + defer => '5.35.4', evalbytes => '5.16.0', + extra_paired_delims => '5.35.9', fc => '5.16.0', + for_list => '5.35.5', isa => '5.31.7', lexical_topic => '5.10.0', lexical_subs => '5.18.0', @@ -43,9 +49,9 @@ unicode_strings => '5.12.0', ); my %removed_in_version = ( - array_base => '5.29.4', - autoderef => '5.23.1', - lexical_topic => '5.23.4', + array_base => '5.30.0', + autoderef => '5.24.0', + lexical_topic => '5.24.0', ); $_ = version->new($_) for values %min_version; @@ -68,16 +74,15 @@ feature->import($pragma); _enable(@{ $additional{$pragma} }) if $additional{$pragma}; } + elsif ($removed_warnings{"experimental::$pragma"}) { + _enable(@{ $additional{$pragma} }) if $additional{$pragma}; + } elsif (not exists $min_version{$pragma}) { croak "Can't enable unknown feature $pragma"; } elsif ($ < $min_version{$pragma}) { - my $stable = $min_version{$pragma}; - if ($stable->{version}1 % 2) { - $stable = version->new( - "5.".($stable->{version}1+1).'.0' - ); - } + my $stable = $min_version{$pragma}->stringify; + $stable =~ s/^ 5\. (0-9?13579) \. \d+ $/"5." . ($1 + 1) . ".0"/xe; croak "Need perl $stable or later for feature $pragma"; } elsif ($ >= ($removed_in_version{$pragma} || 7)) { @@ -135,12 +140,12 @@ =head1 VERSION -version 0.025 +version 0.030 =head1 SYNOPSIS - use experimental 'lexical_subs', 'smartmatch'; - my sub foo { $_0 ~~ 1 } + use experimental 'lexical_subs', 'signatures'; + my sub plus_one($value) { $value + 1 } =head1 DESCRIPTION @@ -168,18 +173,26 @@ =over 4 +=item * C<args_array_with_signatures> - allow C<@_> to be used in signatured subs. + +This is supported on perl 5.20.0 and above, but is likely to be removed in the future. + =item * C<array_base> - allow the use of C<$> to change the starting index of C<@array>. -This is supported on all versions of perl. +This was removed in perl 5.30.0. =item * C<autoderef> - allow push, each, keys, and other built-ins on references. -This was added in perl 5.14.0 and removed in perl 5.23.1. +This was added in perl 5.14.0 and removed in perl 5.24.0. =item * C<bitwise> - allow the new stringwise bit operators This was added in perl 5.22.0. +=item * C<builtin> - allow the use of the functions in the builtin:: namespace + +This was added in perl 5.36.0 + =item * C<const_attr> - allow the :const attribute on subs This was added in perl 5.22.0. @@ -188,13 +201,26 @@ This was added in perl 5.26.0. +=item * C<defer> - enables the use of defer blocks + +This was added in perl 5.36.0 + +=item * C<extra_paired_delims> - enables the use of more paired string delimiters than the +traditional four, S<C<< < > >>>, S<C<( )>>, S<C<{ }>>, and S<C< >>. + +This was added in perl 5.36. + +=item * C<for_list> - allows iterating over multiple values at a time with C<for> + +This was added in perl 5.36.0 + =item * C<isa> - allow the use of the C<isa> infix operator This was added in perl 5.32.0. =item * C<lexical_topic> - allow the use of lexical C<$_> via C<my $_>. -This was added in perl 5.10.0 and removed in perl 5.23.4. +This was added in perl 5.10.0 and removed in perl 5.24.0. =item * C<lexical_subs> - allow the use of lexical subroutines. @@ -229,10 +255,14 @@ This was added in perl 5.10.0, but it should be noted there are significant incompatibilities between 5.10.0 and 5.10.1. +The feature is going to be deprecated in perl 5.38.0, and removed in 5.42.0. + =item * C<switch> - allow the use of C<~~>, given, and when This was added in perl 5.10.0. +The feature is going to be deprecated in perl 5.38.0, and removed in 5.42.0. + =item * C<try> - allow the use of C<try> and C<catch> This was added in perl 5.34.0
View file
_service:tar_scm:experimental-0.025.tar.gz/t/basic.t -> _service:tar_scm:experimental-0.030.tar.gz/t/basic.t
Changed
@@ -18,7 +18,9 @@ END } -if ($ >= 5.010001) { +use warnings (); +if ( $ >= 5.010001 + && ( $ < 5.017011 || exists $warnings::Offsets{"experimental::smartmatch"} ) ) { is (eval <<'END', 1, 'switch compiles') or diag $@; use experimental 'switch'; sub bar { 1 }; @@ -34,7 +36,8 @@ END } -if ($ >= 5.010001) { +if ( $ >= 5.010001 + && ( $ < 5.017011 || exists $warnings::Offsets{"experimental::smartmatch"} ) ) { is (eval <<'END', 1, 'smartmatch compiles') or diag $@; use experimental 'smartmatch'; sub baz { 1 };
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2