magicbus 0.0.3 → 0.0.4

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.
@@ -26,8 +26,8 @@ class MagicBus::Subscriber
26
26
 
27
27
  user_id = user_id.to_s
28
28
 
29
- if channels[user_id].status == :closed ||
30
- channels[user_id].nil?
29
+ if channels[user_id].nil? ||
30
+ channels[user_id].status == :closed
31
31
 
32
32
  channels[user_id] = AMQP::Channel.new(connection)
33
33
  channel = channels[user_id]
@@ -1,5 +1,5 @@
1
1
  module MagicBus
2
2
 
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
 
5
- end
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magicbus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: