aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.PL2
-rw-r--r--lib/WebCoso/Maker.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.PL b/Makefile.PL
index 8ca8458..67b5610 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -28,7 +28,7 @@ WriteMakefile(
'XML::LibXML' => '0',
'XML::LibXML::XPathContext' => '0',
'XML::LibXSLT' => '0',
- 'YAML::Syck' => '0',
+ 'YAML' => '1.30',
'Try::Tiny' => '0',
},
);
diff --git a/lib/WebCoso/Maker.pm b/lib/WebCoso/Maker.pm
index 35dc41f..5a6f20d 100644
--- a/lib/WebCoso/Maker.pm
+++ b/lib/WebCoso/Maker.pm
@@ -6,7 +6,7 @@ use File::Next;
use Path::Class;
use File::Cache::Parsed;
use Cwd 'abs_path';
-use YAML::Syck;
+use YAML;
use WebCoso::Common;
use WebCoso::TT;
use WebCoso::XSLT;
@@ -15,7 +15,7 @@ use Log::Log4perl ':easy';
my $fc=File::Cache::Parsed->new(follow=>1);
$fc->add_parser(qr{\.ya?ml$} =>
- sub { Load($_[1]) });
+ sub { local $YAML::LoadBlessed=1; Load($_[1]) });
$fc->add_writer(qr{\.ya?ml$} =>
sub { DumpFile($_[0],$_[1]) });