minion_kim 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/minion.rb +2 -2
  3. metadata +7 -7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.16
1
+ 0.1.17
data/lib/minion.rb CHANGED
@@ -11,7 +11,7 @@ module Minion
11
11
  @@config_url = url
12
12
  end
13
13
 
14
- def enqueue(jobs, data = {})
14
+ def enqueue(jobs, data = {}, headers = {})
15
15
  raise "cannot enqueue a nil job" if jobs.nil?
16
16
  raise "cannot enqueue an empty job" if jobs.empty?
17
17
 
@@ -25,7 +25,7 @@ module Minion
25
25
 
26
26
  encoded = JSON.dump(data)
27
27
  log "send: #{queue}:#{encoded}"
28
- bunny.queue(queue, :durable => true, :auto_delete => false).publish(encoded)
28
+ bunny.queue(queue, :durable => true, :auto_delete => false).publish(encoded, headers)
29
29
  end
30
30
 
31
31
  def log(msg)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minion_kim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2011-07-13 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: amqp
17
- requirement: &2153999176 !ruby/object:Gem::Requirement
17
+ requirement: &2153621736 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 0.6.7
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2153999176
25
+ version_requirements: *2153621736
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bunny
28
- requirement: &2153998504 !ruby/object:Gem::Requirement
28
+ requirement: &2153621064 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.6.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2153998504
36
+ version_requirements: *2153621064
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: json
39
- requirement: &2153997832 !ruby/object:Gem::Requirement
39
+ requirement: &2153620392 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 1.2.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2153997832
47
+ version_requirements: *2153620392
48
48
  description: Super simple job queue over AMQP
49
49
  email: kim@soundcloud.com
50
50
  executables: []