bbk-app 1.0.0.78020 → 1.0.0.80957
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bbk/app/dispatcher.rb +2 -2
- data/lib/bbk/app/factory.rb +5 -1
- 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: fb6108f9e95a6d10ffe022dc6eff5f223c18cb6dc0bcfb0b382040db2d32e0f4
|
4
|
+
data.tar.gz: 393fd5171cdab7af57c349c25522dcc4b496d6bc12e4b7701dfe7d5d53dcae3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8ac47e367247fe1f3965952d7ceb79af0315ce00c5054b4d773de28f920135ab38a62905e651aa1ae95c406a211cb2c2d4ed73b7d447bd67434df9e8a203e1c
|
7
|
+
data.tar.gz: 72ad6d9f50add80f100f4418695f86cb8591cbfc6bfc1e78b55db24649cf0bde3b8e36c151b732db84a01e95bdca0110fa1a4fe53c661eaba8040bd3a6c81feb
|
data/Gemfile.lock
CHANGED
data/lib/bbk/app/dispatcher.rb
CHANGED
@@ -140,7 +140,7 @@ module BBK
|
|
140
140
|
processor.call(message, results: results)
|
141
141
|
end
|
142
142
|
rescue StandardError => e
|
143
|
-
logger.error "Failed processing message in processor: #{e.inspect}"
|
143
|
+
logger.error "Failed processing message in processor: #{e.inspect}. Backrace: #{e.backtrace[0..10]}"
|
144
144
|
if processor.respond_to?(:on_error)
|
145
145
|
results = processor.on_error(message, e)
|
146
146
|
else
|
@@ -160,7 +160,7 @@ module BBK
|
|
160
160
|
|
161
161
|
def build_processing_stack
|
162
162
|
stack = proc{|msg| process_message(msg) }
|
163
|
-
middlewares.reduce(stack) do |stack, middleware|
|
163
|
+
middlewares.reverse.reduce(stack) do |stack, middleware|
|
164
164
|
if middleware.respond_to?(:build)
|
165
165
|
middleware.build(stack)
|
166
166
|
else
|
data/lib/bbk/app/factory.rb
CHANGED
@@ -13,7 +13,11 @@ module BBK
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def create
|
16
|
-
|
16
|
+
if RUBY_VERSION < '2.7' && instancekwargs.empty?
|
17
|
+
klass.new(*instanceargs)
|
18
|
+
else
|
19
|
+
klass.new(*instanceargs, **instancekwargs)
|
20
|
+
end
|
17
21
|
end
|
18
22
|
|
19
23
|
def call(*args, **kwargs)
|
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.80957
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samoilenko Yuri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|