rabid_mq 0.1.34 → 0.1.35

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: 2e2c68e6a7a0cc49309ea16edf3f61a930d05609
4
- data.tar.gz: d9375b2f34a621375f6486b68dff2dfc5a9a6c32
3
+ metadata.gz: bd62092327b8c0d5914d4364b48564eb16c9aba0
4
+ data.tar.gz: c468666cc6283c529c5ffdd94ce8df8034e83ecd
5
5
  SHA512:
6
- metadata.gz: f24adb54efcc3550826861d135e4df23edb3a19558d3b9633958ea61aa35c2afa739a50cbdd03f11e21e6aeb729b66f022fe57bea0c7df81de60e707435ae340
7
- data.tar.gz: 9a8df8c1b113d6aceb1418fd0d25e04124c31a9412e1b76463acee29a63147309dc3d6e1089e5c75ff18aa368aa5b03e710367d3c5e02f6476be06d817d401f3
6
+ metadata.gz: 347116d5de2b0c93543cb52c882ca242a2c6ea534a91e75548c8a2a3dbc56e70936fada7f1369711c2f4f3657611aa34100fb81250b64d3be8b4ff1339093a53
7
+ data.tar.gz: 87d949b44cdc05cfcd8d52a8d85881e4d20321d106bb865f106cee655bc39918b28dc7cb301de1b41fd34572e21a0bbe9c37563cfc16e7e830640b8e89348097
@@ -49,29 +49,27 @@ module RabidMQ
49
49
 
50
50
  # Get a channel with the Bunny::Session
51
51
  delegate :channel,
52
- :reconnect,
53
- :connection,
54
52
  :name_with_env,
55
53
  :topic_exchange,
56
54
  to: ::RabidMQ
57
55
 
58
56
  # # Start a new connection
59
- # def amqp_connect
60
- # connection.tap do |c|
61
- # c.start
62
- # end
63
- # end
57
+ def amqp_connect
58
+ amqp_connection.tap do |c|
59
+ c.start
60
+ end
61
+ end
64
62
 
65
- # def name_with_env(name)
66
- # return name unless defined?(::Rails)
67
- # return name if name.match /\[(development|test|production|integration|pod)\]/
68
- # name + "[#{Config.environment}]"
69
- # end
63
+ def name_with_env(name)
64
+ return name unless defined?(::Rails)
65
+ return name if name.match /\[(development|test|production|integration|pod)\]/
66
+ name + "[#{Config.environment}]"
67
+ end
70
68
 
71
- # # Provide a new or existing Bunny::Session
72
- # def connection
73
- # @connection ||= Bunny.new RabidMQ::Config.load_config
74
- # end
69
+ # Provide a new or existing Bunny::Session
70
+ def amqp_connection
71
+ @amqp_connection ||= Bunny.new RabidMQ::Config.load_config
72
+ end
75
73
 
76
74
  end
77
75
  end
@@ -1,3 +1,3 @@
1
1
  module RabidMQ
2
- VERSION = "0.1.34"
2
+ VERSION = "0.1.35"
3
3
  end
data/lib/rabid_mq.rb CHANGED
@@ -50,7 +50,6 @@ module RabidMQ
50
50
  def connect
51
51
  connection.tap do |c|
52
52
  c.start
53
-
54
53
  end
55
54
  end
56
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabid_mq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.34
4
+ version: 0.1.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyrone Wilson