Skip to content

Commit d91271f

Browse files
committed
* Regen inc/
1 parent 02f7a91 commit d91271f

File tree

12 files changed

+31
-26
lines changed

12 files changed

+31
-26
lines changed

META.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
abstract: 'Module signature file manipulation'
33
author:
4-
- '唐鳳 <[email protected]>'
4+
- 'Audrey Tang <[email protected]>'
55
build_requires:
66
ExtUtils::MakeMaker: 6.36
77
IPC::Run: 0
@@ -10,7 +10,7 @@ configure_requires:
1010
ExtUtils::MakeMaker: 6.36
1111
distribution_type: module
1212
dynamic_config: 1
13-
generated_by: 'Module::Install version 1.06'
13+
generated_by: 'Module::Install version 1.14'
1414
license: cc0
1515
meta-spec:
1616
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -21,8 +21,9 @@ no_index:
2121
- inc
2222
- t
2323
requires:
24+
File::Temp: 0
2425
IO::Socket::INET: 0
25-
perl: 5.005
26+
perl: '5.005'
2627
resources:
2728
repository: http://github.com/audreyt/module-signature
28-
version: 0.73
29+
version: '0.74'

inc/Module/Install.pm

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package Module::Install;
1717
# 3. The ./inc/ version of Module::Install loads
1818
# }
1919

20-
use 5.005;
20+
use 5.006;
2121
use strict 'vars';
2222
use Cwd ();
2323
use File::Find ();
@@ -31,7 +31,7 @@ BEGIN {
3131
# This is not enforced yet, but will be some time in the next few
3232
# releases once we can make sure it won't clash with custom
3333
# Module::Install extensions.
34-
$VERSION = '1.06';
34+
$VERSION = '1.14';
3535

3636
# Storage for the pseudo-singleton
3737
$MAIN = undef;
@@ -156,10 +156,10 @@ END_DIE
156156
sub autoload {
157157
my $self = shift;
158158
my $who = $self->_caller;
159-
my $cwd = Cwd::cwd();
159+
my $cwd = Cwd::getcwd();
160160
my $sym = "${who}::AUTOLOAD";
161161
$sym->{$cwd} = sub {
162-
my $pwd = Cwd::cwd();
162+
my $pwd = Cwd::getcwd();
163163
if ( my $code = $sym->{$pwd} ) {
164164
# Delegate back to parent dirs
165165
goto &$code unless $cwd eq $pwd;
@@ -239,7 +239,7 @@ sub new {
239239

240240
# ignore the prefix on extension modules built from top level.
241241
my $base_path = Cwd::abs_path($FindBin::Bin);
242-
unless ( Cwd::abs_path(Cwd::cwd()) eq $base_path ) {
242+
unless ( Cwd::abs_path(Cwd::getcwd()) eq $base_path ) {
243243
delete $args{prefix};
244244
}
245245
return $args{_self} if $args{_self};
@@ -338,7 +338,7 @@ sub find_extensions {
338338
if ( $subpath eq lc($subpath) || $subpath eq uc($subpath) ) {
339339
my $content = Module::Install::_read($subpath . '.pm');
340340
my $in_pod = 0;
341-
foreach ( split //, $content ) {
341+
foreach ( split /\n/, $content ) {
342342
$in_pod = 1 if /^=\w/;
343343
$in_pod = 0 if /^=cut/;
344344
next if ($in_pod || /^=cut/); # skip pod text
@@ -378,6 +378,7 @@ eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@;
378378
sub _read {
379379
local *FH;
380380
open( FH, '<', $_[0] ) or die "open($_[0]): $!";
381+
binmode FH;
381382
my $string = do { local $/; <FH> };
382383
close FH or die "close($_[0]): $!";
383384
return $string;
@@ -386,6 +387,7 @@ END_NEW
386387
sub _read {
387388
local *FH;
388389
open( FH, "< $_[0]" ) or die "open($_[0]): $!";
390+
binmode FH;
389391
my $string = do { local $/; <FH> };
390392
close FH or die "close($_[0]): $!";
391393
return $string;
@@ -416,6 +418,7 @@ eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@;
416418
sub _write {
417419
local *FH;
418420
open( FH, '>', $_[0] ) or die "open($_[0]): $!";
421+
binmode FH;
419422
foreach ( 1 .. $#_ ) {
420423
print FH $_[$_] or die "print($_[0]): $!";
421424
}
@@ -425,6 +428,7 @@ END_NEW
425428
sub _write {
426429
local *FH;
427430
open( FH, "> $_[0]" ) or die "open($_[0]): $!";
431+
binmode FH;
428432
foreach ( 1 .. $#_ ) {
429433
print FH $_[$_] or die "print($_[0]): $!";
430434
}
@@ -434,7 +438,7 @@ END_OLD
434438

435439
# _version is for processing module versions (eg, 1.03_05) not
436440
# Perl versions (eg, 5.8.1).
437-
sub _version ($) {
441+
sub _version {
438442
my $s = shift || 0;
439443
my $d =()= $s =~ /(\.)/g;
440444
if ( $d >= 2 ) {
@@ -450,12 +454,12 @@ sub _version ($) {
450454
return $l + 0;
451455
}
452456

453-
sub _cmp ($$) {
457+
sub _cmp {
454458
_version($_[1]) <=> _version($_[2]);
455459
}
456460

457461
# Cloned from Params::Util::_CLASS
458-
sub _CLASS ($) {
462+
sub _CLASS {
459463
(
460464
defined $_[0]
461465
and

inc/Module/Install/Base.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package Module::Install::Base;
44
use strict 'vars';
55
use vars qw{$VERSION};
66
BEGIN {
7-
$VERSION = '1.06';
7+
$VERSION = '1.14';
88
}
99

1010
# Suspend handler for "redefined" warnings

inc/Module/Install/Can.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use Module::Install::Base ();
88

99
use vars qw{$VERSION @ISA $ISCORE};
1010
BEGIN {
11-
$VERSION = '1.06';
11+
$VERSION = '1.14';
1212
@ISA = 'Module::Install::Base';
1313
$ISCORE = 1;
1414
}

inc/Module/Install/External.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use Module::Install::Base ();
88

99
use vars qw{$VERSION $ISCORE @ISA};
1010
BEGIN {
11-
$VERSION = '1.06';
11+
$VERSION = '1.14';
1212
$ISCORE = 1;
1313
@ISA = qw{Module::Install::Base};
1414
}

inc/Module/Install/Fetch.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Module::Install::Base ();
66

77
use vars qw{$VERSION @ISA $ISCORE};
88
BEGIN {
9-
$VERSION = '1.06';
9+
$VERSION = '1.14';
1010
@ISA = 'Module::Install::Base';
1111
$ISCORE = 1;
1212
}

inc/Module/Install/Makefile.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use Fcntl qw/:flock :seek/;
88

99
use vars qw{$VERSION @ISA $ISCORE};
1010
BEGIN {
11-
$VERSION = '1.06';
11+
$VERSION = '1.14';
1212
@ISA = 'Module::Install::Base';
1313
$ISCORE = 1;
1414
}
@@ -133,7 +133,7 @@ sub makemaker_args {
133133
return $args;
134134
}
135135

136-
# For mm args that take multiple space-seperated args,
136+
# For mm args that take multiple space-separated args,
137137
# append an argument to the current list.
138138
sub makemaker_append {
139139
my $self = shift;

inc/Module/Install/Metadata.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Module::Install::Base ();
66

77
use vars qw{$VERSION @ISA $ISCORE};
88
BEGIN {
9-
$VERSION = '1.06';
9+
$VERSION = '1.14';
1010
@ISA = 'Module::Install::Base';
1111
$ISCORE = 1;
1212
}
@@ -347,7 +347,7 @@ sub name_from {
347347
^ \s*
348348
package \s*
349349
([\w:]+)
350-
\s* ;
350+
[\s|;]*
351351
/ixms
352352
) {
353353
my ($name, $module_name) = ($1, $1);
@@ -705,7 +705,7 @@ sub _write_mymeta_data {
705705
my @yaml = Parse::CPAN::Meta::LoadFile('META.yml');
706706
my $meta = $yaml[0];
707707

708-
# Overwrite the non-configure dependency hashs
708+
# Overwrite the non-configure dependency hashes
709709
delete $meta->{requires};
710710
delete $meta->{build_requires};
711711
delete $meta->{recommends};

inc/Module/Install/ReadmeFromPod.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use warnings;
77
use base qw(Module::Install::Base);
88
use vars qw($VERSION);
99

10-
$VERSION = '0.20';
10+
$VERSION = '0.22';
1111

1212
sub readme_from {
1313
my $self = shift;

inc/Module/Install/Scripts.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Module::Install::Base ();
66

77
use vars qw{$VERSION @ISA $ISCORE};
88
BEGIN {
9-
$VERSION = '1.06';
9+
$VERSION = '1.14';
1010
@ISA = 'Module::Install::Base';
1111
$ISCORE = 1;
1212
}

inc/Module/Install/Win32.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Module::Install::Base ();
66

77
use vars qw{$VERSION @ISA $ISCORE};
88
BEGIN {
9-
$VERSION = '1.06';
9+
$VERSION = '1.14';
1010
@ISA = 'Module::Install::Base';
1111
$ISCORE = 1;
1212
}

inc/Module/Install/WriteAll.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Module::Install::Base ();
66

77
use vars qw{$VERSION @ISA $ISCORE};
88
BEGIN {
9-
$VERSION = '1.06';
9+
$VERSION = '1.14';
1010
@ISA = qw{Module::Install::Base};
1111
$ISCORE = 1;
1212
}

0 commit comments

Comments
 (0)