summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authormrb <michaelrbernstein@gmail.com>2011-02-03 08:46:17 -0500
committermrb <michaelrbernstein@gmail.com>2011-02-03 08:46:17 -0500
commit20ce9011c805023f5847a6b601c22e9553bc5308 (patch)
treee47c4b94854005b4d3a99a4a28f77377ec204c58 /README.md
parent54e8666c315a373e2d4dc93d3d6dd90ca1496918 (diff)
downloadmustache-spec-20ce9011c805023f5847a6b601c22e9553bc5308.tar.gz
added task
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index fb16524..384b514 100644
--- a/README.md
+++ b/README.md
@@ -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