chiketto 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chiketto/attr_attribute.rb +6 -2
- data/lib/chiketto/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: 57f5b5eb3b13728ffb85f6a2146f052797e30749
|
4
|
+
data.tar.gz: 9be3fabc76bbe6a770845fc0ab68bcc267485f66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e29c673598647b3e60d3a70d91b8dc4cbfa8f9ba846acf1f2f86261cd922a40e6689a29e3f73c0448577a997b869cab2d52f3d0fc9e64f0a484ad6f700254159
|
7
|
+
data.tar.gz: 71f85706f0d623053197bb3af0a59bc88d76094f890376354b0b85f18b8e593fc41911600f1dd44f0254261bb931a68af4c884fd6c25a0ea09ce34914dcd0bc0
|
@@ -19,8 +19,12 @@ module Chiketto
|
|
19
19
|
date = instance_variable_get("@#{value}")
|
20
20
|
return date if date.nil?
|
21
21
|
|
22
|
-
|
23
|
-
|
22
|
+
if date.is_a?(Hash)
|
23
|
+
date = date['local']
|
24
|
+
DateTime.strptime date, '%FT%T'
|
25
|
+
else
|
26
|
+
DateTime.strptime date, '%FT%TZ'
|
27
|
+
end
|
24
28
|
end
|
25
29
|
end
|
26
30
|
end
|
data/lib/chiketto/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chiketto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Radford
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|