carnivore-rabbitmq 0.2.4 → 0.2.6

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: cd27cd6d1b8b40b91acb44542e25092e30fb43d0
4
- data.tar.gz: 714920300aee91b2abe11fbf31a9de62d6f30766
3
+ metadata.gz: edb28dc05a014d41e3eb138ebcd398ddfd521c50
4
+ data.tar.gz: 085efbc6fd95971bd4bf353985b947582459979e
5
5
  SHA512:
6
- metadata.gz: af4c659d59915ea6ff1a338dd110b74c6ba4a2dd49de9f641623fe9811ae82c1a526effcc3cce03ece0bf88f172c9855e8cf2b0e505195b1c545686567598688
7
- data.tar.gz: b04f5248ee265729faaf9b0f1ac60b7b8835d8acc1c3f0e9a4d9b55de7291decee9c052e632d2f5275095c8a4a58ad26da1292ef921a727ffb59ea250cc2843a
6
+ metadata.gz: ec34de4fd8dafc7aea96f674161106c08607bb132818b51d5b822d6808a7a74aa5a2fb97d2c15ff8b4afc12a99c16cd6f6e2bf6cd5896361e9b22d26002d51a5
7
+ data.tar.gz: 33e6ef3ec8759c5f40726a5a47f2cbe07fe58b4937b82002206bee7db2ee5b4597e3de7d4d4a03463369a1c7681b752cd3f345e26343183599248aaca74ce410
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.2.6
2
+ * Kill connection to server when terminated
3
+
1
4
  # v0.2.4
2
5
  * Refactor to isolate connection to ease supervision
3
6
  * Push received messages via internal signaling
@@ -49,6 +49,13 @@ module Carnivore
49
49
  end
50
50
  end
51
51
 
52
+ # Close down the connection if available
53
+ def terminate
54
+ if(connection)
55
+ connection.close
56
+ end
57
+ end
58
+
52
59
  # Establish connection to remote server and setup
53
60
  #
54
61
  # @return [MarchHare::Session, Bunny::Session]
@@ -1,6 +1,6 @@
1
1
  module Carnivore
2
2
  module Rabbitmq
3
3
  # Current version of library
4
- VERSION = Gem::Version.new('0.2.4')
4
+ VERSION = Gem::Version.new('0.2.6')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnivore-rabbitmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-13 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny