simple_representer 1.0.1 → 1.0.2

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: 705e9764411ae7cd1ca290134487b899f2f61dca881ba1e3894c76b75caa5f76
4
- data.tar.gz: 9ee173b35eddd7b1e7fc3576159406a6980744fb66a2db1ee313a14e461b521b
3
+ metadata.gz: 7e01cb28aa31333b9ca5dfa6f679c4fbb20a357235839a697c9508499edaf0d3
4
+ data.tar.gz: a1d93935c919d3e2a4e3a33ca0bf3ed827517d60ea7c05c43871d7db41e77cff
5
5
  SHA512:
6
- metadata.gz: a1370309625b0e36f086314079af19c0115372d8eb2d774bb9291f0c0b2cb5ad22ea262035437c27a4b3e73a78f22000c02e308254eeeb68a1d263f6f01a5795
7
- data.tar.gz: 7be2dfac9d4fea4edaf3c099782847353dff4759708ce0c905e04b7a57a2de28e964a19c0f8f75616fc5ca1f597b274586693d041da354f04216ca773daacf17
6
+ metadata.gz: 3982057f5919250017b853e9c8a51bfaa9a58b59487abc05ef1270ede6c75433439132f55dfb8f8e0adb3aacf918442fb9e47850bbd504811b2d92a94cd57033
7
+ data.tar.gz: 5a2ece69ee399e432226924d986233e090d68411f080a133ba07448b5ad0076b8d92e467e8907358d71d91d06e2f4880edfcafb9b2147bf42f23cbf757df07ad
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_representer (1.0.1)
4
+ simple_representer (1.0.2)
5
5
  oj (>= 3.10.16)
6
6
 
7
7
  GEM
@@ -18,7 +18,7 @@ module SimpleRepresenter
18
18
  alias to_hash to_h
19
19
 
20
20
  def to_json(*_args)
21
- ::Oj.generate(to_h)
21
+ ::Oj.dump(to_h, { mode: :compat })
22
22
  end
23
23
  end
24
24
  end
@@ -26,7 +26,7 @@ module SimpleRepresenter
26
26
  alias to_hash to_h
27
27
 
28
28
  def to_json(*_args)
29
- ::Oj.generate(to_h)
29
+ ::Oj.dump(to_h, { mode: :compat })
30
30
  end
31
31
 
32
32
  def self.for_collection(collection, **options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleRepresenter
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_representer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karol Bąk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-23 00:00:00.000000000 Z
11
+ date: 2022-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj