eventq_base 1.14.0 → 1.14.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3e5c917ca2787465de975d96928506a6a16d5ff
4
- data.tar.gz: 0bfb9718b6c9812070074d7c571b82293a5427ec
3
+ metadata.gz: c1fe9490b626641ff8d704bdfd304cd593bb95de
4
+ data.tar.gz: d2b97f7554e814a004f4b36aba06f62f8d8718ea
5
5
  SHA512:
6
- metadata.gz: 7427090df25a14be11811506a4a278d9130ab08b94ec7ff973257a5784d3f1f9f04a09929f8f3863304f00123f7e91099bc7e549cbd9619ec57f25b81f9a9404
7
- data.tar.gz: 205fe9de91d06cb66b4e249bf8ccf976317c8c4b154dd00127cf4db14748caeb5e69863b5a175b6371f331c06387835c3b776d5ba3de2aa6b500385efaedb651
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
@@ -1,3 +1,3 @@
1
1
  module EventqBase
2
- VERSION = "1.14.0"
2
+ VERSION = "1.14.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventq_base
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage