simple_worker 2.0.0.beta.4 → 2.0.0.beta.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -175,18 +175,9 @@ module SimpleWorker
175
175
  end
176
176
 
177
177
  def add_sw_params(hash_to_send)
178
- hash_to_send["sw_access_key"] = self.access_key
179
- hash_to_send["sw_secret_key"] = self.secret_key
178
+ hash_to_send["token"] = self.config['token']
179
+ hash_to_send["project_id"] = self.config['project_id']
180
180
  hash_to_send["api_version"] = SimpleWorker.api_version
181
- #if defined?(SimpleWorker::SingleRunner)
182
- # #puts "IN SINGLE RUNNER"
183
- # runners = ObjectSpace.each_object(SimpleWorker::SingleRunner)
184
- # if runners
185
- # single_runner = runners.first
186
- # #puts "PUTTING PARENT TASK ID #{single_runner.instance_variable_get(:@parent_task_id)|| single_runner.instance_variable_get(:@task_id)}"
187
- # hash_to_send["sw_parent_task_id"] =single_runner.instance_variable_get(:@parent_task_id)|| single_runner.instance_variable_get(:@task_id)
188
- # end
189
- #end
190
181
  end
191
182
  end
192
183
 
@@ -398,7 +398,6 @@ end
398
398
  # Now we need to add class_name to the payload
399
399
  data.each do |d|
400
400
  d['class_name'] = class_name
401
- d['access_key'] = class_name
402
401
  end
403
402
  name = options[:name] || class_name
404
403
  hash_to_send = {}
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: simple_worker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 2.0.0.beta.4
5
+ version: 2.0.0.beta.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Travis Reeder
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-28 00:00:00 Z
13
+ date: 2011-09-30 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: zip