pebbles-river 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5154135c4634b945ecb355540b84513c94adcb90
4
- data.tar.gz: b589add0f5307e3ca0611fd062c473ea4ca77243
3
+ metadata.gz: 3a9d7fc14df9e1ff6e3ba421d3821b30e1bf44f6
4
+ data.tar.gz: 22387fcc520f21ca016f4b2ddff442202b94d5e0
5
5
  SHA512:
6
- metadata.gz: b178f1ec13fb5916f718a3e77df7e5fe983dd40fc40bfa971e35fae2166fed6ff48e2aaf2ba5c40d4bf5177335b68182c727360565113081fd6dcc572e325152
7
- data.tar.gz: d25e51b1f21784e80d10b8d8881fd08f4237ef6b1c0fc7c53dfe68fda0ea857a41eecb97ac339cdb1747de408e60ca1c80029cf6883d7a2d8144606d662a6bfe
6
+ metadata.gz: 029b4e3683dcbed2cdebda4744199527a59c64513f22404d510f5a552788a708d159d4495d248e2d1b38c0d7c52bf2ed3e34b23fcb5c805cb846ee36a9318f0c
7
+ data.tar.gz: 6d5b93d2ed155f25c3220fd1c992d50c8c0425dd99785706c9a25f7ca728e0fb431df860ddf3557d5fa7e602ea36b2dfd93fcc7327aefd4c950e9c49c3d5346d
@@ -26,13 +26,18 @@ module Pebbles
26
26
  end
27
27
 
28
28
  def disconnect
29
- if connected?
29
+ bunny = @bunny
30
+ if bunny and bunny.connected?
30
31
  begin
31
32
  bunny.stop
32
33
  rescue *CONNECTION_EXCEPTIONS
33
34
  # Ignore
34
35
  end
35
36
  end
37
+
38
+ # This will force fresh connection the next time we need it, otherwise
39
+ # Bunny won't create queues that no longer might exist
40
+ @bunny = nil
36
41
  end
37
42
 
38
43
  def publish(options = {})
@@ -1,5 +1,5 @@
1
1
  module Pebbles
2
2
  module River
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pebbles-river
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Staubo