opening_hours_converter 1.4.13 → 1.4.14

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: 06ce9d47aedbd6214a4569f1b6da79da7b220932
4
- data.tar.gz: 030e18c02f49842eb3941be10e646dfc72216805
3
+ metadata.gz: 9f7b0332fa39ab7fd7bccd3367f011ea09fe6c3b
4
+ data.tar.gz: 315bdf3aec20526afd2fbdf34c8d095029fa6484
5
5
  SHA512:
6
- metadata.gz: 3cc1a7ddd9c4036cee74091c148a04b2f381cd5b9e51eb0c5e789bfa0dcb25907e1b5f620e39b36706c701b5c8dd2d44321f4503b390d77d165e546e09386627
7
- data.tar.gz: 38e45642d03eea097e5ff967fb746bbd98d559f8352f970444d8011dadcc524ef638a910522a81119ca442661a343d688c68085346cbbf8b503a40f7c34943f9
6
+ metadata.gz: 9d2a0e8e17c646d946c8a6a8f404ffbd2eede13eb4d9480430b06d9a4f8b35a62713e577a63e101550ed348430ff112cb26505437146ac06123781764ab9b960
7
+ data.tar.gz: 75cc6de841dd19b8c9e8300d3471b667f5f0c455e8a12e30b2e6118a09af615070b8bbbc953d5a77187f3aaedc8beb0ebafe5c03007ab0da6d3993b45311f9d1
@@ -280,6 +280,9 @@ module OpeningHoursConverter
280
280
  if !interval.nil?
281
281
  start_interval = DateTime.parse(interval["start"])
282
282
  end_interval = DateTime.parse(interval["end"])
283
+ if end_interval.day == start_interval.day + 1 && end_interval.hour == 0 && end_interval.min == 0
284
+ end_interval -= (1/1440.0)
285
+ end
283
286
  date_range.last.typical.add_interval(OpeningHoursConverter::Interval.new(((start_interval.wday + 6) % 7), (start_interval.hour * 60 + start_interval.min), ((end_interval.wday + 6) % 7), (end_interval.hour * 60 + end_interval.min)))
284
287
  end
285
288
  end
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.4.13
4
+ version: 1.4.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziserman Martin