summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>2013-09-18 10:52:57 +0100
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2013-09-18 12:09:39 +0100
commit5622f4516de7bf01385ce29fae960648d327b9a5 (patch)
tree5dd43c913822c2d1728984dded4b440c00f6113e
parenta576a29029ca81bf17ff696b19189f1945980823 (diff)
downloadperl-5622f4516de7bf01385ce29fae960648d327b9a5.tar.gz
Make changes_between() in Module::CoreList API the same as the other functions
-rw-r--r--dist/Module-CoreList/Changes4
-rw-r--r--dist/Module-CoreList/lib/Module/CoreList.pm4
2 files changed, 7 insertions, 1 deletions
diff --git a/dist/Module-CoreList/Changes b/dist/Module-CoreList/Changes
index 22c6d0dc71..fecb700cea 100644
--- a/dist/Module-CoreList/Changes
+++ b/dist/Module-CoreList/Changes
@@ -1,3 +1,7 @@
+2.99
+ - fixed Module::Build core deprecation
+ - changes_between now has the same API as all other functions
+
2.98 Wed Aug 21 2013
- Prepared for v5.19.4
diff --git a/dist/Module-CoreList/lib/Module/CoreList.pm b/dist/Module-CoreList/lib/Module/CoreList.pm
index e3fd719a59..b182c854d3 100644
--- a/dist/Module-CoreList/lib/Module/CoreList.pm
+++ b/dist/Module-CoreList/lib/Module/CoreList.pm
@@ -110,7 +110,9 @@ sub removed_raw {
}
sub changes_between {
- my ($left_ver, $right_ver) = @_;
+ my $left_ver = shift;
+ $left_ver = shift if eval { $left_ver->isa(__PACKAGE__) };
+ my $right_ver = shift;
my $left = $version{ $left_ver };
my $right = $version{ $right_ver };