From 55aead887bd1b937169e09cef7710351634a103e Mon Sep 17 00:00:00 2001 From: Scott Walters Date: Tue, 10 Jul 2012 03:47:02 -0400 Subject: [PATCH] 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. --- lib/WebGUI/Config.pm | 9 ++++----- sbin/testEnvironment.pl | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/WebGUI/Config.pm b/lib/WebGUI/Config.pm index 347931abf..5453d6de1 100644 --- a/lib/WebGUI/Config.pm +++ b/lib/WebGUI/Config.pm @@ -100,13 +100,12 @@ The filename of the config file to read. =cut -around BUILDARGS => sub { - my $orig = shift; - my $class = shift; +sub new { + my $package = shift; my $filename = shift; $filename = Cwd::realpath(File::Spec->rel2abs($filename, WebGUI::Paths->configBase)); - return $class->$orig($filename); -}; + return $package->SUPER::new($filename); +} 1; diff --git a/sbin/testEnvironment.pl b/sbin/testEnvironment.pl index ed1d23e8b..2e906c1f9 100755 --- a/sbin/testEnvironment.pl +++ b/sbin/testEnvironment.pl @@ -111,7 +111,7 @@ checkModule("XML::FeedPP::MediaRSS", 0.02 ); checkModule("JSON", 2.12 ); checkModule("JSON::Any", 1.22 ); checkModule("JSON::PP", 0.00 ); -checkModule("Config::JSON", "1.3.1" ); +checkModule("Config::JSON", 1.5100 ); checkModule("Text::CSV_XS", "0.64" ); checkModule("Net::CIDR::Lite", 0.20 ); checkModule("Finance::Quote", 1.15 );