Skip to content

Commit

Permalink
Changed min perl to 5.006 to see if it works
Browse files Browse the repository at this point in the history
Also added {META_MERGE}->{release_status} for trial releases
  • Loading branch information
Chris White committed Apr 9, 2019
1 parent 684c0b3 commit 136754a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 34 deletions.
25 changes: 14 additions & 11 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
Revision history for Getargs-Mixed

1.05 2019-04-04
1.05_1 2019-04-09
Testing with 5.006 - no code changes other than the `use 5.006` line

1.05 2019-04-04
Non-trial release of the code from 1.04_2

1.04_2 2019-03-28
1.04_2 2019-03-28
Better checking for invalid specifications; additional tests.

1.04_1 2019-02-23
1.04_1 2019-02-23
Better handling of specifications that include multiple semicolons
(which is unsupported).

1.04 2019-02-11
Added OO interface (new()) and -undef_ok option.
1.04 2019-02-11
Added OO interface (new()) and -undef_ok option.

1.03 2003-09-04
Bugfixes and additional tests.
1.03 2003-09-04
Bugfixes and additional tests.

1.02 2003-09-03
Semicolon can come at the beginning of an argument name.
1.02 2003-09-03
Semicolon can come at the beginning of an argument name.

1.01 2003-09-03
Initial version, released on an unsuspecting world.
1.01 2003-09-03
Initial version, released on an unsuspecting world.

58 changes: 37 additions & 21 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
use 5.008;
use 5.006;
use ExtUtils::MakeMaker;
use File::Spec;

my $source = File::Spec->catfile(qw(lib Getargs Mixed.pm));

# Module metadata {{{1
my $provides;
eval {
my $is_trial;

# Fill in $provides {{{1
eval { # ignore errors
require Module::Metadata;
$provides = Module::Metadata->provides(version => '2', dir => 'lib');
# Thanks to https://stackoverflow.com/a/28928985/2877364 by LEONT
};

# }}}1
# Fill in $is_trial {{{1
eval { # ignore errors
my $version = MM->parse_version($source);
$is_trial = (index($version||'', '_') != -1);
};
print "TRIAL version\n" if $is_trial;
# }}}1

# Main options for EUMM
Expand All @@ -22,31 +31,35 @@ my %opts = (
LICENSE => 'perl_5',
AUTHOR => 'Andrew Sterling Hanenkamp <hanenkamp@cpan.org>',

MIN_PERL_VERSION=> '5.008',
MIN_PERL_VERSION=> '5.006',
PREREQ_PM => {
'Carp' => '0',
'Exporter' => '0',
'strict' => '0',
'warnings' => '0',
'Carp' => '0',
'Exporter' => '0',
'strict' => '0',
'warnings' => '0',
},
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => '0',
'File::Spec' => '3.2701', # for a Win32 bugfix
'ExtUtils::MakeMaker' => '0',
'File::Spec' => '3.2701', # for a Win32 bugfix
},
# Note: for the sake of ExtUtils::MakeMaker < 6.63_03, don't use
# TEST_REQUIRES. Put test requirements in PREREQ_PM instead. See, e.g.,
# https://metacpan.org/source/CXW/List-AutoNumbered-0.000005/Makefile.PL#L202
# for documentation links.

META_MERGE => {
'meta-spec' => { version => 2 },
'meta-spec' => { version => 2 },

resources => {
resources => {
# The code is on GitHub (but we'll take bug reports on RT, too)
bugtracker => {
bugtracker => {
web => 'https://github.com/cxw42/Getargs-Mixed/issues',
},

repository => {
type => 'git',
url => 'https://github.com/cxw42/Getargs-Mixed.git',
web => 'https://github.com/cxw42/Getargs-Mixed',
type => 'git',
url => 'https://github.com/cxw42/Getargs-Mixed.git',
web => 'https://github.com/cxw42/Getargs-Mixed',
},
},

Expand All @@ -66,10 +79,13 @@ my %opts = (
},
},

},
}, # META_MERGE

dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Getargs-Mixed-*' },
); # %opts

dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Getargs-Mixed-*' },
);
$opts{META_MERGE}->{release_status} = 'testing' if $is_trial;

WriteMakefile(%opts);
# vi: set fdm=marker: #
4 changes: 2 additions & 2 deletions lib/Getargs/Mixed.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package Getargs::Mixed;

use 5.008;
use 5.006;
use strict;
use warnings;
use Carp;
Expand All @@ -11,7 +11,7 @@ our @ISA = qw(Exporter);

our @EXPORT = qw( parameters );

our $VERSION = '1.05';
our $VERSION = '1.05_1';

=head1 NAME
Expand Down

0 comments on commit 136754a

Please sign in to comment.