From b0200969e786a17833087ca7446d63d909ff2596 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 23 Sep 2023 12:07:37 +0100 Subject: fix for newer YAML --- Makefile.PL | 2 +- lib/WebCoso/Maker.pm | 4 ++-- 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]) }); -- cgit v1.2.3