From: Graham Knop Date: Thu, 30 Jul 2020 06:51:42 +0000 (+0200) Subject: normalize version declaration and underscore removal X-Git-Tag: v5.90128~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=339c829e48233d5819e47adca98d86a1154659ae;hp=0e35761233d9dfdcb6653df8ad6d2718a5593799 normalize version declaration and underscore removal --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 4110744..842409d 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -53,6 +53,9 @@ use Class::Load 'load_class'; use Encode 2.21 'decode_utf8', 'encode_utf8'; use Scalar::Util; +our $VERSION = '5.90_127'; +$VERSION =~ tr/_//d; + BEGIN { require 5.008003; } has stack => (is => 'ro', default => sub { [] }); @@ -206,10 +209,6 @@ sub composed_stats_class { __PACKAGE__->_encode_check(Encode::FB_CROAK | Encode::LEAVE_SRC); -# Remember to update this in Catalyst::Runtime as well! -our $VERSION = '5.90_127'; -$VERSION = eval $VERSION if $VERSION =~ /_/; # numify for warning-free dev releases - sub import { my ( $class, @arguments ) = @_; diff --git a/lib/Catalyst/Plugin/Unicode/Encoding.pm b/lib/Catalyst/Plugin/Unicode/Encoding.pm index a023d56..f7fc8db 100644 --- a/lib/Catalyst/Plugin/Unicode/Encoding.pm +++ b/lib/Catalyst/Plugin/Unicode/Encoding.pm @@ -1,6 +1,7 @@ package Catalyst::Plugin::Unicode::Encoding; our $VERSION = '5.90_127'; +$VERSION =~ tr/_//d; 1; diff --git a/lib/Catalyst/Runtime.pm b/lib/Catalyst/Runtime.pm index 3070abb..a22e4ab 100644 --- a/lib/Catalyst/Runtime.pm +++ b/lib/Catalyst/Runtime.pm @@ -5,10 +5,8 @@ use warnings; BEGIN { require 5.008003; } -# Remember to update this in Catalyst as well! - our $VERSION = '5.90_127'; -$VERSION = eval $VERSION if $VERSION =~ /_/; # numify for warning-free dev releases +$VERSION =~ tr/_//d; =head1 NAME