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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bbk/app/dispatcher/message.rb +8 -0
- data/lib/bbk/app/spec/dispatcher/message.rb +31 -0
- data/lib/bbk/app/spec.rb +9 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9f6653841e15c3d665618eecbaa2871f41bb29db099d9be491e81b91e831e04
|
4
|
+
data.tar.gz: 421748dca3cfbad32fde2dc4622667109050eb0a36e9452145d9ef24d1eb7fb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 510bdb6f52de4776342ede84bd90351d359a1a7836ad0358ac6e89edc22ee08e6f42bfc8e8a928808c21c3b25e119d27e45f82b239c1f4f701487ef7b38e9a9a
|
7
|
+
data.tar.gz: 630424d57d327b58cbaadfd2ff63ce50699d7a9a7a4ca7725c9cd17bfe3fae9a96209e3ed3490f080de9a0e62da8d21b980162cbde3fcc83ac43af861c6a3ecb
|
data/Gemfile.lock
CHANGED
@@ -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
|
+
|
data/lib/bbk/app/spec.rb
ADDED
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.
|
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-
|
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
|