bbk-app 1.1.1.273312 → 1.1.1.273627

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: 716152cd0c1cef66d27cb033123d1ed53c6e9337014d289767199d582584a9d4
4
- data.tar.gz: daa09c9c4dd3c2b312975ad7419ae66d90753ef6c76e46995126ceb019e2b5c0
3
+ metadata.gz: ad3ba707fdc41fa61e8b3b1a7abeed1821248f6f9ef278744226d97acc8f1270
4
+ data.tar.gz: 0030a29db3163f6579c3fc78bd1314b4b1762ea828bf7984f92cf9cb743a64f5
5
5
  SHA512:
6
- metadata.gz: 4c1f61c0cce0b42a3aa2e05de4ee6cd3d8c2ff6110f0ba07a95e28dc0cca3abcfcd68475a78c2c3afdcc68130f833a242ec09f6e476f57718681878ca8cbef2d
7
- data.tar.gz: f48a3f847ddc875a62118cfc8c1a4f4566e6ee3fab4d5b66177adeaee0a2ed5af7f9d24e68ef8b024ac712abed90ff61f91126af9ea1e6d645190ec8122b4069
6
+ metadata.gz: b3143de48726cecb3789bf08614296b35a4961e274013189a750dfdc5799d8ecd085b2fc93d63667e80aac2f684df8f85ccbe322905294d84f28b62896f3cb75
7
+ data.tar.gz: '058e97464eec4861b97d63d6264e1dbc0707993d6df8abe93c4e8f0cebe9a0692ad0db1c82ac775ca856ba42543208fd095f0d4659274a2e9afc64342a86ce3f'
data/Gemfile.lock CHANGED
@@ -1,9 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-app (1.1.1.273312)
5
- activesupport
4
+ bbk-app (1.1.1.273627)
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
@@ -52,6 +54,10 @@ module BBK
52
54
  }
53
55
  end
54
56
 
57
+ def inspect # :nodoc:
58
+ "#<#{self.class.name} @consumer=#{consumer.class.name}, @headers=#{headers.inspect}>"
59
+ end
60
+
55
61
  end
56
62
  end
57
63
  end
@@ -0,0 +1,27 @@
1
+ require 'oj'
2
+
3
+ module BBK
4
+ module App
5
+ module Spec
6
+ class Dispatcher
7
+ class Message < BBK::App::Dispatcher::Message
8
+
9
+
10
+ def message_id
11
+ headers[:message_id]
12
+ end
13
+
14
+ def reply_to
15
+ headers[:reply_to] || user_id
16
+ end
17
+
18
+ def user_id
19
+ headers[:user_id]
20
+ end
21
+
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+
@@ -0,0 +1,9 @@
1
+ require 'bbk/app/spec/dispatcher/message'
2
+
3
+ module BBK
4
+ module App
5
+ module Spec
6
+ end
7
+ end
8
+ end
9
+
metadata CHANGED
@@ -1,17 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbk-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.273312
4
+ version: 1.1.1.273627
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoilenko Yuri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-15 00:00:00.000000000 Z
11
+ date: 2024-11-19 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
  - - ">="
@@ -288,6 +302,8 @@ files:
288
302
  - lib/bbk/app/processors/ping.rb
289
303
  - lib/bbk/app/processors/pong.rb
290
304
  - lib/bbk/app/proxy_logger.rb
305
+ - lib/bbk/app/spec.rb
306
+ - lib/bbk/app/spec/dispatcher/message.rb
291
307
  - lib/bbk/app/spec/shared/dispatcher/message.rb
292
308
  - lib/bbk/app/thread_pool.rb
293
309
  - lib/bbk/app/version.rb