bbk-app 1.0.0.80957 → 1.0.0.141716
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/bbk/app/dispatcher.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddd13011788fd70fb38bb3d91d436cea5a602d2d74be9780759a6a8df4378b78
|
4
|
+
data.tar.gz: 2819543d3971764f12bcca9554a18ac715477815a27d539bd6f942e3263e45c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f07b3488745b25b86e82e2472de8678e05f0772c805a2e9e0d0faab087620ea90e6f29e7a65911955a51925c01aed4adc422a353d716cef59070a33365670706
|
7
|
+
data.tar.gz: 8511a776aa500dfa4fdec5638d04070c7bd869227f413e3b0fdcc30b8d33ab9b272eced03c3b3a79f289c28ce9916c5baccddfcbf0be6b595b3a787fd569bf39
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bbk-app (1.0.0.
|
4
|
+
bbk-app (1.0.0.141716)
|
5
5
|
activesupport
|
6
6
|
bbk-utils (> 1.0.1)
|
7
7
|
timeouter
|
@@ -29,8 +29,8 @@ GEM
|
|
29
29
|
descendants_tracker (~> 0.0.4)
|
30
30
|
ice_nine (~> 0.11.0)
|
31
31
|
thread_safe (~> 0.3, >= 0.3.1)
|
32
|
-
bbk-utils (1.0.1.
|
33
|
-
activesupport (
|
32
|
+
bbk-utils (1.0.1.136047)
|
33
|
+
activesupport (>= 6.0)
|
34
34
|
russian
|
35
35
|
bunny (2.19.0)
|
36
36
|
amq-protocol (~> 2.3, >= 2.3.1)
|
data/lib/bbk/app/dispatcher.rb
CHANGED
@@ -116,12 +116,16 @@ module BBK
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
+
def execute_message(message)
|
120
|
+
build_processing_stack.call(message).select do |r|
|
121
|
+
r.is_a?(BBK::App::Dispatcher::Result)
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
119
125
|
protected
|
120
126
|
|
121
127
|
def process(message)
|
122
|
-
results =
|
123
|
-
e.is_a? BBK::App::Dispatcher::Result
|
124
|
-
end
|
128
|
+
results = execute_message(message)
|
125
129
|
logger.debug "There are #{results.count} results to send from #{message.headers[:message_id]}..."
|
126
130
|
send_results(message, results).value
|
127
131
|
rescue StandardError => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bbk-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.141716
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samoilenko Yuri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|