opening_hours_converter 1.3.7 → 1.3.8

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: f259687c2a1d2248ff6f8727048001ebe8444dfc
4
- data.tar.gz: f094bb587cb5d01d576babefbaf68567f9ce1b6c
3
+ metadata.gz: 0522647daec6e61185f989eaafa5d941598197a3
4
+ data.tar.gz: 553d55c9362adf5c5ca5b599f96c09b29046ad1c
5
5
  SHA512:
6
- metadata.gz: e55aa3bc15d1c18c3a3e90841babfbacebfb79e22c70820916b0747c1bd1ac513702f6c9ad1ebbe2c38c82c867760826e7521fab0d2f58fa7683c1d32813ed9a
7
- data.tar.gz: 7eb5446652950bf1b4c32e95b856d84e32464fa5013c54cc0e7870d0537383b5625678684a17e2f23b7588baef910d5939dc0a6947643f72d109d19809e0f2b3
6
+ metadata.gz: facfbcdd2e95cb34d3cd502688b77daddd063893e50258af80af586f4c104f371cf7e3f9c492b42fe142a2828bb917d1deb34505a531a47973d8225ffdc20a63
7
+ data.tar.gz: 94dd7f5933622f28dad516d43880f693f698b15591bd52e3876ef2e94b66c376bb55e24c142d19722b24f5ffaba3ddba82d62ea4b56c4d35446f97e877467385
@@ -288,8 +288,8 @@ module OpeningHoursConverter
288
288
  end
289
289
  end
290
290
  elsif wide_interval.type == "day"
291
- if wide_interval.end.nil? || wide_interval.start[:month] == wide_interval.end[:month]
292
- if wide_interval.start[:day] == wide_interval.end[:day]
291
+ if wide_interval.end.nil? || !wide_interval.end.nil? && wide_interval.start[:month] == wide_interval.end[:month]
292
+ if wide_interval.end.nil? || !wide_interval.end.nil? && wide_interval.start[:day] == wide_interval.end[:day]
293
293
  years[wide_interval.start[:year]][wide_interval.start[:month]-1][wide_interval.start[:day]-1] = true
294
294
  else
295
295
  for day in wide_interval.start[:day]-1..wide_interval.end[:day]-1
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.3.7
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziserman Martin