Skip to content

Commit

Permalink
use version->declare
Browse files Browse the repository at this point in the history
  • Loading branch information
skaji committed Nov 26, 2017
1 parent 28a5b50 commit 0d13a7a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on configure => sub {
requires 'Devel::PPPort', '3.33';
requires 'ExtUtils::ParseXS', '3.22';
requires 'Module::Build::XSUtil';
# prevent "Mouse::Deprecated does not define $VERSION" error in test under perl 5.8
requires 'version', '0.9913';
};

on 'test' => sub {
Expand Down
2 changes: 1 addition & 1 deletion lib/Mouse.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use 5.008_005;

use Mouse::Exporter; # enables strict and warnings

our $VERSION = 'v2.4.10';
use version; our $VERSION = version->declare('v2.4.10');

use Carp ();
use Scalar::Util ();
Expand Down
2 changes: 1 addition & 1 deletion lib/Mouse/Role.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Mouse::Role;
use Mouse::Exporter; # enables strict and warnings

our $VERSION = 'v2.4.10';
use version; our $VERSION = version->declare('v2.4.10');

use Carp ();
use Scalar::Util ();
Expand Down
2 changes: 1 addition & 1 deletion lib/Mouse/Spec.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Mouse::Spec;
use strict;
use warnings;

our $VERSION = 'v2.4.10';
use version; our $VERSION = version->declare('v2.4.10');

our $MouseVersion = $VERSION;
our $MooseVersion = '1.13';
Expand Down
2 changes: 1 addition & 1 deletion lib/Mouse/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ BEGIN{
},
);

our $VERSION = 'v2.4.10';
use version; our $VERSION = version->declare('v2.4.10');

my $xs = !(defined(&is_valid_class_name) || $ENV{MOUSE_PUREPERL} || $ENV{PERL_ONLY});

Expand Down
2 changes: 1 addition & 1 deletion tool/generate-mouse-tiny.pl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ sub uniq{
print { $handle } << "EOF";
package Mouse::Tiny;
our \$VERSION = '$Mouse::Spec::VERSION';
use version; our \$VERSION = version->declare('$Mouse::Spec::VERSION');
Mouse::Exporter->setup_import_methods(also => 'Mouse');
Expand Down

0 comments on commit 0d13a7a

Please sign in to comment.