aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/json-1.5.1/bin/edit_json.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb@seb-virtual-machine.(none)>2011-03-25 12:37:59 +0000
committerSeb Bacon <seb@seb-virtual-machine.(none)>2011-03-25 12:37:59 +0000
commit22c25e42847d41924d43d31f3ef67be1ae4a155e (patch)
tree3534d4842184ab0a769f606b39ff0447c246de7e /vendor/gems/json-1.5.1/bin/edit_json.rb
parent1380232e20da4c0b9ce72efb43c1f4d1978ab5d7 (diff)
include json gem (for tests to pass)
Diffstat (limited to 'vendor/gems/json-1.5.1/bin/edit_json.rb')
-rwxr-xr-xvendor/gems/json-1.5.1/bin/edit_json.rb9
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