Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 9dea100

Browse files
committed
version 0.9924_02
more test fixes for 5.6 upstream switched to github repo (cherry picked from commit c7d0460)
1 parent d2841fc commit 9dea100

File tree

19 files changed

+38
-32
lines changed

19 files changed

+38
-32
lines changed

Porting/Maintainers.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ package Maintainers;
15611561

15621562
'version' => {
15631563
# https://github.com/rurban/version/commits/cperl
1564-
'DISTRIBUTION' => 'RURBAN/version-0.9923_02.tar.gz',
1564+
'DISTRIBUTION' => 'RURBAN/version-0.9924_02.tar.gz',
15651565
'FILES' => q[cpan/version vutil.c vutil.h vxs.inc],
15661566
'EXCLUDED' => [
15671567
qr{^vutil/lib/},

cpan/version/lib/version.pm

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ package version;
33

44
use 5.006002;
55
use strict;
6+
use warnings::register;
7+
if ($] >= 5.015) {
8+
warnings::register_categories(qw/version/);
9+
}
610

7-
our $VERSION = '0.9923_02c';
8-
$VERSION =~ s/c$//;
11+
our $VERSION = '0.9924_02';
12+
our $XS_VERSION = $VERSION;
13+
#$VERSION =~ s/c$//;
14+
$VERSION = eval $VERSION;
915
our $CLASS = 'version';
1016
our (@ISA, $STRICT, $LAX);
1117

cpan/version/lib/version.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ version - Perl extension for Version Objects
1212
# Declaring a dotted-decimal $VERSION (keep on one line!)
1313

1414
use version; our $VERSION = version->declare("v1.2.3"); # formal
15-
use version; our $VERSION = qv("v1.2.3"); # shorthand
16-
use version; our $VERSION = qv("v1.2_3"); # alpha
15+
use version; our $VERSION = qv("v1.2.3"); # deprecated
16+
use version; our $VERSION = qv("v1.2_3"); # deprecated
1717

1818
# Declaring an old-style decimal $VERSION (use quotes!)
1919

cpan/version/lib/version/regex.pm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ package version::regex;
22

33
use strict;
44

5-
our $VERSION = '0.9923_02c';
6-
$VERSION =~ s/c$//;
5+
our $VERSION = '0.9924_02';
76

87
#--------------------------------------------------------------------------#
98
# Version regexp components

cpan/version/t/01base.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BEGIN {
1414
)
1515
);
1616
require $coretests;
17-
use_ok('version', 0.9923);
17+
use_ok('version', 0.992402);
1818
}
1919

2020
BaseTests("version","new","qv");

cpan/version/t/02derived.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ BEGIN {
1515
)
1616
);
1717
require $coretests;
18-
use_ok("version", 0.9923);
18+
use_ok("version", 0.992402);
1919
# If we made it this far, we are ok.
2020
}
2121

cpan/version/t/03require.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ BEGIN {
1919
# Don't want to use, because we need to make sure that the import doesn't
2020
# fire just yet (some code does this to avoid importing qv() and delare()).
2121
require_ok("version");
22-
is $version::VERSION, '0.9923_02', "Make sure we have the correct class";
22+
is $version::VERSION, 0.992402, "Make sure we have the correct class";
2323
ok(!"main"->can("qv"), "We don't have the imported qv()");
2424
ok(!"main"->can("declare"), "We don't have the imported declare()");
2525

cpan/version/t/05sigdie.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BEGIN {
1414
}
1515

1616
BEGIN {
17-
use version 0.9923;
17+
use version 0.992402;
1818
}
1919

2020
pass "Didn't get caught by the wrong DIE handler, which is a good thing";

cpan/version/t/06noop.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Test::More qw/no_plan/;
88

99
BEGIN {
10-
use_ok('version', 0.9923);
10+
use_ok('version', 0.992402);
1111
}
1212

1313
my $v1 = version->new('1.2');

0 commit comments

Comments
 (0)