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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69cad8d1350331740b83e02e458032607d66c7d5
4
- data.tar.gz: ea149450c8ec4845362c231d3359e6798ac63d5d
3
+ metadata.gz: 7f70c4bc02ac5f44642acf811ecc4aa895d76327
4
+ data.tar.gz: 56373103982583fc804f8a90783de797f8cc371b
5
5
  SHA512:
6
- metadata.gz: c33ce48d240d3a4810e2972deb4fc95ad13445bb100f3936adc7ec8c728629f6a6df3821db2c53559b2d5d032c464f7e77b08cb4821cc0160390426767fa8185
7
- data.tar.gz: 333c02f7d0769d9dc3b017c45fcda3d209e1672ce56a47b36f550e73bdf943cef954e51b22942a768b338c3b8a3fd4f4ad1d7d14c0e92d883e140320e76984b0
6
+ metadata.gz: 1e7c1f7fd21ef20f040af3cfadfcf42c9e8e2e44b05d08617e1225d60eb75f9b223dc6cade579bffa0dd08708da89d71896ca4d463d0f44be15ffb81535a047d
7
+ data.tar.gz: c3f9e83af176f8c8731adf77449e6b32c6adddce91dbb1025db00156bf45c96caac47b68c93607e311624f06a8ed39c43bc878678b9bc4a9d4df001fd40547d4
data/freddy.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  else
9
9
  spec.name = "freddy"
10
10
  end
11
- spec.version = '1.0.0'
11
+ spec.version = '1.0.1'
12
12
  spec.authors = ["Salemove TechMovers"]
13
13
  spec.email = ["techmovers@salemove.com"]
14
14
  spec.description = %q{Messaging API}
@@ -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, symbol_keys: true)
29
+ Oj.strict_load(payload, PARSE_OPTIONS)
27
30
  end
28
31
 
29
32
  def self.dump(payload)
30
- Oj.dump(payload, mode: :compat, time_format: :xmlschema)
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.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-01-30 00:00:00.000000000 Z
11
+ date: 2017-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler