opening_hours_converter 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opening_hours_converter/year.rb +2 -2
- 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: 0522647daec6e61185f989eaafa5d941598197a3
|
4
|
+
data.tar.gz: 553d55c9362adf5c5ca5b599f96c09b29046ad1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: facfbcdd2e95cb34d3cd502688b77daddd063893e50258af80af586f4c104f371cf7e3f9c492b42fe142a2828bb917d1deb34505a531a47973d8225ffdc20a63
|
7
|
+
data.tar.gz: 94dd7f5933622f28dad516d43880f693f698b15591bd52e3876ef2e94b66c376bb55e24c142d19722b24f5ffaba3ddba82d62ea4b56c4d35446f97e877467385
|
@@ -288,8 +288,8 @@ module OpeningHoursConverter
|
|
288
288
|
end
|
289
289
|
end
|
290
290
|
elsif wide_interval.type == "day"
|
291
|
-
if wide_interval.end.nil? || wide_interval.start[:month] == wide_interval.end[:month]
|
292
|
-
if wide_interval.start[:day] == wide_interval.end[:day]
|
291
|
+
if wide_interval.end.nil? || !wide_interval.end.nil? && wide_interval.start[:month] == wide_interval.end[:month]
|
292
|
+
if wide_interval.end.nil? || !wide_interval.end.nil? && wide_interval.start[:day] == wide_interval.end[:day]
|
293
293
|
years[wide_interval.start[:year]][wide_interval.start[:month]-1][wide_interval.start[:day]-1] = true
|
294
294
|
else
|
295
295
|
for day in wide_interval.start[:day]-1..wide_interval.end[:day]-1
|