opening_hours_converter 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d480aad01bd570933cf1863d32b4d3f9b4ced580
|
4
|
+
data.tar.gz: e9bd662f51959bec4487fbe965319ce35adec3b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8ba54372c95bd43926a72a30ce676b64a020557535e1b5cc47bbc5cbcddb6743aa835a728f9cc317856f040f844153e893a27c48fea241d9905a2a43cd93fc6
|
7
|
+
data.tar.gz: a5dd981c0319ba802ab48ea2832cbfaa7968f68d91d4df0450c4731024f9b561bbc95d981c41851d4a590455ad6cc785668458dd467abfadef6fcbae9897d141
|
@@ -44,9 +44,11 @@ module OpeningHoursConverter
|
|
44
44
|
day_start = day_index
|
45
45
|
minute_start = minute_index
|
46
46
|
end
|
47
|
-
elsif day_index == DAYS_MAX && minute_index == day.length - 1
|
48
|
-
if day_start >= 0
|
47
|
+
elsif minute && day_index == DAYS_MAX && minute_index == day.length - 1
|
48
|
+
if day_start >= 0
|
49
49
|
intervals << OpeningHoursConverter::Interval.new(day_start, minute_start, day_index, minute_index)
|
50
|
+
else
|
51
|
+
intervals << OpeningHoursConverter::Interval.new(6, minute_index, 6, minute_index)
|
50
52
|
end
|
51
53
|
else
|
52
54
|
if minute && day_start < 0
|