diff options
author | Seb Bacon <seb@seb-virtual-machine.(none)> | 2011-03-25 12:37:59 +0000 |
---|---|---|
committer | Seb Bacon <seb@seb-virtual-machine.(none)> | 2011-03-25 12:37:59 +0000 |
commit | 22c25e42847d41924d43d31f3ef67be1ae4a155e (patch) | |
tree | 3534d4842184ab0a769f606b39ff0447c246de7e /vendor/gems/json-1.5.1/bin/edit_json.rb | |
parent | 1380232e20da4c0b9ce72efb43c1f4d1978ab5d7 (diff) |
include json gem (for tests to pass)
Diffstat (limited to 'vendor/gems/json-1.5.1/bin/edit_json.rb')
-rwxr-xr-x | vendor/gems/json-1.5.1/bin/edit_json.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/gems/json-1.5.1/bin/edit_json.rb b/vendor/gems/json-1.5.1/bin/edit_json.rb new file mode 100755 index 000000000..04a8189d2 --- /dev/null +++ b/vendor/gems/json-1.5.1/bin/edit_json.rb @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +require 'json/editor' + +filename, encoding = ARGV +JSON::Editor.start(encoding) do |window| + if filename + window.file_open(filename) + end +end |