carnivore-rabbitmq 0.1.8-java → 0.2.0-java
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/message_collector.rb +5 -2
- data/lib/carnivore-rabbitmq/rabbitmq.rb +0 -4
- data/lib/carnivore-rabbitmq/version.rb +1 -1
- metadata +29 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 298cf52b218557db5decfb95a85beb9bdeaacd17
|
4
|
+
data.tar.gz: ad3b7d8ff53ceca3f13a4740a41884be812eb29c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2e07e8e1fe357ff2721bf08505c07b1227cb4289acc1784bcfece31038ca2521fd7548fba376fe3770dce4d477de39103aa9c30adeef98668c06694a5d2c680
|
7
|
+
data.tar.gz: f1f7de50e2f5c6106c1a2a7704c8ac815bb6003f9215402ec552c1c2f362aa49a236ee147c4f03bfa975dcd1280fded075e7f364fb2147d259a3d571c4720588
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,13 @@
|
|
1
|
+
require 'carnivore-rabbitmq'
|
2
|
+
|
1
3
|
module Carnivore
|
2
4
|
class Source
|
3
5
|
class Rabbitmq
|
4
6
|
# Message collector
|
5
7
|
class MessageCollector
|
6
8
|
|
7
|
-
include
|
9
|
+
include Zoidberg::SoftShell
|
10
|
+
include Zoidberg::Supervise
|
8
11
|
include Carnivore::Utils::Logging
|
9
12
|
|
10
13
|
# @return [Bunny::Queue, MarchHare::Queue] remote queue
|
@@ -29,7 +32,7 @@ module Carnivore
|
|
29
32
|
#
|
30
33
|
# @return [TrueClass]
|
31
34
|
def collect_messages
|
32
|
-
queue.subscribe(:block => true, :
|
35
|
+
queue.subscribe(:block => true, :manual_ack => true) do |info, metadata, payload|
|
33
36
|
if(payload.nil?)
|
34
37
|
payload = metadata
|
35
38
|
metadata = {}
|
@@ -25,9 +25,6 @@ module Carnivore
|
|
25
25
|
# @return [Carnviore::Source::Rabbitmq::MessageCollector] message collector
|
26
26
|
attr_reader :message_collector
|
27
27
|
|
28
|
-
trap_exit :collector_failure
|
29
|
-
finalizer :collector_teardown
|
30
|
-
|
31
28
|
# RabbitMQ source setup
|
32
29
|
#
|
33
30
|
# @param init_args [Hash] initialization configuration
|
@@ -54,7 +51,6 @@ module Carnivore
|
|
54
51
|
unless(@collecting)
|
55
52
|
@collecting = true
|
56
53
|
@message_collector = MessageCollector.new(queue, message_queue, current_actor)
|
57
|
-
self.link message_collector
|
58
54
|
message_collector.async.collect_messages
|
59
55
|
end
|
60
56
|
end
|
metadata
CHANGED
@@ -1,37 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carnivore-rabbitmq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
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-
|
11
|
+
date: 2015-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: march_hare
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.12.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.12.0
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: carnivore
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - ">="
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
33
|
+
version: 1.0.0
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '2.0'
|
20
37
|
type: :runtime
|
21
38
|
prerelease: false
|
22
39
|
version_requirements: !ruby/object:Gem::Requirement
|
23
40
|
requirements:
|
24
41
|
- - ">="
|
25
42
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
43
|
+
version: 1.0.0
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2.0'
|
27
47
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
48
|
+
name: pry
|
29
49
|
requirement: !ruby/object:Gem::Requirement
|
30
50
|
requirements:
|
31
51
|
- - ">="
|
32
52
|
- !ruby/object:Gem::Version
|
33
53
|
version: '0'
|
34
|
-
type: :
|
54
|
+
type: :development
|
35
55
|
prerelease: false
|
36
56
|
version_requirements: !ruby/object:Gem::Requirement
|
37
57
|
requirements:
|
@@ -39,13 +59,13 @@ dependencies:
|
|
39
59
|
- !ruby/object:Gem::Version
|
40
60
|
version: '0'
|
41
61
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
62
|
+
name: minitest
|
43
63
|
requirement: !ruby/object:Gem::Requirement
|
44
64
|
requirements:
|
45
65
|
- - ">="
|
46
66
|
- !ruby/object:Gem::Version
|
47
67
|
version: '0'
|
48
|
-
type: :
|
68
|
+
type: :development
|
49
69
|
prerelease: false
|
50
70
|
version_requirements: !ruby/object:Gem::Requirement
|
51
71
|
requirements:
|
@@ -86,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
106
|
version: '0'
|
87
107
|
requirements: []
|
88
108
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.4.8
|
90
110
|
signing_key:
|
91
111
|
specification_version: 4
|
92
112
|
summary: Message processing source
|