File tree Expand file tree Collapse file tree 4 files changed +25
-13
lines changed Expand file tree Collapse file tree 4 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ requires 'CatalystX::InjectComponent';
2929requires ' CatalystX::RoleApplicator' ;
3030requires ' CatalystX::Fastly::Role::Response' , ' 0.06' ;
3131requires ' CPAN::Repository::Perms' ;
32- requires ' Config::JFDI ' ;
32+ requires ' Config::ZOMG ' , ' >= ' , ' 1.000000 ' ;
3333requires ' Cpanel::JSON::XS' , ' 3.0115' ;
3434requires ' Cwd' ;
3535requires ' Data::Printer' , ' 0.38' ;
Original file line number Diff line number Diff line change @@ -1267,6 +1267,18 @@ DISTRIBUTIONS
12671267 perl v5.8.1
12681268 strict 0
12691269 utf8 0
1270+ Config-ZOMG-1.000000
1271+ pathname: F/FR/FREW/Config-ZOMG-1.000000.tar.gz
1272+ provides:
1273+ Config::ZOMG 1.000000
1274+ Config::ZOMG::Source::Loader 1.000000
1275+ requirements:
1276+ Clone 0
1277+ Config::Any 0
1278+ ExtUtils::MakeMaker 6.30
1279+ Hash::Merge::Simple 0
1280+ List::Util 0
1281+ Moo 0
12701282 Context-Preserve-0.01
12711283 pathname: J/JR/JROCKWAY/Context-Preserve-0.01.tar.gz
12721284 provides:
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ package MetaCPAN::Role::HasConfig;
22
33use Moose::Role;
44
5- use MetaCPAN::Types qw( HashRef) ;
6-
75use FindBin;
6+ use Config::ZOMG ();
7+ use MetaCPAN::Types qw( HashRef) ;
88
99# Done like this so can be required by a roles
1010sub config {
@@ -20,10 +20,10 @@ has _config => (
2020
2121sub _build_config {
2222 my $self = shift ;
23- return Config::JFDI -> new(
23+ return Config::ZOMG -> new(
2424 name => ' metacpan_server' ,
2525 path => " $FindBin::RealBin /.." ,
26- )-> get ;
26+ )-> load ;
2727}
2828
29291;
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ package MetaCPAN::Script::Runner;
33use strict;
44use warnings;
55
6- use Config::JFDI ;
7- use File::Path ();
6+ use Config::ZOMG () ;
7+ use File::Path ();
88use Hash::Merge::Simple qw( merge) ;
99use IO::Interactive qw( is_interactive) ;
1010use Module::Pluggable search_path => [' MetaCPAN::Script' ];
@@ -32,22 +32,22 @@ sub run {
3232}
3333
3434sub build_config {
35- my $config = Config::JFDI -> new(
35+ my $config = Config::ZOMG -> new(
3636 name => ' metacpan' ,
3737 path => ' etc'
38- )-> get ;
38+ )-> load ;
3939 if ( $ENV {HARNESS_ACTIVE } ) {
40- my $tconf = Config::JFDI -> new(
40+ my $tconf = Config::ZOMG -> new(
4141 name => ' metacpan' ,
4242 file => ' etc/metacpan_testing.pl'
43- )-> get ;
43+ )-> load ;
4444 $config = merge $config , $tconf ;
4545 }
4646 elsif ( is_interactive() ) {
47- my $iconf = Config::JFDI -> new(
47+ my $iconf = Config::ZOMG -> new(
4848 name => ' metacpan' ,
4949 file => ' etc/metacpan_interactive.pl'
50- )-> get ;
50+ )-> load ;
5151 $config = merge $config , $iconf ;
5252 }
5353 return $config ;
You can’t perform that action at this time.
0 commit comments