dtk-action-agent 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d0db3719b17b9856404b7b9e81a1e9f91bc1c04
4
- data.tar.gz: 3bcd4713fb782f37a6894f38b99a9cba3b4e7a59
3
+ metadata.gz: d681cedb8361d7119da4a19ac6ad046e008757fc
4
+ data.tar.gz: baba1defa66c1a03c3c13b2c791bced412946cdf
5
5
  SHA512:
6
- metadata.gz: 8ccabb36b8cdd75c8a28b043255750f165ef03a9257e3f9e6d8ca72aaba4ec45f8b2ee8e2dca10fb1f42abe13e65e638d55c04b6eb119b9f0168c974a88fe0c6
7
- data.tar.gz: 628007e0af112995cf08fd4e4bf395d38a213d3af5e44ddf57aa584b6e5c59f3b4f8715cce3795df42bec5a5c64eb8ac5c3cd065591ce7cf009059999ec9b899
6
+ metadata.gz: 168e9ce7a0eb82dc1275dfcb66e752d880e1e4f19a4c732aa8c6cd84319a8fef976dc6479826dcfe529a5dd09fb5f85d9f56870212a32ea44bcff2ad1b266b96
7
+ data.tar.gz: f6b627f3b78ae43020c5aae52438ffd938424ab199441a6ec07140b9050b26bc8d7fe030900ea8687f80c36646cdc58ad431d01097e230d17485854a2b8b2859
data/bin/dtk-action-agent CHANGED
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'rubygems'
3
3
  require 'json'
4
+ require 'cgi'
5
+
4
6
  require File.expand_path('../../lib/logger', __FILE__)
5
7
  require File.expand_path('../../lib/arbiter', __FILE__)
6
8
  require File.expand_path('../../lib/positioner', __FILE__)
@@ -12,7 +14,9 @@ unless ARGV[0]
12
14
  }
13
15
  print error_msg.to_json
14
16
  else
15
- content = JSON.parse(ARGV[0])
17
+ json_cgi_string = ARGV[0]
18
+
19
+ content = JSON.parse(CGI.unescape(json_cgi_string))
16
20
  arbiter = DTK::Agent::Arbiter.new(content)
17
21
  results = arbiter.run()
18
22
 
@@ -1,5 +1,5 @@
1
1
  module DTK
2
2
  module ActionAgent
3
- VERSION="0.0.2"
3
+ VERSION="0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtk-action-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich PELAVIN