Toby Inkster avatar Toby Inkster committed b773cca

Perl 5.8 bugfixes

Comments (0)

Files changed (5)

 use inc::Module::Package 'RDF 0.009';
 
+requires('UNIVERSAL::DOES',0) if $] < 5.010;
+dynamic_config;

lib/Scalar/Does.pm

 use 5.008;
 use strict;
 use utf8;
+use if $] < 5.010, 'UNIVERSAL::DOES';
 
 our %_CONSTANTS;
 BEGIN {
 	$Scalar::Does::AUTHORITY = 'cpan:TOBYINK';
-	$Scalar::Does::VERSION   = '0.008';
+	$Scalar::Does::VERSION   = '0.009';
 	
 	%_CONSTANTS = (
 		BOOLEAN    => q[bool],
 BEGIN {
 	package Scalar::Does::RoleChecker;
 	$Scalar::Does::RoleChecker::AUTHORITY = 'cpan:TOBYINK';
-	$Scalar::Does::RoleChecker::VERSION   = '0.008';
+	$Scalar::Does::RoleChecker::VERSION   = '0.009';
 	use overload
 		q[""]    => 'name',
 		q[&{}]   => 'code',
 typically blessed hashes, so C<< does($obj, 'HASH') >> is true.
 However, it is impossible to tell that from the class name.
 
-Note that the C<DOES> method is only defined in L<UNIVERSAL> in
-Perl 5.10+. You may wish to load L<UNIVERSAL::DOES> on earlier versions
-of Perl.
-
 =item C<< does($role) >>
 
 Called with a single argument, tests C<< $_ >>. Yes, this works with lexical

lib/Scalar/Does/MooseTypes.pm

 package Scalar::Does::MooseTypes;
 
 our $AUTHORITY = 'cpan:TOBYINK';
-our $VERSION   = '0.008';
+our $VERSION   = '0.009';
 
 use Scalar::Does qw( blessed does looks_like_number -make );
 

meta/changes.pret

 			label "Revise documentation about Role::Tiny/Moo::Role's lack of DOES; it is now implemented.";
 		];
 	].
+
+`Scalar-Does 0.009 cpan:TOBYINK`
+	issued  2012-11-05;
+	label   "Gunpowder, treason and plot";
+	changeset [
+		item "Skip test '10underscore.t' on Perl 5.008 as it doesn't support lexical $_."^^Bugfix;
+		item "Requires UNIVERSAL::DOES in Perl < 5.010."^^Packaging;
+		item "use if $] < 5.010, 'UNIVERSAL::DOES'."^^Bugfix;
+	].
 use Test::More;
+
+BEGIN {
+	plan skip_all => "no support for lexical \$_" unless eval q{ my $_ = 1 };
+};
+
 use Scalar::Does -constants;
 
 $_ = [];
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.