diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2011-12-31 01:11:58 +0000 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2011-12-31 09:27:08 +0000 |
commit | ef337e16d60335fe32d9bde77eba5ef3ac36f983 (patch) | |
tree | 6d9db363c51b01ebf57a53c90d7a0a1aa7c8d494 /cpan | |
parent | 36a6a1351fbc85eb66a929bc12086f30e1713d73 (diff) | |
download | perl-ef337e16d60335fe32d9bde77eba5ef3ac36f983.tar.gz |
Update Version-Requirements to CPAN version 0.101021
[DELTA]
0.101021 2011-12-30 15:39:56 America/New_York
DEPRECATED DEPRECATED DEPRECATED DEPRECATED
Version::Requirements is now DEPRECATED
Use CPAN::Meta::Requirements, which is a drop-in replacement.
Diffstat (limited to 'cpan')
-rw-r--r-- | cpan/Version-Requirements/Changes | 7 | ||||
-rw-r--r-- | cpan/Version-Requirements/lib/Version/Requirements.pm | 18 |
2 files changed, 15 insertions, 10 deletions
diff --git a/cpan/Version-Requirements/Changes b/cpan/Version-Requirements/Changes index d3217bb049..45af307415 100644 --- a/cpan/Version-Requirements/Changes +++ b/cpan/Version-Requirements/Changes @@ -1,5 +1,12 @@ Revision history for Version-Requirements +0.101021 2011-12-30 15:39:56 America/New_York + DEPRECATED DEPRECATED DEPRECATED DEPRECATED + + Version::Requirements is now DEPRECATED + + Use CPAN::Meta::Requirements, which is a drop-in replacement. + 0.101020 2010-04-12 09:08:26 America/New_York add finalization with ->finalize and ->is_finalized diff --git a/cpan/Version-Requirements/lib/Version/Requirements.pm b/cpan/Version-Requirements/lib/Version/Requirements.pm index f667189282..be08029b1c 100644 --- a/cpan/Version-Requirements/lib/Version/Requirements.pm +++ b/cpan/Version-Requirements/lib/Version/Requirements.pm @@ -1,8 +1,8 @@ use strict; use warnings; package Version::Requirements; -BEGIN { - $Version::Requirements::VERSION = '0.101020'; +{ + $Version::Requirements::VERSION = '0.101021'; } # ABSTRACT: a set of version requirements for a CPAN dist @@ -11,6 +11,10 @@ use Carp (); use Scalar::Util (); use version 0.77 (); # the ->parse method +Carp::cluck( + "Version::Requirements is deprecated; replace with CPAN::Meta::Requirements" +); + sub new { my ($class) = @_; @@ -184,9 +188,6 @@ sub from_string_hash { { package Version::Requirements::_Range::Exact; -BEGIN { - $Version::Requirements::_Range::Exact::VERSION = '0.101020'; -} sub _new { bless { version => $_[1] } => $_[0] } sub _accepts { return $_[0]{version} == $_[1] } @@ -231,9 +232,6 @@ BEGIN { { package Version::Requirements::_Range::Range; -BEGIN { - $Version::Requirements::_Range::Range::VERSION = '0.101020'; -} sub _self { ref($_[0]) ? $_[0] : (bless { } => $_[0]) } @@ -392,7 +390,7 @@ Version::Requirements - a set of version requirements for a CPAN dist =head1 VERSION -version 0.101020 +version 0.101021 =head1 SYNOPSIS @@ -583,7 +581,7 @@ Version::Requirements object. =head1 AUTHOR - Ricardo Signes <rjbs@cpan.org> +Ricardo Signes <rjbs@cpan.org> =head1 COPYRIGHT AND LICENSE |