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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f9eea9c07b40ea9f36ee9fe8b30120c6137b1895ce22d495f09e81ce6e9341b
4
- data.tar.gz: 4a38088d47030045d0639eab235641050663365b3fb0a3ec407f2a9ea0512507
3
+ metadata.gz: fb6108f9e95a6d10ffe022dc6eff5f223c18cb6dc0bcfb0b382040db2d32e0f4
4
+ data.tar.gz: 393fd5171cdab7af57c349c25522dcc4b496d6bc12e4b7701dfe7d5d53dcae3a
5
5
  SHA512:
6
- metadata.gz: 0e424f3f4fde908aea9364baf0267ef0f0750084f91abaddb1585c251ac2b694b6ea36fc74f7db4ecb77bad1749cec9b3079704f23b96d1d801f9fc75f12fa64
7
- data.tar.gz: 6bbc72a886f0931bf89fe0988b5f360ea55e8911c759cc71f3d2d1f0b965f112310168989f2021f42d6e5783ce55eeee58a44b41dfa6a532ad328920eafff1b5
6
+ metadata.gz: b8ac47e367247fe1f3965952d7ceb79af0315ce00c5054b4d773de28f920135ab38a62905e651aa1ae95c406a211cb2c2d4ed73b7d447bd67434df9e8a203e1c
7
+ data.tar.gz: 72ad6d9f50add80f100f4418695f86cb8591cbfc6bfc1e78b55db24649cf0bde3b8e36c151b732db84a01e95bdca0110fa1a4fe53c661eaba8040bd3a6c81feb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-app (1.0.0.78020)
4
+ bbk-app (1.0.0.80957)
5
5
  activesupport
6
6
  bbk-utils (> 1.0.1)
7
7
  timeouter
@@ -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
@@ -13,7 +13,11 @@ module BBK
13
13
  end
14
14
 
15
15
  def create
16
- klass.new(*instanceargs, **instancekwargs)
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.78020
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-01 00:00:00.000000000 Z
11
+ date: 2022-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport