Skip to content

Commit 55aead8

Browse files
committedJul 10, 2012
Config::JSON stopped providing a BUILDARGS method, so we can't "around" it. subclass new() the old fashioned way and bump the Config::JSON version dep so we know we're getting the non-Moose one.
1 parent f4aacb9 commit 55aead8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
 

‎lib/WebGUI/Config.pm

+4-5
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,12 @@ The filename of the config file to read.
100100
101101
=cut
102102

103-
around BUILDARGS => sub {
104-
my $orig = shift;
105-
my $class = shift;
103+
sub new {
104+
my $package = shift;
106105
my $filename = shift;
107106
$filename = Cwd::realpath(File::Spec->rel2abs($filename, WebGUI::Paths->configBase));
108-
return $class->$orig($filename);
109-
};
107+
return $package->SUPER::new($filename);
108+
}
110109

111110
1;
112111

‎sbin/testEnvironment.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ BEGIN
111111
checkModule("JSON", 2.12 );
112112
checkModule("JSON::Any", 1.22 );
113113
checkModule("JSON::PP", 0.00 );
114-
checkModule("Config::JSON", "1.3.1" );
114+
checkModule("Config::JSON", 1.5100 );
115115
checkModule("Text::CSV_XS", "0.64" );
116116
checkModule("Net::CIDR::Lite", 0.20 );
117117
checkModule("Finance::Quote", 1.15 );

0 commit comments

Comments
 (0)
Please sign in to comment.