summaryrefslogtreecommitdiff
path: root/derivation_to_json/derivation_to_json.rb
diff options
context:
space:
mode:
Diffstat (limited to 'derivation_to_json/derivation_to_json.rb')
-rwxr-xr-xderivation_to_json/derivation_to_json.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/derivation_to_json/derivation_to_json.rb b/derivation_to_json/derivation_to_json.rb
index db2918d..f4706f3 100755
--- a/derivation_to_json/derivation_to_json.rb
+++ b/derivation_to_json/derivation_to_json.rb
@@ -140,6 +140,9 @@ def proc_deriv s
end
if __FILE__ == $0
- puts JSON.parse(proc_deriv(STDIN.gets.strip))["target_groups"].join " "
+ json = proc_deriv(STDIN.gets.strip)
+ obj = JSON.parse(json)
+ STDERR.write "#{json}\n"
+ puts obj["target_groups"].join " "
end