aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2023-09-23 12:07:37 +0100
committerdakkar <dakkar@thenautilus.net>2023-09-23 12:07:37 +0100
commitb0200969e786a17833087ca7446d63d909ff2596 (patch)
treec1d02f1c1df0e2b47a325b9739221e34e348838d
parentadd `video` directive (diff)
downloadWebCoso-master.tar.gz
WebCoso-master.tar.bz2
WebCoso-master.zip
fix for newer YAMLHEADmaster
-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]) });