normalize version declaration and underscore removal
Graham Knop [Thu, 30 Jul 2020 06:51:42 +0000 (08:51 +0200)]
lib/Catalyst.pm
lib/Catalyst/Plugin/Unicode/Encoding.pm
lib/Catalyst/Runtime.pm

index 4110744..842409d 100644 (file)
@@ -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 ) = @_;
 
index a023d56..f7fc8db 100644 (file)
@@ -1,6 +1,7 @@
 package Catalyst::Plugin::Unicode::Encoding;
 
 our $VERSION = '5.90_127';
+$VERSION =~ tr/_//d;
 
 1;
 
index 3070abb..a22e4ab 100644 (file)
@@ -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