opening_hours_converter 1.6.3 → 1.6.4
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/iterator.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: cdd3f478ea3e920463e625723f6a3667b4fc6fa2
|
4
|
+
data.tar.gz: 6fa6600d8c4624d3323ecbc6abb470b51695c70f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1de4f1177d0cbb6597c43406903e4d90ab6d88d7346f6193a205cde2c05c31f601321b52d0de8c97dce8d25cc6c923ce625de24325435394de262f9d677b1bdc
|
7
|
+
data.tar.gz: d2319994203f7b9c8ca1eeeb10c813ba87329eb067347e40ff80551a8bc83771b29fe9fe7ae310296f264cff0e9866e72904b709aeebded4bc21e8614b796d59
|
@@ -79,7 +79,7 @@ module OpeningHoursConverter
|
|
79
79
|
year_ph = PublicHoliday.ph_for_year(year)
|
80
80
|
end
|
81
81
|
date_ranges[index].typical.intervals.each do |i|
|
82
|
-
if !i.nil?
|
82
|
+
if !i.nil? && !i.is_off
|
83
83
|
if (i.day_start..i.day_end).include?(fix_datetime_wday(day.wday)) || (is_ph && year_ph.include?(Time.new(day.year, day.month, day.day)))
|
84
84
|
itr = { start: Time.new(day.year, day.month, day.day, i.start/60, i.start%60),
|
85
85
|
end: Time.new(day.year, day.month, day.day, i.end/60, i.end%60) }
|