opening_hours_converter 1.7.5 → 1.7.6

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: f8c19aa11a391e0d37c686d03c7b84f5e9e3c5cf
4
- data.tar.gz: 38f1667e505694784300feb81fb5495844089091
3
+ metadata.gz: 0724a4ba5512463c59ad4e713a5ed26d7b8d09e0
4
+ data.tar.gz: 4b37f5e42e6fb7627cf8c2099cb29404c8a75dc3
5
5
  SHA512:
6
- metadata.gz: 29f83998c819adeb5c098dc95f2a41eac6c973b3e70106f56ee2ba15d008e6cc185aaceb02a0b31bfd41f24b458eb345115fe48fa63ecb2674b8f6f91f0dc050
7
- data.tar.gz: 963e449fd214d7e4271b9731b5a85c3aba170c8d82ccb8592030e9e27b6184575e4957a5cedcbd42c1e6c1e651a8195e2c94982ec47830a1b7a2199b83bf5da1
6
+ metadata.gz: 31cf99bc1fd37b7c8df26ee96736b0df988e30f60c661d0e85ef22b92468481e28f3b3cd8ac1f5537ecd97a941e9d05ef2bdab89699be95abca8aab8200fc9bb
7
+ data.tar.gz: 5ce90faf39c681bcc2cff37623ca7e3df4a44bfd465d4b4ce63037b86b9f0e96efe99918ead39f459fdd9662260658e0b36573a96b9a6dd0b9b2632bbcb6f85d
@@ -479,7 +479,7 @@ module OpeningHoursConverter
479
479
  in_day = to_day
480
480
  days_count = 0
481
481
  if in_day.end
482
- if in_day.start[:year]
482
+ if in_day.start[:year] && in_day.end[:year]
483
483
  if in_day.start[:year] != in_day.end[:year]
484
484
  for year in in_day.start[:year]..in_day.end[:year]
485
485
  if year == in_day.start[:year]
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.7.5
4
+ version: 1.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziserman Martin