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 +4 -4
- data/lib/connect_client/event.rb +3 -4
- data/lib/connect_client/version.rb +1 -1
- 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: 9b4a3136597b9e3479e07e1a7c18c4581a6e1e45
|
|
4
|
+
data.tar.gz: b92d6a592ab83c469b4ffdd2780431489bf87d97
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53db876a90160d84fcc588e862f6f9e4602a10fc8c7eaea086e5b1e4343f251e3d38e4cbe11a6c0c689f3cde963e0b69ec296da06790bd733c2bb2e05dbcae92
|
|
7
|
+
data.tar.gz: abe9c108bddf267a09c3fd51292ce445a85e4622ffbdc1af3e3b18765e09aca2edeb541e85ab6c481c4bc9890075d34848f838bda6f4a9fd669b53d126d0b7d5
|
data/lib/connect_client/event.rb
CHANGED
|
@@ -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)
|
|
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.
|
|
42
|
-
value_to_convert = value_to_convert.utc if value_to_convert.
|
|
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
|
}
|
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.
|
|
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-
|
|
11
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|