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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 308ba448e6d32bfa33f9530eb68edd44e4bcd9ec
4
- data.tar.gz: cecfad045fa6e974081a70107d864ab24ad918a2
3
+ metadata.gz: 93bd64853af5442ac5ce62b73e1547c5690d630e
4
+ data.tar.gz: 3d10ed4dec1940e1f7ff2fa8afb74ba3a669be8d
5
5
  SHA512:
6
- metadata.gz: ff8c0c6bd81274722c510d3f14550c4bf45caa995d32f4e46304bf0eec3bd843cf07011f9da0d4bdc97d3c43c5d13d0609d65dc6c989dbb3f31c520d62725920
7
- data.tar.gz: bd06708b361af481e579f4e71c97d61dcf87e486d231a6ebf77dbaed105c7580564d799b8cbd99a1c1cc19d1e0c53536f85974a5ee66eb7a9e1a4aeede26a109
6
+ metadata.gz: b4ec13bef9a0ddf7bd965edb3a89d9db47131f0fcb5f9baaa49a70669fffb9d89b3ba76c0bb026811f5934bcbf492d13d1da2e41902b616d4582e47400c08b6d
7
+ data.tar.gz: 66072c609c57ab533696ff69a86ba857938cf3515dbc1e4f1b3a2cb41dba92ac191619bd153ac03d722a9311a0dcbd37161cd0afaa5bf7a8608ee8fe63072956
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.2.0
2
+ * Update for latest carnivore
3
+
1
4
  # v0.1.8
2
5
  * Include support for auto extraction
3
6
  * Detect received payload correctly based on adapter
@@ -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 Celluloid
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, :ack => true) do |info, metadata, payload|
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
@@ -1,6 +1,6 @@
1
1
  module Carnivore
2
2
  module Rabbitmq
3
3
  # Current version of library
4
- VERSION = Gem::Version.new('0.1.8')
4
+ VERSION = Gem::Version.new('0.2.0')
5
5
  end
6
6
  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.1.8
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-05-22 00:00:00.000000000 Z
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.1.8
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.1.8
43
+ version: 1.0.0
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
27
47
  - !ruby/object:Gem::Dependency
28
- name: bunny
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: :runtime
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.2.2
109
+ rubygems_version: 2.4.8
76
110
  signing_key:
77
111
  specification_version: 4
78
112
  summary: Message processing source