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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/carnivore-rabbitmq/connection.rb +4 -1
- data/lib/carnivore-rabbitmq/rabbitmq.rb +2 -1
- data/lib/carnivore-rabbitmq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b2a826b4bd4bd0fffc99be4cd1d3c6d73649f11
|
4
|
+
data.tar.gz: b6f7d70ff4470e445c3c314b97c0405c23f36af6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43b6e58553e66ebb18d9efc24089ec1fea26999c2639a669d65828ff0cb14c145355c5853bae3c0dbb7272a1e5154cfbc02cf3ca477d72728f94c9dac8383454
|
7
|
+
data.tar.gz: 4da672eeefc8ed10988173982bb7abe6fccbcea9d60b1f817fb5fb5c13221757131f43759f0d81188845d038ab031492c0b78fe972a2fa72a8339ea844deb60e
|
data/CHANGELOG.md
CHANGED
@@ -51,7 +51,9 @@ module Carnivore
|
|
51
51
|
|
52
52
|
# Close down the connection if available
|
53
53
|
def terminate
|
54
|
-
connection
|
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
|
|
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
|
+
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-
|
11
|
+
date: 2015-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|