freddy 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/freddy.gemspec +1 -1
- data/lib/freddy/payload.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f70c4bc02ac5f44642acf811ecc4aa895d76327
|
4
|
+
data.tar.gz: 56373103982583fc804f8a90783de797f8cc371b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e7c1f7fd21ef20f040af3cfadfcf42c9e8e2e44b05d08617e1225d60eb75f9b223dc6cade579bffa0dd08708da89d71896ca4d463d0f44be15ffb81535a047d
|
7
|
+
data.tar.gz: c3f9e83af176f8c8731adf77449e6b32c6adddce91dbb1025db00156bf45c96caac47b68c93607e311624f06a8ed39c43bc878678b9bc4a9d4df001fd40547d4
|
data/freddy.gemspec
CHANGED
data/lib/freddy/payload.rb
CHANGED
@@ -22,12 +22,15 @@ class Freddy
|
|
22
22
|
end
|
23
23
|
|
24
24
|
class OjAdapter
|
25
|
+
PARSE_OPTIONS = { symbol_keys: true }
|
26
|
+
DUMP_OPTIONS = { mode: :compat, time_format: :xmlschema, second_precision: 6 }
|
27
|
+
|
25
28
|
def self.parse(payload)
|
26
|
-
Oj.strict_load(payload,
|
29
|
+
Oj.strict_load(payload, PARSE_OPTIONS)
|
27
30
|
end
|
28
31
|
|
29
32
|
def self.dump(payload)
|
30
|
-
Oj.dump(payload,
|
33
|
+
Oj.dump(payload, DUMP_OPTIONS)
|
31
34
|
end
|
32
35
|
end
|
33
36
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Salemove TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|