restforce-db 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a757b3b70679ca9163fa7a856cc8e9f7228ce335
4
- data.tar.gz: 0d6b4a908dccf33b1c15ad3c919c162a6de3411b
3
+ metadata.gz: dfc392eb1d43c78cb82873f3462c77f92040cac1
4
+ data.tar.gz: aaa229b2207cbf203dad3fb10bb65d407afae437
5
5
  SHA512:
6
- metadata.gz: 09a9d4fd95e92f629ac74e10efbef8e77011fb646f5548c813bf1d0375fcfcb4cb86eaca3cf3a22c94ec878f10b2f2dc2d0400e6a05600dc1a721ac2b9ad0d00
7
- data.tar.gz: 78875a23c150314c0101a25b30cf9cd5c9bd4292853390290bbb396e587c1f4a9f7ea2cf4f0db9d8db0e4f1b6d744d5e3b4a679c1b87bcc7d807a7bb25c53b0c
6
+ metadata.gz: f35c317c7c078428840092490997eadad217291452f0087c720cc9930788a6063cff4ca430db559c3ec01082a0fcea21a3612199fc77abb09f04ab56ff9dfa1e
7
+ data.tar.gz: 27c60936fdd1edc90989c184b29aa75664f0dcff228bd8b306b22a5958070632530344e5b908595a24a2100a4c714c5f379148a492c01fae317edb116c5034d3
@@ -80,7 +80,8 @@ module Restforce
80
80
  @fields.each_with_object({}) do |(attribute, mapping), converted|
81
81
  next unless attributes.key?(attribute)
82
82
  value = attributes[attribute]
83
- value = value.respond_to?(:iso8601) ? value.utc.iso8601 : value
83
+ value = value.respond_to?(:utc) ? value.utc : value
84
+ value = value.respond_to?(:iso8601) ? value.iso8601 : value
84
85
 
85
86
  converted[mapping] = value
86
87
  end
@@ -3,7 +3,7 @@ module Restforce
3
3
  # :nodoc:
4
4
  module DB
5
5
 
6
- VERSION = "1.0.3"
6
+ VERSION = "1.0.4"
7
7
 
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restforce-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Horner