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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 007d23bd98474d00843ef199f9786d0b40dee3a1
4
- data.tar.gz: c78d4cb23efeabad74cf45e8c8000226c239820b
3
+ metadata.gz: cdd3f478ea3e920463e625723f6a3667b4fc6fa2
4
+ data.tar.gz: 6fa6600d8c4624d3323ecbc6abb470b51695c70f
5
5
  SHA512:
6
- metadata.gz: 0eda529c0dc31c32ed688e44a4ceb8266ad6d67627d4956e44bbfb83159ec2444476f832444d20dde4794407be7211a9e4bed5b4f9f0cb1ce96cc31ae257665f
7
- data.tar.gz: 10b7e07d4d38a3a709458ece5bf449db9e0351928517230ef679351de5982fdaa07228b99a87f5f0476bbe345f967a43baeedbf9055d21ccd297cbd37d532a4b
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) }
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.3
4
+ version: 1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziserman Martin