summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter van de Bruggen <pvande@gmail.com>2010-10-10 00:16:20 -0700
committerPieter van de Bruggen <pvande@gmail.com>2010-10-10 00:16:20 -0700
commit92e8f2f844205e27bf23314318d30135294e41a4 (patch)
tree46e627f30495fd50e6e3e67e9b37c577cd365b7a
parentada717c58cc9109031d0eb19066ea0c59ee0c0a0 (diff)
downloadmustache-spec-92e8f2f844205e27bf23314318d30135294e41a4.tar.gz
Switching to using YAML::XS.
scripts/template-mustache.pl was relying on the YAML module previously, which has the unfortunate behavior of treating the bareword 'false' as a string and not a boolean. YAML::XS has no such bug.
-rwxr-xr-xscripts/template-mustache.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/template-mustache.pl b/scripts/template-mustache.pl
index 4eb29f4..ccc1996 100755
--- a/scripts/template-mustache.pl
+++ b/scripts/template-mustache.pl
@@ -17,7 +17,7 @@ $Data::Dumper::Deparse = 1;
use File::Basename qw/ basename dirname /;
use File::Spec::Functions qw/ catdir catfile /;
use Template::Mustache;
-use YAML ();
+use YAML::XS ();
{
package MustacheSpec;
@@ -67,7 +67,7 @@ sub assert_mustache_spec {
}
for my $file (glob catfile(dirname(__FILE__), '..', 'specs', '*.yml')) {
- my $spec = YAML::LoadFile($file);
+ my $spec = YAML::XS::LoadFile($file);
my $pkg = ucfirst(basename($file));
no strict 'refs';