celerb 0.3.8 → 0.3.9

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.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ $hoe = Hoe.spec 'celerb' do
9
9
  self.developer 'Dusan Maliarik', 'dusan.maliarik@gmail.com'
10
10
  self.rubyforge_name = self.name # TODO this is default value
11
11
  self.extra_deps = [
12
- ['amqp', '= 0.7.5'],
12
+ ['amqp', '= 0.8.0.rc15'],
13
13
  ['msgpack','= 0.4.3']
14
14
  ]
15
15
  end
@@ -7,7 +7,7 @@ require 'msgpack'
7
7
  require 'uuid'
8
8
 
9
9
  module Celerb
10
- VERSION = '0.3.8'
10
+ VERSION = '0.3.9'
11
11
  end
12
12
 
13
13
  require 'celerb/task'
@@ -1,8 +1,8 @@
1
1
  module Celerb
2
2
  class TaskPublisher
3
3
 
4
- def self.connect(opts)
5
- @channel = AMQP::Channel.new
4
+ def self.connect(opts, connection=nil)
5
+ @channel = AMQP::Channel.new(connection)
6
6
  @default_exchange = @channel.direct(opts[:exchange],
7
7
  :key => opts[:key], :durable => true)
8
8
  @results = ResultConsumer.new @channel, opts
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: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 8
10
- version: 0.3.8
9
+ - 9
10
+ version: 0.3.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dusan Maliarik
@@ -26,12 +26,14 @@ dependencies:
26
26
  requirements:
27
27
  - - "="
28
28
  - !ruby/object:Gem::Version
29
- hash: 9
29
+ hash: 15424139
30
30
  segments:
31
31
  - 0
32
- - 7
33
- - 5
34
- version: 0.7.5
32
+ - 8
33
+ - 0
34
+ - rc
35
+ - 15
36
+ version: 0.8.0.rc15
35
37
  type: :runtime
36
38
  version_requirements: *id001
37
39
  - !ruby/object:Gem::Dependency