From: Dagfinn Ilmari Mannsåker Date: Thu, 26 Jul 2018 13:05:55 +0000 (+0100) Subject: Revert inlining of String::CamelCase::wordsplit() (RT#125929) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6e880a070b97b7770354c04cbeb79b61083e1ef9;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Revert inlining of String::CamelCase::wordsplit() (RT#125929) RT#123030 has been fixed in String::CamelCase 0.04 --- diff --git a/Changes b/Changes index 48af457..6d9b5b5 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for Perl extension DBIx::Class::Schema::Loader + - Revert inlining of String::CamelCase::wordsplit() (RT#125929) + 0.07049 - 2018-03-21 - Fix tests when the path to perl has spaces in it (GH#19) - Inline String::CamelCase::wordsplit() due to RT#123030 diff --git a/Makefile.PL b/Makefile.PL index ed58c3d..c906839 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -45,6 +45,7 @@ my %eumm_args = ( 'namespace::clean' => '0.23', 'Scope::Guard' => '0.20', 'String::ToIdentifier::EN' => '0.05', + 'String::CamelCase' => '0.04', 'Sub::Util' => '1.40', 'Try::Tiny' => 0, # core, but specific versions not available on older perls diff --git a/lib/DBIx/Class/Schema/Loader/Utils.pm b/lib/DBIx/Class/Schema/Loader/Utils.pm index 66a92c7..4fc5fb6 100644 --- a/lib/DBIx/Class/Schema/Loader/Utils.pm +++ b/lib/DBIx/Class/Schema/Loader/Utils.pm @@ -4,6 +4,7 @@ package # hide from PAUSE use strict; use warnings; use Test::More; +use String::CamelCase 'wordsplit'; use Carp::Clan qw/^DBIx::Class/; use List::Util 'all'; use namespace::clean; @@ -21,12 +22,6 @@ use constant BY_NON_ALPHANUM => my $LF = "\x0a"; my $CRLF = "\x0d\x0a"; -# Copied from String::CamelCase because of RT#123030 -sub wordsplit { - my $s = shift; - split /[_\s]+|\b|(?