search_flip 4.0.0.beta4 → 4.0.0.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/search_flip/json.rb +1 -0
- data/lib/search_flip/version.rb +1 -1
- data/spec/search_flip/json_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 938e1745f8cfe0173c76f26a4f15ab7e62781fd627dcccb2c2523db7f8ca51bf
|
4
|
+
data.tar.gz: 2a8980bc0de4db9cb081c5186ed94bbee489a470ea30992a9e8a9c248563d3e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d622f6d843b9975a66af4ee3d937f1eb60b255d6c5017479dae583543d8f4dbba9608209513da94ba95a3aa3323714a0c1a9b21e594f1f4a2be61844864da3c
|
7
|
+
data.tar.gz: b7835e3adfd35074111e481e3ba54272e59a764a5478c569bc516aa4a8455c939618347a194802a9d6030a91bc52430bf7fac72b00c3ebca1eb09cb13021f21a
|
data/lib/search_flip/json.rb
CHANGED
data/lib/search_flip/version.rb
CHANGED
@@ -4,7 +4,7 @@ RSpec.describe SearchFlip::JSON do
|
|
4
4
|
describe ".generate" do
|
5
5
|
it "encodes timestamps correctly" do
|
6
6
|
Timecop.freeze "2020-06-01 12:00:00 UTC" do
|
7
|
-
expect(described_class.generate(timestamp: Time.now.utc)).to eq('{"timestamp":"2020-06-01T12:00:
|
7
|
+
expect(described_class.generate(timestamp: Time.now.utc)).to eq('{"timestamp":"2020-06-01T12:00:00.000Z"}')
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
@@ -19,7 +19,7 @@ RSpec.describe SearchFlip::JSON do
|
|
19
19
|
|
20
20
|
described_class.generate(payload)
|
21
21
|
|
22
|
-
expect(Oj).to have_received(:dump).with(payload, mode: :custom, time_format: :xmlschema, bigdecimal_as_decimal: false)
|
22
|
+
expect(Oj).to have_received(:dump).with(payload, mode: :custom, use_to_json: true, time_format: :xmlschema, bigdecimal_as_decimal: false)
|
23
23
|
end
|
24
24
|
|
25
25
|
it "generates json" do
|
@@ -39,7 +39,7 @@ RSpec.describe SearchFlip::JSON do
|
|
39
39
|
|
40
40
|
described_class.parse(payload)
|
41
41
|
|
42
|
-
expect(Oj).to have_received(:load).with(payload, mode: :custom, time_format: :xmlschema, bigdecimal_as_decimal: false)
|
42
|
+
expect(Oj).to have_received(:load).with(payload, mode: :custom, use_to_json: true, time_format: :xmlschema, bigdecimal_as_decimal: false)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|