bbk-app 1.2.0.352691 → 1.2.0.352696
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bbk/app/rails.rb +25 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 149534dd1ad779c980751359614ac8f9d0873e1a71533c7b08a914af2830bac6
|
|
4
|
+
data.tar.gz: 10d7226a49bb827412a434776e9e041855a6ec114c8b15c9cacf325f088816f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf5bce94db92b39db3dddcb61e6a9b00d705d5f10b8b6984b5f9565535281bf2996e3573a558dd9cf8ee42e07b30602c2d4b60bb1ea6e6ba2074541e1d11e1c6
|
|
7
|
+
data.tar.gz: 84d76b31c5904a706ca09e8f1c6913f21d57c65fe1da456d3a66a3778c3abe46a540deb876aed8fe439acd6c26ecf3207c3b08883c2e72eaf534f5a04e513989
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# skip coverage
|
|
2
|
+
|
|
3
|
+
require "active_job/serializers"
|
|
4
|
+
|
|
5
|
+
module BBK
|
|
6
|
+
module App
|
|
7
|
+
module Rails
|
|
8
|
+
class MessageSerializer < ::ActiveJob::Serializers::ObjectSerializer
|
|
9
|
+
|
|
10
|
+
def serialize(message)
|
|
11
|
+
super("value" => Marshal.dump(message))
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def deserialize(hash)
|
|
15
|
+
Marshal.load(hash["value"])
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def klass
|
|
19
|
+
BBK::App::Dispatcher::Message
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
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.2.0.
|
|
4
|
+
version: 1.2.0.352696
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samoilenko Yuri
|
|
@@ -303,6 +303,7 @@ files:
|
|
|
303
303
|
- lib/bbk/app/processors/ping.rb
|
|
304
304
|
- lib/bbk/app/processors/pong.rb
|
|
305
305
|
- lib/bbk/app/proxy_logger.rb
|
|
306
|
+
- lib/bbk/app/rails.rb
|
|
306
307
|
- lib/bbk/app/spec.rb
|
|
307
308
|
- lib/bbk/app/spec/dispatcher/message.rb
|
|
308
309
|
- lib/bbk/app/spec/shared/dispatcher/message.rb
|