time_of_day_attr 2 → 2.0.1
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/time_of_day_attr/version.rb +1 -1
- data/lib/time_of_day_attr.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eaec6236cc4d2e7f298471e61ab3e58498dc416b
|
|
4
|
+
data.tar.gz: b53b39ebbbac6c4dcaad3df6bc0dbe163853911c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89de5c70a18f10db84f81ea5d40f4c0dbf8561194413b96b278184b37260d43f7ae02654b2a7f56374365fdc7c5f876cbfd063f516b2d5c96c9c5e43b13779bd
|
|
7
|
+
data.tar.gz: 58309d82945193823b4c48861cb16544ef03bd75eebad4641304f8a53680c57dc6d0a7c0417392e71aad1ca33ba29ec8b40ab27ae5c663a3f7e9c3c65eda7615
|
data/lib/time_of_day_attr.rb
CHANGED
|
@@ -17,7 +17,7 @@ module TimeOfDayAttr
|
|
|
17
17
|
|
|
18
18
|
delocalized_values = formats.map do |format|
|
|
19
19
|
begin
|
|
20
|
-
|
|
20
|
+
time_of_day.to_seconds(time_format(format))
|
|
21
21
|
rescue ArgumentError => e
|
|
22
22
|
return nil if e.message.include?('out of range')
|
|
23
23
|
next
|