[libmousex-foreign-perl] 01/04: Imported Upstream version 0.008

Marius Gavrilescu marius-guest at moszumanska.debian.org
Sat Mar 8 13:48:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

marius-guest pushed a commit to branch master
in repository libmousex-foreign-perl.

commit 90adb82c75ab82bfebebc820fbdd0108d568843f
Author: Marius Gavrilescu <marius at ieval.ro>
Date:   Sat Mar 8 15:34:40 2014 +0200

    Imported Upstream version 0.008
---
 Changes                                           |  3 +++
 META.yml                                          | 11 ++++-----
 Makefile.PL                                       |  2 +-
 inc/Module/Install.pm                             |  6 ++---
 inc/Module/Install/Base.pm                        |  2 +-
 inc/Module/Install/Makefile.pm                    | 27 +++++++++++++----------
 inc/Module/Install/Metadata.pm                    | 18 ++++++++++-----
 inc/Module/Install/WriteAll.pm                    |  2 +-
 lib/MouseX/Foreign.pm                             |  4 ++--
 lib/MouseX/Foreign/Meta/Role/Method/Destructor.pm |  2 +-
 lib/MouseX/NonMoose.pm                            |  1 +
 xt/podspell.t                                     |  5 ++---
 12 files changed, 48 insertions(+), 35 deletions(-)

diff --git a/Changes b/Changes
index 520888e..78b7bcb 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 Revision history for Perl extension MouseX::Foreign
 
+0.008 2014-02-11 23:08:12+0900
+    - Make Any::Moose test_requires; thanks to @acidlemon
+
 0.007 2011-10-17 18:57:02
     - Declare Any::Moose version (rsimoes)
     - Fix duplicated code in meta methods (rsimoes)
diff --git a/META.yml b/META.yml
index 86fec57..f97879c 100644
--- a/META.yml
+++ b/META.yml
@@ -3,14 +3,16 @@ abstract: 'Extends non-Mouse classes as well as Mouse classes'
 author:
   - 'Fuji, Goro (gfx) <gfuji(at)cpan.org>'
 build_requires:
-  ExtUtils::MakeMaker: 6.42
+  Any::Moose: 0.15
+  ExtUtils::MakeMaker: 6.59
   Test::Exception: 0
   Test::More: 0.88
   Test::Requires: 0
 configure_requires:
-  ExtUtils::MakeMaker: 6.42
+  ExtUtils::MakeMaker: 6.59
 distribution_type: module
-generated_by: 'Module::Install version 1.02'
+dynamic_config: 1
+generated_by: 'Module::Install version 1.06'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -23,10 +25,9 @@ no_index:
     - t
     - xt
 requires:
-  Any::Moose: 0.15
   Mouse: 0.77
   perl: 5.8.1
 resources:
   license: http://dev.perl.org/licenses/
   repository: git://github.com/gfx/p5-MouseX-Foreign.git
-version: 0.007
+version: 0.008
diff --git a/Makefile.PL b/Makefile.PL
index 11af24c..e1a70db 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -5,7 +5,7 @@ use inc::Module::Install;
 all_from 'lib/MouseX/Foreign.pm';
 
 requires 'Mouse' => 0.77;
-requires 'Any::Moose' => 0.15;
+test_requires 'Any::Moose' => 0.15;
 
 test_requires 'Test::More' => 0.88; # done_testing()
 test_requires 'Test::Requires';
diff --git a/inc/Module/Install.pm b/inc/Module/Install.pm
index c6af74c..4ecf46b 100644
--- a/inc/Module/Install.pm
+++ b/inc/Module/Install.pm
@@ -31,7 +31,7 @@ BEGIN {
 	# This is not enforced yet, but will be some time in the next few
 	# releases once we can make sure it won't clash with custom
 	# Module::Install extensions.
-	$VERSION = '1.02';
+	$VERSION = '1.06';
 
 	# Storage for the pseudo-singleton
 	$MAIN    = undef;
@@ -451,7 +451,7 @@ sub _version ($) {
 }
 
 sub _cmp ($$) {
-	_version($_[0]) <=> _version($_[1]);
+	_version($_[1]) <=> _version($_[2]);
 }
 
 # Cloned from Params::Util::_CLASS
@@ -467,4 +467,4 @@ sub _CLASS ($) {
 
 1;
 
-# Copyright 2008 - 2011 Adam Kennedy.
+# Copyright 2008 - 2012 Adam Kennedy.
diff --git a/inc/Module/Install/Base.pm b/inc/Module/Install/Base.pm
index b401932..802844a 100644
--- a/inc/Module/Install/Base.pm
+++ b/inc/Module/Install/Base.pm
@@ -4,7 +4,7 @@ package Module::Install::Base;
 use strict 'vars';
 use vars qw{$VERSION};
 BEGIN {
-	$VERSION = '1.02';
+	$VERSION = '1.06';
 }
 
 # Suspend handler for "redefined" warnings
diff --git a/inc/Module/Install/Makefile.pm b/inc/Module/Install/Makefile.pm
index 24d941e..7052f36 100644
--- a/inc/Module/Install/Makefile.pm
+++ b/inc/Module/Install/Makefile.pm
@@ -8,7 +8,7 @@ use Fcntl qw/:flock :seek/;
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.02';
+	$VERSION = '1.06';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
@@ -215,18 +215,22 @@ sub write {
 	require ExtUtils::MakeMaker;
 
 	if ( $perl_version and $self->_cmp($perl_version, '5.006') >= 0 ) {
-		# MakeMaker can complain about module versions that include
-		# an underscore, even though its own version may contain one!
-		# Hence the funny regexp to get rid of it.  See RT #35800
-		# for details.
-		my $v = $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/;
-		$self->build_requires(     'ExtUtils::MakeMaker' => $v );
-		$self->configure_requires( 'ExtUtils::MakeMaker' => $v );
+		# This previous attempted to inherit the version of
+		# ExtUtils::MakeMaker in use by the module author, but this
+		# was found to be untenable as some authors build releases
+		# using future dev versions of EU:MM that nobody else has.
+		# Instead, #toolchain suggests we use 6.59 which is the most
+		# stable version on CPAN at time of writing and is, to quote
+		# ribasushi, "not terminally fucked, > and tested enough".
+		# TODO: We will now need to maintain this over time to push
+		# the version up as new versions are released.
+		$self->build_requires(     'ExtUtils::MakeMaker' => 6.59 );
+		$self->configure_requires( 'ExtUtils::MakeMaker' => 6.59 );
 	} else {
 		# Allow legacy-compatibility with 5.005 by depending on the
 		# most recent EU:MM that supported 5.005.
-		$self->build_requires(     'ExtUtils::MakeMaker' => 6.42 );
-		$self->configure_requires( 'ExtUtils::MakeMaker' => 6.42 );
+		$self->build_requires(     'ExtUtils::MakeMaker' => 6.36 );
+		$self->configure_requires( 'ExtUtils::MakeMaker' => 6.36 );
 	}
 
 	# Generate the MakeMaker params
@@ -241,7 +245,6 @@ in a module, and provide its file path via 'version_from' (or
 'all_from' if you prefer) in Makefile.PL.
 EOT
 
-	$DB::single = 1;
 	if ( $self->tests ) {
 		my @tests = split ' ', $self->tests;
 		my %seen;
@@ -412,4 +415,4 @@ sub postamble {
 
 __END__
 
-#line 541
+#line 544
diff --git a/inc/Module/Install/Metadata.pm b/inc/Module/Install/Metadata.pm
index 5fc5b35..58430f3 100644
--- a/inc/Module/Install/Metadata.pm
+++ b/inc/Module/Install/Metadata.pm
@@ -6,7 +6,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.02';
+	$VERSION = '1.06';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
@@ -151,15 +151,21 @@ sub install_as_site   { $_[0]->installdirs('site')   }
 sub install_as_vendor { $_[0]->installdirs('vendor') }
 
 sub dynamic_config {
-	my $self = shift;
-	unless ( @_ ) {
-		warn "You MUST provide an explicit true/false value to dynamic_config\n";
-		return $self;
+	my $self  = shift;
+	my $value = @_ ? shift : 1;
+	if ( $self->{values}->{dynamic_config} ) {
+		# Once dynamic we never change to static, for safety
+		return 0;
 	}
-	$self->{values}->{dynamic_config} = $_[0] ? 1 : 0;
+	$self->{values}->{dynamic_config} = $value ? 1 : 0;
 	return 1;
 }
 
+# Convenience command
+sub static_config {
+	shift->dynamic_config(0);
+}
+
 sub perl_version {
 	my $self = shift;
 	return $self->{values}->{perl_version} unless @_;
diff --git a/inc/Module/Install/WriteAll.pm b/inc/Module/Install/WriteAll.pm
index 4aec16c..85d8018 100644
--- a/inc/Module/Install/WriteAll.pm
+++ b/inc/Module/Install/WriteAll.pm
@@ -6,7 +6,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '1.02';
+	$VERSION = '1.06';
 	@ISA     = qw{Module::Install::Base};
 	$ISCORE  = 1;
 }
diff --git a/lib/MouseX/Foreign.pm b/lib/MouseX/Foreign.pm
index 6af0d18..ae5ffdd 100644
--- a/lib/MouseX/Foreign.pm
+++ b/lib/MouseX/Foreign.pm
@@ -2,7 +2,7 @@ package MouseX::Foreign;
 use 5.008_001;
 use Mouse::Util; # turns on strict and warnings
 
-our $VERSION = '0.007';
+our $VERSION = '0.008';
 
 use Mouse::Util::MetaRole;
 use Carp ();
@@ -37,7 +37,7 @@ MouseX::Foreign - Extends non-Mouse classes as well as Mouse classes
 
 =head1 VERSION
 
-This document describes MouseX::Foreign version 0.007.
+This document describes MouseX::Foreign version 0.008.
 
 =head1 SYNOPSIS
 
diff --git a/lib/MouseX/Foreign/Meta/Role/Method/Destructor.pm b/lib/MouseX/Foreign/Meta/Role/Method/Destructor.pm
index aea33d5..8dbf07f 100644
--- a/lib/MouseX/Foreign/Meta/Role/Method/Destructor.pm
+++ b/lib/MouseX/Foreign/Meta/Role/Method/Destructor.pm
@@ -32,7 +32,7 @@ MouseX::Foreign::Meta::Role::Method::Destructor - The MouseX::Foreign meta metho
 
 =head1 VERSION
 
-This document describes MouseX::Foreign version 0.007.
+This document describes MouseX::Foreign version 0.008.
 
 =head1 DESCRIPTION
 
diff --git a/lib/MouseX/NonMoose.pm b/lib/MouseX/NonMoose.pm
index 12b6e42..5206b9c 100644
--- a/lib/MouseX/NonMoose.pm
+++ b/lib/MouseX/NonMoose.pm
@@ -20,6 +20,7 @@ This document describes MouseX::Foreign version 0.005.
 =head1 SYNOPSIS
 
     package MyInt;
+    use Any::Moose;
     use Any::Moose 'X::NonMoose';
     extends 'Math::BigInt';
 
diff --git a/xt/podspell.t b/xt/podspell.t
index d08c8d2..10c3bd6 100644
--- a/xt/podspell.t
+++ b/xt/podspell.t
@@ -3,13 +3,12 @@
 use strict;
 use Test::More;
 
-eval q{ use Test::Spelling };
+eval q{ use Test::Spellunker};
 
-plan skip_all => q{Test::Spelling is not installed.}
+plan skip_all => q{Test::Spellunker is not installed.}
 	if $@;
 
 add_stopwords(map { /(\w+)/g } <DATA>);
-$ENV{LANG} = 'C';
 all_pod_files_spelling_ok('lib');
 
 __DATA__

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmousex-foreign-perl.git



More information about the Pkg-perl-cvs-commits mailing list