148189
From d432fdba21ba5c1ba3008b2a21e44920c329ab1f Mon Sep 17 00:00:00 2001
148189
From: Jitka Plesnikova <jplesnik@redhat.com>
148189
Date: Thu, 24 May 2018 10:36:25 +0200
148189
Subject: [PATCH] Upgrade to 1.29
148189
148189
---
148189
 lib/Locale/Maketext.pm  | 13 ++++++-------
148189
 lib/Locale/Maketext.pod |  2 +-
148189
 t/60_super.t            | 15 ++++++---------
148189
 t/70_fail_auto.t        |  6 ++----
148189
 4 files changed, 15 insertions(+), 21 deletions(-)
148189
148189
diff --git a/lib/Locale/Maketext.pm b/lib/Locale/Maketext.pm
148189
index 36d0c05..f70438b 100644
148189
--- a/lib/Locale/Maketext.pm
148189
+++ b/lib/Locale/Maketext.pm
148189
@@ -1,7 +1,6 @@
148189
 package Locale::Maketext;
148189
 use strict;
148189
-use vars qw( @ISA $VERSION $MATCH_SUPERS $USING_LANGUAGE_TAGS
148189
-$USE_LITERALS $MATCH_SUPERS_TIGHTLY);
148189
+our $USE_LITERALS;
148189
 use Carp ();
148189
 use I18N::LangTags ();
148189
 use I18N::LangTags::Detect ();
148189
@@ -26,12 +25,12 @@ BEGIN {
148189
 }
148189
 
148189
 
148189
-$VERSION = '1.28';
148189
-@ISA = ();
148189
+our $VERSION = '1.29';
148189
+our @ISA = ();
148189
 
148189
-$MATCH_SUPERS = 1;
148189
-$MATCH_SUPERS_TIGHTLY = 1;
148189
-$USING_LANGUAGE_TAGS  = 1;
148189
+our $MATCH_SUPERS = 1;
148189
+our $MATCH_SUPERS_TIGHTLY = 1;
148189
+our $USING_LANGUAGE_TAGS  = 1;
148189
 # Turning this off is somewhat of a security risk in that little or no
148189
 # checking will be done on the legality of tokens passed to the
148189
 # eval("use $module_name") in _try_use.  If you turn this off, you have
148189
diff --git a/lib/Locale/Maketext.pod b/lib/Locale/Maketext.pod
148189
index 564e5af..24c8f24 100644
148189
--- a/lib/Locale/Maketext.pod
148189
+++ b/lib/Locale/Maketext.pod
148189
@@ -1226,7 +1226,7 @@ If you get tired of constantly saying C<print $lh-E<gt>maketext>,
148189
 consider making a functional wrapper for it, like so:
148189
 
148189
   use Projname::L10N;
148189
-  use vars qw($lh);
148189
+  our $lh;
148189
   $lh = Projname::L10N->get_handle(...) || die "Language?";
148189
   sub pmt (@) { print( $lh->maketext(@_)) }
148189
    # "pmt" is short for "Print MakeText"
148189
diff --git a/t/60_super.t b/t/60_super.t
148189
index d54fc33..5ac0959 100644
148189
--- a/t/60_super.t
148189
+++ b/t/60_super.t
148189
@@ -9,23 +9,20 @@ BEGIN {
148189
 
148189
 {
148189
     package Whunk::L10N;
148189
-    use vars qw(@ISA %Lexicon);
148189
-    @ISA =  'Locale::Maketext';
148189
-    %Lexicon = ('hello' => 'SROBLR!');
148189
+    our @ISA =  'Locale::Maketext';
148189
+    our %Lexicon = ('hello' => 'SROBLR!');
148189
 }
148189
 
148189
 {
148189
     package Whunk::L10N::en;
148189
-    use vars qw(@ISA %Lexicon);
148189
-    @ISA =  'Whunk::L10N';
148189
-    %Lexicon = ('hello' => 'HI AND STUFF!');
148189
+    our @ISA =  'Whunk::L10N';
148189
+    our %Lexicon = ('hello' => 'HI AND STUFF!');
148189
 }
148189
 
148189
 {
148189
     package Whunk::L10N::zh_tw;
148189
-    use vars qw(@ISA %Lexicon);
148189
-    @ISA =  'Whunk::L10N';
148189
-    %Lexicon = ('hello' => 'NIHAU JOE!');
148189
+    our @ISA =  'Whunk::L10N';
148189
+    our %Lexicon = ('hello' => 'NIHAU JOE!');
148189
 }
148189
 
148189
 $ENV{'REQUEST_METHOD'} = 'GET';
148189
diff --git a/t/70_fail_auto.t b/t/70_fail_auto.t
148189
index 44fe54d..df0de3e 100644
148189
--- a/t/70_fail_auto.t
148189
+++ b/t/70_fail_auto.t
148189
@@ -9,14 +9,12 @@ BEGIN {
148189
 
148189
 {
148189
     package Whunk::L10N;
148189
-    use vars qw(@ISA);
148189
-    @ISA =  'Locale::Maketext';
148189
+    our @ISA =  'Locale::Maketext';
148189
 }
148189
 
148189
 {
148189
     package Whunk::L10N::en;
148189
-    use vars qw(@ISA);
148189
-    @ISA = 'Whunk::L10N';
148189
+    our @ISA = 'Whunk::L10N';
148189
 }
148189
 
148189
 my $lh = Whunk::L10N->get_handle('en');
148189
-- 
148189
2.14.3
148189