opening_hours_converter 1.6.2 → 1.6.3
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 -0
- 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: 007d23bd98474d00843ef199f9786d0b40dee3a1
|
4
|
+
data.tar.gz: c78d4cb23efeabad74cf45e8c8000226c239820b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eda529c0dc31c32ed688e44a4ceb8266ad6d67627d4956e44bbfb83159ec2444476f832444d20dde4794407be7211a9e4bed5b4f9f0cb1ce96cc31ae257665f
|
7
|
+
data.tar.gz: 10b7e07d4d38a3a709458ece5bf449db9e0351928517230ef679351de5982fdaa07228b99a87f5f0476bbe345f967a43baeedbf9055d21ccd297cbd37d532a4b
|
@@ -67,7 +67,7 @@ module OpeningHoursConverter
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def self.process_always_holiday(wide_interval, years)
|
70
|
-
for year in (DateTime.now.year
|
70
|
+
for year in (DateTime.now.year)..(DateTime.now.year + 1)
|
71
71
|
years[year] ||= Array.new(OSM_MONTHS.length) { |i| Array.new(MONTH_END_DAY[i]) { false } }
|
72
72
|
PublicHoliday.ph_for_year(year).each do |ht|
|
73
73
|
years[year][ht.month-1][ht.day-1] = true
|
@@ -177,7 +177,7 @@ module OpeningHoursConverter
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
else
|
180
|
-
for year in (DateTime.now.year
|
180
|
+
for year in (DateTime.now.year)..(DateTime.now.year + 1)
|
181
181
|
if wide_interval.start.nil?
|
182
182
|
years[year] = Array.new(OSM_MONTHS.length) { |i| Array.new(MONTH_END_DAY[i]) { true } }
|
183
183
|
elsif !wide_interval.start[:day].nil?
|