deterministic 0.5.0 → 0.5.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: 53f5ad82104a1c379dd88c86c926bfb62ceca2e0
4
- data.tar.gz: d7efc5de945b130c59a7005d182e263622d46815
3
+ metadata.gz: ea5e727767335fce5640ac6da26e37de677d0ff6
4
+ data.tar.gz: e69e233703fd7118973dbd53b616ddd880e2a234
5
5
  SHA512:
6
- metadata.gz: 9459fad3f2cb626638b2cdbe6838659c9d86306884df71b8a455c31be146f71e40bd5241d65cedd5c132ec1e4b13c090b231964e79ae03409d6a16cde23d3123
7
- data.tar.gz: 7a04167f5f8856a7026e157cb20c4bbeebb5a669f0e5e8bc236ccc6efb1a7515a9abf0600bb7eef0821df414148b833f17e54dfbeb32c5d80e1a5dc7cdb55e69
6
+ metadata.gz: 412b77216e1ff73b95fef9c78d5707f9a37a1208700a6b3e388f2dcd37ba0c48347d1290920b43d1317b8629bcdc7b7dc9dea91adb5f7383cbfce72920ef9fb0
7
+ data.tar.gz: 22105ff82ce5d2a0e1c767853fb97fcb8669e5d2e4042721e6633f6cabf08296b3e36efedf4de6cad08d7d662dd734cfef4d6aa4346aa261d4a3cb24fc4f21bd
@@ -20,9 +20,9 @@ module Deterministic
20
20
  protected :new
21
21
  end
22
22
 
23
- def to_json
23
+ def to_json(*args)
24
24
  name = self.class.name.split('::')[-1]
25
- "{\"#{name}\":#{value.to_json}}"
25
+ "{\"#{name}\":#{value.to_json(*args)}}"
26
26
  end
27
27
 
28
28
  def to_s
@@ -1,3 +1,3 @@
1
1
  module Deterministic
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -31,6 +31,7 @@ describe Deterministic::Success do
31
31
 
32
32
  it "#to_json" do
33
33
  expect(Success({a: 1}).to_json).to eq '{"Success":{"a":1}}'
34
+ expect([Success(1)].to_json).to eq '[{"Success":1}]'
34
35
  end
35
36
 
36
37
  it "#to_s" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deterministic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Zolnierek