opening_hours_converter 1.4.10 → 1.4.11
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/day.rb +3 -0
- 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: 69da2d045c95a382da0514111793ecdabc7940cd
|
4
|
+
data.tar.gz: 05167d9d547eb3376c833bb3bbcbd668341143f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24a806e746c63b5fa678c504cf3b4d1ed9398d94689751620d7104d654a4a44a21e6d8be598c0bbf9e9dc22fe33a0ab241d01546b48024028b62824770962a99
|
7
|
+
data.tar.gz: 7e67125b6b54243094283530641d185aca2dd423ac1a71a8be3446d632b01ea3bf7fe8607881d3e9e7e7246026b79f330163a004572914f42ed3fdfd4a169b48
|
@@ -20,6 +20,9 @@ module OpeningHoursConverter
|
|
20
20
|
if interval.day_start == interval.day_end || interval.day_end == DAYS_MAX && interval.end == MINUTES_MAX
|
21
21
|
start_minute = interval.start
|
22
22
|
end_minute = interval.end
|
23
|
+
elsif interval.day_end == interval.day_start + 1 && interval.end == 0
|
24
|
+
start_minute = interval.start
|
25
|
+
end_minute = MINUTES_MAX
|
23
26
|
end
|
24
27
|
|
25
28
|
unless start_minute.nil? && end_minute.nil?
|