iron_worker_ng 0.6.4 → 0.6.5

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/iron_worker_ng/client.rb +8 -8
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.4
1
+ 0.6.5
@@ -163,18 +163,18 @@ module IronWorkerNG
163
163
  private
164
164
 
165
165
  def params_for_legacy(code_name, params)
166
- attrs = params
166
+ if params.class == String
167
+ params = JSON.parse(params)
168
+ end
167
169
 
168
- if params.class != String
169
- attrs = {}
170
+ attrs = {}
170
171
 
171
- params.keys.each do |k|
172
- attrs['@' + k.to_s] = params[k]
173
- end
174
-
175
- attrs = attrs.to_json
172
+ params.keys.each do |k|
173
+ attrs['@' + k.to_s] = params[k]
176
174
  end
177
175
 
176
+ attrs = attrs.to_json
177
+
178
178
  {:class_name => code_name, :attr_encoded => Base64.encode64(attrs), :sw_config => {:project_id => project_id, :token => token}}.to_json
179
179
  end
180
180
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_worker_ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  segments:
146
146
  - 0
147
- hash: -592258257
147
+ hash: 534277437
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements: