X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FStorage%2FUtil.pm;h=01d72e0938f5aaa517a863081815c0ca1f3ce9a8;hb=160645455e5d1f9a19170bf4b7fce94ff839f42d;hp=91ad692bc38ca61b1bda4b45c61b34c8da2c08ab;hpb=d92b2381821e049808c6b9ddc9c09553e2a78290;p=gitmo%2FMooseX-Storage.git diff --git a/lib/MooseX/Storage/Util.pm b/lib/MooseX/Storage/Util.pm index 91ad692..01d72e0 100644 --- a/lib/MooseX/Storage/Util.pm +++ b/lib/MooseX/Storage/Util.pm @@ -44,16 +44,10 @@ sub _inflate_json { sub _inflate_yaml { my ($self, $yaml) = @_; - require Best; - eval { Best->import([[ qw[YAML::Syck YAML] ]]) }; + eval { require YAML::Any; YAML::Any->import }; confess "Could not load YAML module because : $@" if $@; - my $inflater = Best->which('YAML::Syck')->can('Load'); - - (defined $inflater) - || confess "Could not load the YAML inflator"; - - my $data = eval { $inflater->($yaml) }; + my $data = eval { Load($yaml) }; if ($@) { confess "There was an error when attempting to peek at YAML : $@"; }