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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 842c8f590c509cb332f29ebd42d006a426c724ab
4
- data.tar.gz: 860f0b96385bc61f27727efe5bb332ff4fb6d537
3
+ metadata.gz: 007d23bd98474d00843ef199f9786d0b40dee3a1
4
+ data.tar.gz: c78d4cb23efeabad74cf45e8c8000226c239820b
5
5
  SHA512:
6
- metadata.gz: f5e2c1e2929cc7eb853f1acf2f9583d07a2fdc75fdd68067bc5450805d4e7ca753652c0cfb9baa2ba16e13f33fac24d16e986a1035632283fabcb86a9f4987e3
7
- data.tar.gz: 921e5977a9f7cf2377bc0cb727e07951bc51399344737585b26baef2dc2f980f47fa3d14a82ae81d829fb893fc4bbf598ff1b1ed113b5c901644cce231e8e25a
6
+ metadata.gz: 0eda529c0dc31c32ed688e44a4ceb8266ad6d67627d4956e44bbfb83159ec2444476f832444d20dde4794407be7211a9e4bed5b4f9f0cb1ce96cc31ae257665f
7
+ data.tar.gz: 10b7e07d4d38a3a709458ece5bf449db9e0351928517230ef679351de5982fdaa07228b99a87f5f0476bbe345f967a43baeedbf9055d21ccd297cbd37d532a4b
@@ -116,6 +116,7 @@ module OpeningHoursConverter
116
116
  end
117
117
 
118
118
 
119
+
119
120
  def fix_datetime_wday(d)
120
121
  d==0 ? 6 : d-1
121
122
  end
@@ -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 - 1)..(DateTime.now.year + 5)
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 - 1)..(DateTime.now.year + 5)
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?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opening_hours_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziserman Martin