cerulean 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cerulean.rb +2 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a4616c35111565648932d65bbcd25f0a448d956
4
- data.tar.gz: 67c39dd6da81f7fcc2301d9affd521fb33ca3265
3
+ metadata.gz: 955c05a76bb69b3b7d9771eb31afd8cc94d90f84
4
+ data.tar.gz: 6e2b6d801ff24d8fcf9b5e76f28714dd8ea47a49
5
5
  SHA512:
6
- metadata.gz: e1591db705f1bc548406ff550b333f1eacbfa1d4c09caf1cd5676904e909d746fcb8c9226f44453a92e252c9ad24ef3495d44313eb642a260bb88e5d6c434b4b
7
- data.tar.gz: f4e54a18cb7da74eb9dbafef2de8b5122f8d6ee23ac54bec8e08bb920a030d25abe24c11b724c79107993f5e880ea08cfa69f347bd4ab853309dcf198ebc50cf
6
+ metadata.gz: 9e65d60ea860ddadfdffe8a5e4a96eca8b9882e1725cf0d03d2126ab4d7c5c201f45e1835798fc711726154de2adcf55c56f4cfe10e3d00cfa541031056e5f30
7
+ data.tar.gz: 887f39fe48f7897df1687ee7835ed2f1c64b2360585a183157fefba50a989e537dff05afd495c2504c66e95858caac00f716d6d21dddd1b15902593b2d4da5a5
data/lib/cerulean.rb CHANGED
@@ -99,6 +99,8 @@ module Cerulean
99
99
  val
100
100
  elsif type == Date
101
101
  Date.parse(val) rescue nil
102
+ elsif type == DateTime
103
+ DateTime.parse(val) rescue nil
102
104
  else
103
105
  Kernel.send(type.to_s, val) rescue nil
104
106
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cerulean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kestell