brown 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/brown +1 -1
- data/lib/brown/agent.rb +1 -1
- data/lib/brown/test.rb +7 -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: 5cc95726eacf9732ee7d020ffc841e087f5b057a
|
4
|
+
data.tar.gz: 708dc32a8fe3830acf136ed7d6830e5b8df80fae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e91292e3193b4ed6f25971c76acb83afc69f6c015bc7c63f10e8c13770de1e18c9d9c00aad183149d9a7dc33189ada46cd71a60f5c66c420817f321fb81267d0
|
7
|
+
data.tar.gz: dbffc92d30352eb5c7c66b0e20c4806e796bc5eeb5292e2910ffccceb013f8303488bd73c9056613761e6d4924430daf58e43b632d35e944eeaf03b22fd30e2a
|
data/bin/brown
CHANGED
@@ -21,7 +21,7 @@ end
|
|
21
21
|
|
22
22
|
Brown::Agent.logger = Logger.new($stderr)
|
23
23
|
Brown::Agent.logger.level = Logger.const_get(ENVied.BROWN_LOG_LEVEL.upcase.to_sym)
|
24
|
-
Brown::Agent.logger.formatter = proc { |s,dt,n,msg| "#{$$} [#{s[0]}] #{msg}\n" }
|
24
|
+
Brown::Agent.logger.formatter = proc { |s,dt,n,msg| "#{$$}-#{Thread.current.object_id} [#{s[0]}] #{msg}\n" }
|
25
25
|
|
26
26
|
agents = ThreadGroup.new
|
27
27
|
|
data/lib/brown/agent.rb
CHANGED
@@ -284,7 +284,7 @@ class Brown::Agent
|
|
284
284
|
stimulate(worker_method) do |worker|
|
285
285
|
__send__(queue_memo) do |queue|
|
286
286
|
queue.subscribe(manual_ack: true, block: true) do |di, prop, payload|
|
287
|
-
|
287
|
+
worker.call Brown::Agent::AMQPMessage.new(di, prop, payload)
|
288
288
|
end
|
289
289
|
end
|
290
290
|
end
|
data/lib/brown/test.rb
CHANGED
@@ -101,7 +101,13 @@ module Brown::TestHelpers
|
|
101
101
|
def amqp_listener_with_test(exchange_name, *args, &blk)
|
102
102
|
@amqp_listeners ||= {}
|
103
103
|
|
104
|
-
|
104
|
+
if exchange_name.is_a? Array
|
105
|
+
exchange_name.each do |en|
|
106
|
+
@amqp_listeners[en.to_s] = blk
|
107
|
+
end
|
108
|
+
else
|
109
|
+
@amqp_listeners[exchange_name.to_s] = blk
|
110
|
+
end
|
105
111
|
|
106
112
|
amqp_listener_without_test(exchange_name, *args, &blk)
|
107
113
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Palmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|