eventq_base 1.14.0 → 1.14.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1fe9490b626641ff8d704bdfd304cd593bb95de
|
4
|
+
data.tar.gz: d2b97f7554e814a004f4b36aba06f62f8d8718ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a74dbe386ec32f1afe4551092360bcd3bb1c49858e3168ecbbf850f40bea0a030ef1386a05585c9a5077006316a2f40618752ad6ec7a20022e03c8b2ccb543e2
|
7
|
+
data.tar.gz: 4b21d049118ff2a985b26ce6ef2e0eb3d884af7fc1cfb52397fed377120987ed74bdb4809b559238cf0d893283b3367d2dd3ee6ec4abae2b6804cef4af8c7d70
|
@@ -3,7 +3,6 @@ module EventQ
|
|
3
3
|
class JsonSerializationProvider
|
4
4
|
|
5
5
|
def initialize
|
6
|
-
require 'json'
|
7
6
|
require 'class_kit'
|
8
7
|
require 'hash_kit'
|
9
8
|
@class_kit_helper = ClassKit::Helper.new
|
@@ -11,6 +10,7 @@ module EventQ
|
|
11
10
|
end
|
12
11
|
|
13
12
|
def serialize(object)
|
13
|
+
require 'json'
|
14
14
|
JSON.dump(object_to_hash(object))
|
15
15
|
end
|
16
16
|
|
@@ -3,15 +3,16 @@ module EventQ
|
|
3
3
|
class OjSerializationProvider
|
4
4
|
|
5
5
|
def initialize
|
6
|
-
require 'oj'
|
7
6
|
@json_serializer = EventQ::SerializationProviders::JsonSerializationProvider.new
|
8
7
|
end
|
9
8
|
|
10
9
|
def serialize(object)
|
10
|
+
require 'oj'
|
11
11
|
return Oj.dump(object, mode: :object)
|
12
12
|
end
|
13
13
|
|
14
14
|
def deserialize(json)
|
15
|
+
require 'oj'
|
15
16
|
begin
|
16
17
|
return Oj.load(json)
|
17
18
|
rescue Oj::ParseError
|
data/lib/eventq_base/version.rb
CHANGED