carnivore-rabbitmq 0.2.6 → 0.2.8

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: edb28dc05a014d41e3eb138ebcd398ddfd521c50
4
- data.tar.gz: 085efbc6fd95971bd4bf353985b947582459979e
3
+ metadata.gz: 067922a2f556b3906bf05708d40c45f25a86495d
4
+ data.tar.gz: c431efc8472537b80e1f309b33a40bde68244f5e
5
5
  SHA512:
6
- metadata.gz: ec34de4fd8dafc7aea96f674161106c08607bb132818b51d5b822d6808a7a74aa5a2fb97d2c15ff8b4afc12a99c16cd6f6e2bf6cd5896361e9b22d26002d51a5
7
- data.tar.gz: 33e6ef3ec8759c5f40726a5a47f2cbe07fe58b4937b82002206bee7db2ee5b4597e3de7d4d4a03463369a1c7681b752cd3f345e26343183599248aaca74ce410
6
+ metadata.gz: 2477b88b0d637bec43d1eb0a57025101aa69b32f0bfe39edb5d6adda77b86e419d7e8e5bac9942998608357c62178d6395e6dee8ba0a874da93035b64f97de72
7
+ data.tar.gz: 1adf24e171a41867d5d93259645ae2abeb5aa0bc0f93d3067a2b95bbec366e5bb3e7081dea183256369fea005e053011cee3ae1a509d5197c13c7b22fd5b047b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.2.8
2
+ * Ensure custom connection is always killed
3
+ * Close remote connection on termination
4
+
1
5
  # v0.2.6
2
6
  * Kill connection to server when terminated
3
7
 
@@ -51,9 +51,7 @@ module Carnivore
51
51
 
52
52
  # Close down the connection if available
53
53
  def terminate
54
- if(connection)
55
- connection.close
56
- end
54
+ connection.close
57
55
  end
58
56
 
59
57
  # Establish connection to remote server and setup
@@ -42,9 +42,7 @@ module Carnivore
42
42
  # @return [TrueClass]
43
43
  def terminate
44
44
  super
45
- if(connection && connection.alive?)
46
- connection.terminate
47
- end
45
+ connection.terminate
48
46
  end
49
47
 
50
48
  # Receive payload from connection
@@ -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.6')
4
+ VERSION = Gem::Version.new('0.2.8')
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.6
4
+ version: 0.2.8
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-22 00:00:00.000000000 Z
11
+ date: 2015-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny