bbk-app 1.1.1.273294 → 1.1.1.273338

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: 4ae2e240a1d5d65204508e8afd18535bd3fc3187fbbaf2c62173a2814da2fa47
4
- data.tar.gz: 43d196ddb7f225440a4037aefb77d37d982bad90431e64067eeb7e776c217ec4
3
+ metadata.gz: 24ff208a0dc8cca13439f959b8af82bd3498861bb6657fa95199b4ef20c33c8d
4
+ data.tar.gz: 84cd697b4acdcd51c0605f6a2604e07aeb87a357f5d4958a5d38066bd306c8bb
5
5
  SHA512:
6
- metadata.gz: d43bf2bf2e832eccc98e755c87da7634c8453ace1e87b4457c4c7df90a3524d39b3e95eb593c29b519c7e8622a4fed7105af1cc2aab972da5a00c2370e0fec75
7
- data.tar.gz: 5ffcb34418265115f5fa51e7dac019c7694edbf678b804aa81658b108179ff61f58c04bee2eb3a245687d047f47f1606bfb4e3afe50ecb6fba27e59179eb79db
6
+ metadata.gz: 12998471f24e21b1a9c09283378908a45194c41b82da5d4389b2907ebfdf7442c297262acb6fa089f5ccc97322f45030d48412e98bd3d9c37fbdfad91e7e178b
7
+ data.tar.gz: 650688e1055b45d0207c6bac6d0a73bb3f1dc397a8b4022bfcf2fa7a17b4986965121a48a5698e5dc69bacc4d186653b61c18c89c926d4a55e62a518a8e9d8a2
data/Gemfile.lock CHANGED
@@ -1,9 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-app (1.1.1.273294)
5
- activesupport
4
+ bbk-app (1.1.1.273338)
5
+ activesupport (>= 6.0)
6
6
  bbk-utils (> 1.0.1)
7
+ oj
7
8
  timeouter
8
9
 
9
10
  GEM
@@ -32,6 +33,7 @@ GEM
32
33
  bbk-utils (1.0.1.147183)
33
34
  activesupport (>= 6.0)
34
35
  russian
36
+ bigdecimal (3.1.8)
35
37
  bunny (2.19.0)
36
38
  amq-protocol (~> 2.3, >= 2.3.1)
37
39
  sorted_set (~> 1, >= 1.0.2)
@@ -66,6 +68,10 @@ GEM
66
68
  launchy (2.5.0)
67
69
  addressable (~> 2.7)
68
70
  minitest (5.15.0)
71
+ oj (3.16.7)
72
+ bigdecimal (>= 3.0)
73
+ ostruct (>= 0.2)
74
+ ostruct (0.6.1)
69
75
  parallel (1.21.0)
70
76
  parser (3.0.3.2)
71
77
  ast (~> 2.4.1)
@@ -1,3 +1,5 @@
1
+ require 'oj'
2
+
1
3
  module BBK
2
4
  module App
3
5
  class Dispatcher
@@ -15,7 +17,7 @@ module BBK
15
17
  # Lazy body parsing
16
18
  def payload
17
19
  @payload ||= begin
18
- JSON.parse(@body).with_indifferent_access
20
+ Oj.load(@body).with_indifferent_access
19
21
  rescue StandardError
20
22
  {}.with_indifferent_access
21
23
  end
@@ -11,8 +11,8 @@ RSpec.shared_examples 'BBK::App::Dispatcher::Message' do
11
11
 
12
12
  let(:headers) do
13
13
  {
14
- user_id: SecureRandom.hex,
15
- reply_to: SecureRandom.hex,
14
+ user_id: SecureRandom.hex,
15
+ reply_to: SecureRandom.hex,
16
16
  message_id: SecureRandom.uuid
17
17
  }
18
18
  end
@@ -42,8 +42,8 @@ RSpec.shared_examples 'BBK::App::Dispatcher::Message' do
42
42
  end
43
43
 
44
44
  describe 'methods' do
45
- it { is_expected.to have_attributes(delivery_info: delivery_info) }
46
- it { is_expected.to have_attributes(headers: headers) }
45
+ it { is_expected.to have_attributes(delivery_info: include(delivery_info)) }
46
+ it { is_expected.to have_attributes(headers: include(headers)) }
47
47
  it { is_expected.to have_attributes(body: body) }
48
48
  it { is_expected.to have_attributes(payload: payload) }
49
49
 
@@ -94,3 +94,4 @@ RSpec.shared_examples 'BBK::App::Dispatcher::Message' do
94
94
  end
95
95
  end
96
96
  end
97
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbk-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.273294
4
+ version: 1.1.1.273338
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoilenko Yuri
@@ -12,6 +12,20 @@ date: 2024-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '6.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '6.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: oj
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - ">="