action_subscriber 5.0.2-java → 5.0.3-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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0ff5d8d898733d8be933d9ea638d7a6ec5b03455250d372a4e8cb48cab5382aa
|
4
|
+
data.tar.gz: 53857af0efe14731fe62370abe878d69950ea72135c1b84a92095a3fd889d7ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fa0fb22c9ebe72d2db740dea1d57dda786d7b26780baa2445de274109beb9f49f0b1f916a110d8543d4a6bfd1366fe0b059288579544277eff2b75409188361
|
7
|
+
data.tar.gz: dcab7598710c67481a6809d17a5e1f1165fabceb6d10d74792287e773dc2bdd7feac5456b4b861ac9674befb12dbdcebe8b7f9aa7a357b64d0eba08ac8d73f37
|
@@ -8,9 +8,11 @@ module ActionSubscriber
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def call(env)
|
11
|
-
logger.info "START #{env.message_id} #{env.subscriber}##{env.action}"
|
12
|
-
env.subscriber.
|
13
|
-
|
11
|
+
logger.info { "START #{env.message_id} #{env.subscriber}##{env.action}" }
|
12
|
+
::ActiveSupport::Notifications.instrument "process_event.action_subscriber", :subscriber => env.subscriber.to_s, :routing_key => env.routing_key, :queue => env.queue do
|
13
|
+
env.subscriber.run_action_with_filters(env, env.action)
|
14
|
+
end
|
15
|
+
logger.info { "FINISHED #{env.message_id}" }
|
14
16
|
end
|
15
17
|
end
|
16
18
|
end
|
@@ -58,10 +58,8 @@ module ActionSubscriber
|
|
58
58
|
|
59
59
|
def run_env(env, threadpool)
|
60
60
|
logger.info "RECEIVED #{env.message_id} from #{env.queue}"
|
61
|
-
|
62
|
-
|
63
|
-
::ActionSubscriber.config.middleware.call(env)
|
64
|
-
end
|
61
|
+
threadpool << lambda do
|
62
|
+
::ActionSubscriber.config.middleware.call(env)
|
65
63
|
end
|
66
64
|
end
|
67
65
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_subscriber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Brian Stien
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2017-12-
|
15
|
+
date: 2017-12-18 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
@@ -283,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
283
283
|
version: '0'
|
284
284
|
requirements: []
|
285
285
|
rubyforge_project:
|
286
|
-
rubygems_version: 2.6.
|
286
|
+
rubygems_version: 2.6.11
|
287
287
|
signing_key:
|
288
288
|
specification_version: 4
|
289
289
|
summary: ActionSubscriber is a DSL that allows a rails app to consume messages from
|