carnivore-rabbitmq 0.1.8 → 0.2.0
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 +41 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93bd64853af5442ac5ce62b73e1547c5690d630e
|
4
|
+
data.tar.gz: 3d10ed4dec1940e1f7ff2fa8afb74ba3a669be8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4ec13bef9a0ddf7bd965edb3a89d9db47131f0fcb5f9baaa49a70669fffb9d89b3ba76c0bb026811f5934bcbf492d13d1da2e41902b616d4582e47400c08b6d
|
7
|
+
data.tar.gz: 66072c609c57ab533696ff69a86ba857938cf3515dbc1e4f1b3a2cb41dba92ac191619bd153ac03d722a9311a0dcbd37161cd0afaa5bf7a8608ee8fe63072956
|
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,71 @@
|
|
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: ruby
|
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: bunny
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.2.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.2.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
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: minitest
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
35
69
|
prerelease: false
|
36
70
|
version_requirements: !ruby/object:Gem::Requirement
|
37
71
|
requirements:
|
@@ -72,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
106
|
version: '0'
|
73
107
|
requirements: []
|
74
108
|
rubyforge_project:
|
75
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.4.8
|
76
110
|
signing_key:
|
77
111
|
specification_version: 4
|
78
112
|
summary: Message processing source
|