diff options
author | dakkar <dakkar@thenautilus.net> | 2023-09-23 12:07:37 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2023-09-23 12:07:37 +0100 |
commit | b0200969e786a17833087ca7446d63d909ff2596 (patch) | |
tree | c1d02f1c1df0e2b47a325b9739221e34e348838d | |
parent | add `video` directive (diff) | |
download | WebCoso-b0200969e786a17833087ca7446d63d909ff2596.tar.gz WebCoso-b0200969e786a17833087ca7446d63d909ff2596.tar.bz2 WebCoso-b0200969e786a17833087ca7446d63d909ff2596.zip |
fix for newer YAML
-rw-r--r-- | Makefile.PL | 2 | ||||
-rw-r--r-- | 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]) }); |