connect_client 0.2.1 → 0.2.2

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: f4f5f77d9bb4be74830e2c2a4921f01ebcf6543b
4
- data.tar.gz: 0c782098f59c0f62db7fcd46b40186d739417415
3
+ metadata.gz: 9b4a3136597b9e3479e07e1a7c18c4581a6e1e45
4
+ data.tar.gz: b92d6a592ab83c469b4ffdd2780431489bf87d97
5
5
  SHA512:
6
- metadata.gz: 88c98456e2bd3446e63693f84bb5d00633be29a590e3cbdb4ea569d4f4ebc26ea3bade73667fce044d449a0fc26b8d586ee2f595043a4c6994cbe9fe1b85dec2
7
- data.tar.gz: 65e8ab5e8bb0287257fe6e8395575a3d9945e57be2e3b22eebc1f1b09a31ac22be3f8dcbeff687e03fc49b81eedaf59ac946ab1b7227cd564e99390e9a7964a6
6
+ metadata.gz: 53db876a90160d84fcc588e862f6f9e4602a10fc8c7eaea086e5b1e4343f251e3d38e4cbe11a6c0c689f3cde963e0b69ec296da06790bd733c2bb2e05dbcae92
7
+ data.tar.gz: abe9c108bddf267a09c3fd51292ce445a85e4622ffbdc1af3e3b18765e09aca2edeb541e85ab6c481c4bc9890075d34848f838bda6f4a9fd669b53d126d0b7d5
@@ -36,11 +36,10 @@ module ConnectClient
36
36
  value_to_convert = value
37
37
  map_utc = lambda { |value_item| utc_converter.call(value_item) }
38
38
 
39
- return value_to_convert.map(&map_utc) if value_to_convert.respond_to? :map
39
+ return value_to_convert.map(&map_utc) if value_to_convert.respond_to? :map
40
40
 
41
- value_to_convert = value_to_convert.to_time if value_to_convert.respond_to? :to_time
42
- value_to_convert = value_to_convert.utc if value_to_convert.respond_to? :utc
43
- value_to_convert = value_to_convert.iso8601 if value_to_convert.respond_to? :iso8601
41
+ value_to_convert = value_to_convert.to_time if value_to_convert.is_a?(DateTime) || value_to_convert.is_a?(Date)
42
+ value_to_convert = value_to_convert.utc.iso8601 if value_to_convert.is_a? Time
44
43
 
45
44
  value_to_convert
46
45
  }
@@ -1,3 +1,3 @@
1
1
  module ConnectClient
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connect_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Connect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-21 00:00:00.000000000 Z
11
+ date: 2015-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json