Skip to content

Commit

Permalink
Version 0.38: Minimum requirement for Test.pm to circumvent a broken …
Browse files Browse the repository at this point in the history
…Test distribution on CPAN.
  • Loading branch information
daoswald committed Mar 7, 2012
1 parent 327356f commit b0929ce
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CPP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use base 'Inline::C';
# Development releases will have a _0xx version suffix.
# We eval the version number to accommodate dev. version numbering, as
# described in perldoc perlmodstyle.
our $VERSION = '0.37';
our $VERSION = '0.38';
$VERSION = eval $VERSION; ## no critic (eval)


Expand Down
7 changes: 7 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
Revision history for Perl extension Inline::CPP.

0.38 Tue Mar 06 17:09:00 PST 2012
- Added a minimum version of Test.pm under BUILD_REQUIRES in
Makefile.PL to get a good version of Test.pm for the test suite.
This fixes an issue where someone uploaded an empty distribution
to CPAN named Test as version 0.001. The minimum version set for
Test.pm was core for Perl 5.6.0.

0.37 Mon Mar 05 15:45:00 PST 2012
- Backed 'strict' out of test suite; tests began failing randomly on
*some* minority of platforms (inexplicably). May be a Test.pm fault.
Expand Down
5 changes: 3 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"David Oswald <davido@cpan.org>"
],
"dynamic_config" : 1,
"generated_by" : "ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.113640",
"generated_by" : "ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.112621",
"license" : [
"unknown"
],
Expand All @@ -22,6 +22,7 @@
"prereqs" : {
"build" : {
"requires" : {
"Test" : "1.13",
"Test::More" : 0
}
},
Expand All @@ -39,5 +40,5 @@
}
},
"release_status" : "stable",
"version" : "0.37"
"version" : "0.38"
}
5 changes: 3 additions & 2 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ abstract: Write Perl subroutines and classes in C++.
author:
- 'David Oswald <davido@cpan.org>'
build_requires:
Test: 1.13
Test::More: 0
configure_requires:
ExtUtils::MakeMaker: 0
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.113640'
generated_by: 'ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.112621'
license: unknown
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
Expand All @@ -21,4 +22,4 @@ requires:
Inline: 0.50
Inline::C: 0.50
Parse::RecDescent: 0
version: 0.37
version: 0.38
15 changes: 10 additions & 5 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,14 @@ for (@lines) {

}

open CPP, '>CPP.pm' or die "Can't write to CPP.pm for configuration!\n$!";
print CPP @lines;
close CPP or die "Can't close CPP.pm after config output!\n$!";
open CPP, '>CPP.pm'
or die "Can't write to CPP.pm for configuration!\n$!";

print CPP @lines
or die "Can't write to CPP.pm for configuration!\n$!"; # Unlikely.

close CPP
or die "Can't close CPP.pm after config output!\n$!";


WriteMakefile(
Expand All @@ -206,8 +211,8 @@ WriteMakefile(
ABSTRACT_FROM => 'lib/Inline/CPP.pod',
PREREQ_PM => \%PREREQ_PM,
BUILD_REQUIRES => {
'Test::More' => '0',
'Test' => '0',
'Test::More' => '0', # This is core. Just being explicit.
'Test' => '1.13', # This is core from Perl 5.6.0.
},
clean => {
FILES => '_Inline/ grammar/_Inline'
Expand Down
5 changes: 2 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ When run, this complete program prints:
-----------------------------------------------------------------------------
FEATURES:

Inline::CPP version 0.37 backs 'strict' out of the test suite as some
platforms began inexplicably failing under strictures. This version is
functionally equal to 0.35.
Inline::CPP version 0.38 tweaks Makefile.PL to ensure that we get a
good version of Test.pm for the test suite to use.

Perl version 5.6.0 is now explicitly set as the minimum version under which
Inline::CPP will build and work.
Expand Down
2 changes: 1 addition & 1 deletion grammar/grammar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use vars qw($TYPEMAP_KIND $class_part $class_decl $star);
# Dev versions will have a _0xx suffix.
# We eval the $VERSION to accommodate dev version numbering as described in
# perldoc perlmodstyle
our $VERSION = '0.37';
our $VERSION = '0.38';
$VERSION = eval $VERSION; ## no critic (eval)

# Parse::RecDescent 1.90 and later have an incompatible change
Expand Down

0 comments on commit b0929ce

Please sign in to comment.