carnivore-rabbitmq 0.2.8-java → 0.2.10-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: 175dc4f71a1b3c628ee619dab99cde3d628e99c0
|
4
|
+
data.tar.gz: fcda1eeba9f4c4974d152427bfe7d37fab43acd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f74291c4110e8b2fb7426873dcee4772258f84550307410781759afc88231edfbfd699912eff1e9b4fdfc3159f5f59a5e340a72d540203b17a4622762eebc11
|
7
|
+
data.tar.gz: 2cb9d6743a9db23288150e07f8b5637558e3399f30ded5d5efeb504eee41e6282cc89feb978403bb94013dd32c31dd508448ba1ec1943f08f990c9fc8f0a8f16
|
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: java
|
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: march_hare
|