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

Commit 1a9b8e4

Browse files
committed
version-0.9923_02
1 parent ee2ac5d commit 1a9b8e4

File tree

18 files changed

+199
-97
lines changed

18 files changed

+199
-97
lines changed

Porting/Maintainers.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ package Maintainers;
15351535
},
15361536

15371537
'version' => {
1538-
'DISTRIBUTION' => 'JPEACOCK/version-0.9918.tar.gz',
1538+
'DISTRIBUTION' => 'JPEACOCK/version-0.9923.tar.gz',
15391539
'FILES' => q[cpan/version vutil.c vutil.h vxs.inc],
15401540
'EXCLUDED' => [
15411541
qr{^vutil/lib/},

cpan/version/lib/version.pm

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ package version;
44
use 5.006002;
55
use strict;
66

7-
use vars qw(@ISA $VERSION $CLASS $STRICT $LAX *declare *qv);
8-
9-
$VERSION = '0.9918_02c';
10-
$VERSION =~ s/c$//;
11-
$CLASS = 'version';
7+
our $VERSION = '0.9923_02';
8+
#$VERSION =~ s/c$//;
9+
our $CLASS = 'version';
10+
our (@ISA, $STRICT, $LAX);
1211

1312
# avoid using Exporter
1413
require version::regex;

cpan/version/lib/version.pod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,10 @@ leading-v and at least 3 components.
269269

270270
=head2 numify()
271271

272-
Returns a value representing the object in a pure decimal form without
273-
trailing zeroes.
272+
Returns a value representing the object in a pure decimal.
274273

275-
version->declare('v1.2')->numify; # 1.002
276-
version->parse('1.2')->numify; # 1.2
274+
version->declare('v1.2')->numify; # 1.002000
275+
version->parse('1.2')->numify; # 1.200
277276

278277
=head2 stringify()
279278

@@ -283,7 +282,7 @@ way perl would normally represent it in a string. This method is used whenever
283282
a version object is interpolated into a string.
284283

285284
version->declare('v1.2')->stringify; # v1.2
286-
version->parse('1.200')->stringify; # 1.200
285+
version->parse('1.200')->stringify; # 1.2
287286
version->parse(1.02_30)->stringify; # 1.023
288287

289288
=head1 EXPORTED FUNCTIONS

cpan/version/lib/version/regex.pm

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

33
use strict;
44

5-
use vars qw(
6-
$VERSION $CLASS $STRICT $LAX
7-
$STRICT_DECIMAL_VERSION $STRICT_DOTTED_DECIMAL_VERSION
8-
$LAX_DECIMAL_VERSION $LAX_DOTTED_DECIMAL_VERSION
9-
);
10-
11-
$VERSION = '0.9918_02c';
12-
$VERSION =~ s/c$//;
5+
our $VERSION = '0.9923_02';
6+
#$VERSION =~ s/c$//;
137

148
#--------------------------------------------------------------------------#
159
# Version regexp components
@@ -63,19 +57,19 @@ my $LAX_ALPHA_PART = qr/(?:_[0-9]+c?|c?)/;
6357

6458
# Strict decimal version number.
6559

66-
$STRICT_DECIMAL_VERSION =
60+
our $STRICT_DECIMAL_VERSION =
6761
qr/ $STRICT_INTEGER_PART $FRACTION_PART? c? /x;
6862

6963
# Strict dotted-decimal version number. Must have both leading "v" and
7064
# at least three parts, to avoid confusion with decimal syntax.
7165

72-
$STRICT_DOTTED_DECIMAL_VERSION =
66+
our $STRICT_DOTTED_DECIMAL_VERSION =
7367
qr/ v $STRICT_INTEGER_PART $STRICT_DOTTED_DECIMAL_PART{2,} c? /x;
7468

7569
# Complete strict version number syntax -- should generally be used
7670
# anchored: qr/ \A $STRICT \z /x
7771

78-
$STRICT =
72+
our $STRICT =
7973
qr/ $STRICT_DECIMAL_VERSION | $STRICT_DOTTED_DECIMAL_VERSION /x;
8074

8175
#--------------------------------------------------------------------------#
@@ -86,7 +80,7 @@ $STRICT =
8680
# allowing an alpha suffix or allowing a leading or trailing
8781
# decimal-point
8882

89-
$LAX_DECIMAL_VERSION =
83+
our $LAX_DECIMAL_VERSION =
9084
qr/ $LAX_INTEGER_PART (?: $FRACTION_PART | \. )? $LAX_ALPHA_PART?
9185
|
9286
$FRACTION_PART $LAX_ALPHA_PART?
@@ -98,7 +92,7 @@ $LAX_DECIMAL_VERSION =
9892
# enough, without the leading "v", Perl takes .1.2 to mean v0.1.2,
9993
# so when there is no "v", the leading part is optional
10094

101-
$LAX_DOTTED_DECIMAL_VERSION =
95+
our $LAX_DOTTED_DECIMAL_VERSION =
10296
qr/
10397
v $LAX_INTEGER_PART (?: $LAX_DOTTED_DECIMAL_PART+ $LAX_ALPHA_PART? )?
10498
|
@@ -111,7 +105,7 @@ $LAX_DOTTED_DECIMAL_VERSION =
111105
# The string 'undef' is a special case to make for easier handling
112106
# of return values from ExtUtils::MM->parse_version
113107

114-
$LAX =
108+
our $LAX =
115109
qr/ undef | $LAX_DOTTED_DECIMAL_VERSION | $LAX_DECIMAL_VERSION /x;
116110

117111
#--------------------------------------------------------------------------#

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.9918);
17+
use_ok('version', 0.9923);
1818
}
1919

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

cpan/version/t/02derived.t

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

@@ -51,8 +51,7 @@ print $fh <<"EOF";
5151
# This is an empty subclass
5252
package $package;
5353
use parent 'version';
54-
use vars '\$VERSION';
55-
\$VERSION=0.001;
54+
our \$VERSION = 0.001;
5655
EOF
5756
close $fh;
5857

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.9918_02', "Make sure we have the correct class";
22+
is $version::VERSION, '0.9923_02', "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.9918;
17+
use version 0.9923;
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.9918);
10+
use_ok('version', 0.9923);
1111
}
1212

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

cpan/version/t/07locale.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use Test::More tests => 8;
1111
use Config;
1212

1313
BEGIN {
14-
use_ok('version', 0.9918);
14+
use_ok('version', 0.9923);
1515
}
1616

1717
SKIP: {

0 commit comments

Comments
 (0)