aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/json-1.5.1/bin/edit_json.rb
diff options
context:
space:
mode:
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