bbk-app 1.1.1.273338 → 1.1.1.276745

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: 24ff208a0dc8cca13439f959b8af82bd3498861bb6657fa95199b4ef20c33c8d
4
- data.tar.gz: 84cd697b4acdcd51c0605f6a2604e07aeb87a357f5d4958a5d38066bd306c8bb
3
+ metadata.gz: e9f6653841e15c3d665618eecbaa2871f41bb29db099d9be491e81b91e831e04
4
+ data.tar.gz: 421748dca3cfbad32fde2dc4622667109050eb0a36e9452145d9ef24d1eb7fb5
5
5
  SHA512:
6
- metadata.gz: 12998471f24e21b1a9c09283378908a45194c41b82da5d4389b2907ebfdf7442c297262acb6fa089f5ccc97322f45030d48412e98bd3d9c37fbdfad91e7e178b
7
- data.tar.gz: 650688e1055b45d0207c6bac6d0a73bb3f1dc397a8b4022bfcf2fa7a17b4986965121a48a5698e5dc69bacc4d186653b61c18c89c926d4a55e62a518a8e9d8a2
6
+ metadata.gz: 510bdb6f52de4776342ede84bd90351d359a1a7836ad0358ac6e89edc22ee08e6f42bfc8e8a928808c21c3b25e119d27e45f82b239c1f4f701487ef7b38e9a9a
7
+ data.tar.gz: 630424d57d327b58cbaadfd2ff63ce50699d7a9a7a4ca7725c9cd17bfe3fae9a96209e3ed3490f080de9a0e62da8d21b980162cbde3fcc83ac43af861c6a3ecb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-app (1.1.1.273338)
4
+ bbk-app (1.1.1.276745)
5
5
  activesupport (>= 6.0)
6
6
  bbk-utils (> 1.0.1)
7
7
  oj
@@ -43,6 +43,10 @@ module BBK
43
43
  raise NotImplementedError.new("#{self.class.name} does not implement #{__method__} method")
44
44
  end
45
45
 
46
+ def protocol
47
+ raise NotImplementedError.new("#{self.class.name} does not implement #{__method__} method")
48
+ end
49
+
46
50
  def reply_message_id(addon)
47
51
  Digest::SHA1.hexdigest("#{addon}#{message_id}")
48
52
  end
@@ -54,6 +58,10 @@ module BBK
54
58
  }
55
59
  end
56
60
 
61
+ def inspect # :nodoc:
62
+ "#<#{self.class.name} @consumer=#{consumer.class.name}, @headers=#{headers.inspect}>"
63
+ end
64
+
57
65
  end
58
66
  end
59
67
  end
@@ -0,0 +1,31 @@
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 protocol
11
+ :test
12
+ end
13
+
14
+ def message_id
15
+ headers[:message_id]
16
+ end
17
+
18
+ def reply_to
19
+ headers[:reply_to] || user_id
20
+ end
21
+
22
+ def user_id
23
+ headers[:user_id]
24
+ end
25
+
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+
@@ -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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbk-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.273338
4
+ version: 1.1.1.276745
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-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -302,6 +302,8 @@ files:
302
302
  - lib/bbk/app/processors/ping.rb
303
303
  - lib/bbk/app/processors/pong.rb
304
304
  - lib/bbk/app/proxy_logger.rb
305
+ - lib/bbk/app/spec.rb
306
+ - lib/bbk/app/spec/dispatcher/message.rb
305
307
  - lib/bbk/app/spec/shared/dispatcher/message.rb
306
308
  - lib/bbk/app/thread_pool.rb
307
309
  - lib/bbk/app/version.rb