Skip to content

Commit cfbda2e

Browse files
committedSep 11, 2014
Fixed META.json
1 parent 4af6040 commit cfbda2e

File tree

3 files changed

+24
-29
lines changed

3 files changed

+24
-29
lines changed
 

‎Build.PL

+16-19
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ use utf8;
1212
use Module::Build;
1313
use File::Basename;
1414
use File::Spec;
15-
use CPAN::Meta;
16-
use CPAN::Meta::Prereqs;
1715

1816
my %args = (
1917
license => 'perl',
@@ -28,9 +26,13 @@ my %args = (
2826
allow_pureperl => 0,
2927

3028
script_files => [glob('script/*'), glob('bin/*')],
29+
c_source => [qw()],
30+
PL_files => {},
3131

3232
test_files => ((-d '.git' || $ENV{RELEASE_TESTING}) && -d 'xt') ? 't/ xt/' : 't/',
3333
recursive_test_files => 1,
34+
35+
3436
);
3537
if (-d 'share') {
3638
$args{share_dir} = 'share';
@@ -49,20 +51,15 @@ my $builder = Module::Build->subclass(
4951
)->new(%args);
5052
$builder->create_build_script();
5153

52-
my $mbmeta = CPAN::Meta->load_file('MYMETA.json');
53-
my $meta = CPAN::Meta->load_file('META.json');
54-
my $prereqs_hash = CPAN::Meta::Prereqs->new(
55-
$meta->prereqs
56-
)->with_merged_prereqs(
57-
CPAN::Meta::Prereqs->new($mbmeta->prereqs)
58-
)->as_string_hash;
59-
my $mymeta = CPAN::Meta->new(
60-
{
61-
%{$meta->as_struct},
62-
prereqs => $prereqs_hash
63-
}
64-
);
65-
print "Merging cpanfile prereqs to MYMETA.yml\n";
66-
$mymeta->save('MYMETA.yml', { version => 1.4 });
67-
print "Merging cpanfile prereqs to MYMETA.json\n";
68-
$mymeta->save('MYMETA.json', { version => 2 });
54+
use File::Copy;
55+
56+
print "cp META.json MYMETA.json\n";
57+
copy("META.json","MYMETA.json") or die "Copy failed(META.json): $!";
58+
59+
if (-f 'META.yml') {
60+
print "cp META.yml MYMETA.yml\n";
61+
copy("META.yml","MYMETA.yml") or die "Copy failed(META.yml): $!";
62+
} else {
63+
print "There is no META.yml... You may install this module from the repository...\n";
64+
}
65+

‎META.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Hideaki Ohno <hide.o.j55 {at} gmail.com>"
55
],
66
"dynamic_config" : 0,
7-
"generated_by" : "Minilla/v0.5.3, CPAN::Meta::Converter version 2.130880",
7+
"generated_by" : "Minilla/v2.1.1, CPAN::Meta::Converter version 2.142060",
88
"license" : [
99
"perl_5"
1010
],
@@ -21,7 +21,8 @@
2121
"share",
2222
"eg",
2323
"examples",
24-
"author"
24+
"author",
25+
"builder"
2526
]
2627
},
2728
"prereqs" : {
@@ -33,15 +34,14 @@
3334
},
3435
"configure" : {
3536
"requires" : {
36-
"CPAN::Meta" : "0",
37-
"CPAN::Meta::Prereqs" : "0",
3837
"Module::Build" : "0.38"
3938
}
4039
},
4140
"develop" : {
4241
"requires" : {
4342
"Test::CPAN::Meta" : "0",
44-
"Test::MinimumVersion" : "0.10108",
43+
"Test::MinimumVersion::Fast" : "0.04",
44+
"Test::PAUSE::Permissions" : "0.04",
4545
"Test::Pod" : "1.41",
4646
"Test::Spellunker" : "v0.2.7"
4747
}

‎README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,18 @@ FormValidator::Lite::Constraint::Mouse - Use Mouse's type constraints.
2525
"req_type => ['HttpMethod']
2626
);
2727

28-
29-
3028
# DESCRIPTION
3129

32-
This module provides Mouse's type constraint as constraint rule of [FormValidator::Lite](http://search.cpan.org/perldoc?FormValidator::Lite)
33-
If you want to know the constraint, see [Mouse::Util::TypeConstraints](http://search.cpan.org/perldoc?Mouse::Util::TypeConstraints) for details.
30+
This module provides Mouse's type constraint as constraint rule of [FormValidator::Lite](https://metacpan.org/pod/FormValidator::Lite)
31+
If you want to know the constraint, see [Mouse::Util::TypeConstraints](https://metacpan.org/pod/Mouse::Util::TypeConstraints) for details.
3432

3533
# AUTHOR
3634

3735
Hideaki Ohno <hide.o.j55 {at} gmail.com>
3836

3937
# SEE ALSO
4038

41-
[FormValidator::Lite](http://search.cpan.org/perldoc?FormValidator::Lite),[Mouse::Util::TypeConstraints](http://search.cpan.org/perldoc?Mouse::Util::TypeConstraints)
39+
[FormValidator::Lite](https://metacpan.org/pod/FormValidator::Lite),[Mouse::Util::TypeConstraints](https://metacpan.org/pod/Mouse::Util::TypeConstraints)
4240

4341
# LICENSE
4442

0 commit comments

Comments
 (0)
Please sign in to comment.