diff options
author | mrb <michaelrbernstein@gmail.com> | 2011-02-03 08:46:17 -0500 |
---|---|---|
committer | mrb <michaelrbernstein@gmail.com> | 2011-02-03 08:46:17 -0500 |
commit | 20ce9011c805023f5847a6b601c22e9553bc5308 (patch) | |
tree | e47c4b94854005b4d3a99a4a28f77377ec204c58 /README.md | |
parent | 54e8666c315a373e2d4dc93d3d6dd90ca1496918 (diff) | |
download | mustache-spec-20ce9011c805023f5847a6b601c22e9553bc5308.tar.gz |
added task
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -33,5 +33,11 @@ YAML and JSON ------------- JSON versions of the YML specs were created using a simple ruby script: + + require 'json' # Make sure you're using SYCK + require 'yaml' + Dir.glob("Mustache-Spec/specs/*").collect{|f| ff=f.gsub("yml","json"); File.open(ff,'w'){|x| x << YAML.parse(File.open(f)).transform.to_json}} - Dir.glob("Mustache-Spec/specs/*").collect{|f| ff=f.gsub("yml","json"); File.open(ff,'w'){|x| x << YAML.parse(File.open(f)).transform.to_json}}
\ No newline at end of file +Which has been included as a Rake task: + + rake build:json
\ No newline at end of file |