bbk-app 1.0.0.72917 → 1.0.0.79241
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 -0
- 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: 3509b795d41c1a206f8a38ee929dc90938a862645f540cdb45a693734c08c5fb
|
4
|
+
data.tar.gz: ce18f44f0f32536abef0dc3f502d01fd954d5ae2204287c993492e6d5c8a75d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2fb11aab47682cd9f934cf7903d561f8d91eff4c33db654cbdbc9bd7ea1dbbca763bcca5ce1730fa03d3231e605451e16430bd630a86def4f7938be0ca5467f
|
7
|
+
data.tar.gz: b74a37304c6caf28742f8bc49b0e681e99c95c505965b533d333771f67dcb664a51370f65ab4333e2b02e89c68ab24d74780129fc7b1ece652c6103104d4b652
|
data/Gemfile.lock
CHANGED
data/lib/bbk/app/dispatcher.rb
CHANGED
@@ -125,6 +125,7 @@ module BBK
|
|
125
125
|
logger.debug "There are #{results.count} results to send from #{message.headers[:message_id]}..."
|
126
126
|
send_results(message, results).value
|
127
127
|
rescue StandardError => e
|
128
|
+
logger.error "Failed processing message: #{e.inspect}"
|
128
129
|
ActiveSupport::Notifications.instrument 'dispatcher.exception', msg: message, exception: e
|
129
130
|
message.nack(error: e)
|
130
131
|
close if force_quit
|
@@ -139,6 +140,7 @@ module BBK
|
|
139
140
|
processor.call(message, results: results)
|
140
141
|
end
|
141
142
|
rescue StandardError => e
|
143
|
+
logger.error "Failed processing message in processor: #{e.inspect}"
|
142
144
|
if processor.respond_to?(:on_error)
|
143
145
|
results = processor.on_error(message, e)
|
144
146
|
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.79241
|
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-
|
11
|
+
date: 2022-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|