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