diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-07-09 08:55:44 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-07-09 08:55:44 +0300 |
commit | 77946164120de0a135035621762779bfa50e82d0 (patch) | |
tree | 9864626dc37a2c227f85c51602fe6ab9f87c2c22 | |
parent | 78ec9c89274273bd864089c3fb10f62319790dec (diff) | |
download | config-haproxy-77946164120de0a135035621762779bfa50e82d0.tar.gz config-haproxy-77946164120de0a135035621762779bfa50e82d0.tar.bz2 |
Raise minimal Perl requirement to 5.010.
-rw-r--r-- | Makefile.PL | 2 | ||||
-rw-r--r-- | lib/Config/HAProxy.pm | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.PL b/Makefile.PL index 81e815b..d9cc6e8 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,24 +1,24 @@ use strict; use warnings; use ExtUtils::MakeMaker; use Module::Metadata; WriteMakefile( NAME => 'Config::HAProxy', VERSION_FROM => 'lib/Config/HAProxy.pm', ABSTRACT_FROM => 'lib/Config/HAProxy.pm', LICENSE => 'gpl_3', AUTHOR => 'Sergey Poznyakoff <gray@gnu.org>', - MIN_PERL_VERSION => 5.006, + MIN_PERL_VERSION => 5.010, PREREQ_PM => { 'Carp' => 0, 'Clone' => 0, 'Text::Locus' => 1.00, 'Text::ParseWords' => 0, 'File::Basename' => 0, 'File::Temp' => 0 }, META_MERGE => { 'meta-spec' => { version => 2 }, resources => { repository => { diff --git a/lib/Config/HAProxy.pm b/lib/Config/HAProxy.pm index f99bf33..74eafa4 100644 --- a/lib/Config/HAProxy.pm +++ b/lib/Config/HAProxy.pm @@ -1,28 +1,29 @@ package Config::HAProxy; +use 5.010; use strict; use warnings; use Text::Locus; use Config::HAProxy::Node::Root; use Config::HAProxy::Node::Section; use Config::HAProxy::Node::Statement; use Config::HAProxy::Node::Comment; use Config::HAProxy::Node::Empty; use Text::ParseWords; use File::Basename; use File::Temp qw(tempfile); use File::stat; use Carp; -our $VERSION = '1.00'; +our $VERSION = '1.01'; my %sections = ( global => 1, defaults => 1, frontend => 1, backend => 1, ); sub new { my $class = shift; my $filename = shift // '/etc/haproxy/haproxy.cfg'; my $self = bless { _filename => $filename }, $class; |