bbk-app 1.0.0.80957 → 1.0.0.152254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/bbk/app/dispatcher/result.rb +8 -0
- 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: 46d513493369b485e14db4e4ffcef827a409635d13e125dc6df66096b40993b8
|
4
|
+
data.tar.gz: a24c4866933af57383e6ecd26730a6d52f0eda798398fbe10846fd854c0d5fe0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 735ad0718af3db41205a5d2145282121d69d1891610160830f5f10a72986a334e843cebc96c115474cdb59ae8dd1338503749ab53ec4f7e138f7a78c777f6bb4
|
7
|
+
data.tar.gz: 65b53f997cef141a0f7e281f776a18bc6bb258b5c0cdf9797c25280b67bec584adbb6fe53ede7092a6245a50b6979429aabdad0bdcb000f4619972df3fccb72a
|
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.152254)
|
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.147183)
|
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.152254
|
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-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|