celerb 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,6 +36,9 @@ module Celerb
36
36
  exchange = @channel.direct(queue, :key => queue,
37
37
  :durable => true)
38
38
  end
39
+ if @channel.status != :opened
40
+ raise Celerb::ChannelClosed, "check broker connection"
41
+ end
39
42
  exchange.publish MessagePack.pack(body), {
40
43
  :content_type => 'application/x-msgpack',
41
44
  :content_encoding => 'binary'
@@ -47,4 +50,6 @@ module Celerb
47
50
  end
48
51
 
49
52
  end
53
+
54
+ class ChannelClosed < IOError; end
50
55
  end
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.9'
10
+ VERSION = '0.3.10'
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: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 9
10
- version: 0.3.9
9
+ - 10
10
+ version: 0.3.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dusan Maliarik
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-31 00:00:00 +02:00
18
+ date: 2011-11-21 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency