carnivore-rabbitmq 0.2.8 → 0.2.10

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: 067922a2f556b3906bf05708d40c45f25a86495d
4
- data.tar.gz: c431efc8472537b80e1f309b33a40bde68244f5e
3
+ metadata.gz: 8b2a826b4bd4bd0fffc99be4cd1d3c6d73649f11
4
+ data.tar.gz: b6f7d70ff4470e445c3c314b97c0405c23f36af6
5
5
  SHA512:
6
- metadata.gz: 2477b88b0d637bec43d1eb0a57025101aa69b32f0bfe39edb5d6adda77b86e419d7e8e5bac9942998608357c62178d6395e6dee8ba0a874da93035b64f97de72
7
- data.tar.gz: 1adf24e171a41867d5d93259645ae2abeb5aa0bc0f93d3067a2b95bbec366e5bb3e7081dea183256369fea005e053011cee3ae1a509d5197c13c7b22fd5b047b
6
+ metadata.gz: 43b6e58553e66ebb18d9efc24089ec1fea26999c2639a669d65828ff0cb14c145355c5853bae3c0dbb7272a1e5154cfbc02cf3ca477d72728f94c9dac8383454
7
+ data.tar.gz: 4da672eeefc8ed10988173982bb7abe6fccbcea9d60b1f817fb5fb5c13221757131f43759f0d81188845d038ab031492c0b78fe972a2fa72a8339ea844deb60e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.2.10
2
+ * On demand message fetching to prevent local queue blowout
3
+
1
4
  # v0.2.8
2
5
  * Ensure custom connection is always killed
3
6
  * Close remote connection on termination
@@ -51,7 +51,9 @@ module Carnivore
51
51
 
52
52
  # Close down the connection if available
53
53
  def terminate
54
- connection.close
54
+ if(connection)
55
+ connection.close
56
+ end
55
57
  end
56
58
 
57
59
  # Establish connection to remote server and setup
@@ -120,6 +122,7 @@ module Carnivore
120
122
  )
121
123
  debug "<#{source}> New message: #{new_message}"
122
124
  source.signal(:new_message, new_message)
125
+ wait(:ready)
123
126
  end
124
127
  true
125
128
  end
@@ -41,8 +41,8 @@ module Carnivore
41
41
  #
42
42
  # @return [TrueClass]
43
43
  def terminate
44
+ connection.terminate if connection
44
45
  super
45
- connection.terminate
46
46
  end
47
47
 
48
48
  # Receive payload from connection
@@ -53,6 +53,7 @@ module Carnivore
53
53
  @collect_messages = true
54
54
  connection.async.receive_messages
55
55
  end
56
+ connection.signal(:ready)
56
57
  wait(:new_message)
57
58
  end
58
59
 
@@ -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.8')
4
+ VERSION = Gem::Version.new('0.2.10')
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.8
4
+ version: 0.2.10
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-24 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny