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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d127681a171c54a31bee1d2e77f9228a47d23d13
4
- data.tar.gz: f1c2f43b31d7529bc91608596d5a49c02f483965
3
+ metadata.gz: 298cf52b218557db5decfb95a85beb9bdeaacd17
4
+ data.tar.gz: ad3b7d8ff53ceca3f13a4740a41884be812eb29c
5
5
  SHA512:
6
- metadata.gz: c87dc59fb74f30e53e56811b3c779abd2d135c55c93e8aafadfd1670a57cbf63f2462b1ddadac8d935ac6c6b6dc6af1aae10146ca24d743011be5d7862e5a9da
7
- data.tar.gz: 82b8053a6c222b0230b3f19b9490d57ba0faf341bf36587978140b9a4c4d546ecdac3594cfba2224760b7240a950e8e1b737b49bddfbefd06dea3e28ca405209
6
+ metadata.gz: f2e07e8e1fe357ff2721bf08505c07b1227cb4289acc1784bcfece31038ca2521fd7548fba376fe3770dce4d477de39103aa9c30adeef98668c06694a5d2c680
7
+ data.tar.gz: f1f7de50e2f5c6106c1a2a7704c8ac815bb6003f9215402ec552c1c2f362aa49a236ee147c4f03bfa975dcd1280fded075e7f364fb2147d259a3d571c4720588
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,57 @@
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: java
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: 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.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
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: march_hare
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: :runtime
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.2.2
109
+ rubygems_version: 2.4.8
90
110
  signing_key:
91
111
  specification_version: 4
92
112
  summary: Message processing source