simple_worker 0.0.10 → 0.0.12

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 (2) hide show
  1. data/lib/simple_worker.rb +13 -2
  2. metadata +2 -2
data/lib/simple_worker.rb CHANGED
@@ -36,12 +36,23 @@ module SimpleWorker
36
36
  hash_to_send = {}
37
37
  hash_to_send["data"] = data
38
38
  hash_to_send["class_name"] = class_name
39
- # puts 'hash_to_send=' + hash_to_send.inspect
39
+ puts 'hash_to_send=' + hash_to_send.inspect
40
40
  response = run_http(@host, @access_key, @secret_key, :put, "queue/add", hash_to_send, params)
41
- # puts "response=" + response
41
+ puts "response=" + response
42
42
  return ActiveSupport::JSON.decode(response)
43
+
43
44
  end
44
45
 
46
+ def queue_raw(class_name, data={})
47
+ params = nil
48
+ hash_to_send = data
49
+ # puts 'hash_to_send=' + hash_to_send.inspect
50
+ response = run_http(@host, @access_key, @secret_key, :put, "queue/add", hash_to_send, params)
51
+ # puts "response=" + response
52
+ return ActiveSupport::JSON.decode(response)
53
+ end
54
+
55
+
45
56
  #
46
57
  # schedule: hash of scheduling options that can include:
47
58
  # Required:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-15 00:00:00 -08:00
12
+ date: 2009-11-16 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15