celerb 0.3.11 → 0.3.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.
@@ -6,6 +6,7 @@ module Celerb
6
6
  @default_exchange = @channel.direct(opts[:exchange],
7
7
  :key => opts[:key], :durable => true)
8
8
  @results = ResultConsumer.new @channel, opts
9
+ @opts = opts
9
10
  end
10
11
 
11
12
  def self.delay_task(queue, task_name, task_args=[], task_kwargs={},
@@ -40,6 +41,7 @@ module Celerb
40
41
  raise Celerb::ChannelClosed, "check broker connection"
41
42
  end
42
43
  exchange.publish MessagePack.pack(body), {
44
+ :routing_key => queue || @opts[:key],
43
45
  :content_type => 'application/x-msgpack',
44
46
  :content_encoding => 'binary'
45
47
  }
data/lib/celerb.rb CHANGED
@@ -7,7 +7,7 @@ require 'msgpack'
7
7
  require 'uuid'
8
8
 
9
9
  module Celerb
10
- VERSION = '0.3.11'
10
+ VERSION = '0.3.12'
11
11
  end
12
12
 
13
13
  require 'celerb/task'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celerb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 11
10
- version: 0.3.11
9
+ - 12
10
+ version: 0.3.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dusan Maliarik