opening_hours_converter 1.7.15 → 1.7.16

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
- SHA1:
3
- metadata.gz: 802b37f6b12f7cd16186a55a87edf44df589fe00
4
- data.tar.gz: 9c451e804943ed9023303b28c7c8cac4f2503798
2
+ SHA256:
3
+ metadata.gz: 155b7aac41a7152e21770e707af7008fdaaa5581420c7261f5b3ef3cfc55691a
4
+ data.tar.gz: b7c29d41d26e4faff8e7313a1125b007d73374c35ce6d21f0b56884df23a09d0
5
5
  SHA512:
6
- metadata.gz: 88ed8527146fbb1897d80e452c10386912e67d8e1fd9b6df414f7860e230d904aced785ef2c8403fbaa7b05fced733a0d0c9aa07a1cc050c57af91189d3847f9
7
- data.tar.gz: 8ab6453ee693d21268428f8b52a74431e60d6802eb47c3b0e204a935564cb9dc06017dc4b41e48c9e5326c459fca2ad79160448d2187f17208cccf6470c61d10
6
+ metadata.gz: adb85ecaeebe483930687bd69123d10ca3c21df411d2760fb510edc6068392b8ba42b9c9af54912e83eaed08329276fece95af0f0849595d675796b6aca6b034
7
+ data.tar.gz: a280b23b27c0e7e303ce6d80195e866033f0c9c40de00483da2e734b69f06ec5f8cf42eb754de213d0195b7f54d8510e165e17fa55f63614a03f9aec704bf474
@@ -540,14 +540,10 @@ module OpeningHoursConverter
540
540
 
541
541
  def add_off_interval(date_range, weekdays)
542
542
  if date_range.typical.instance_of?(OpeningHoursConverter::Day)
543
- if weekdays[:from] != 0
543
+ if weekdays[:from] != 0 || weekdays[:to] != 0
544
544
  weekdays = weekdays.dup
545
545
  weekdays[:from] = 0
546
- if times[:from] <= times[:to]
547
- weekdays[:to] = 0
548
- else
549
- weekdays[:to] = 1
550
- end
546
+ weekdays[:to] = 0
551
547
  end
552
548
  end
553
549
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opening_hours_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.15
4
+ version: 1.7.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziserman Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-27 00:00:00.000000000 Z
11
+ date: 2018-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  requirements: []
68
68
  rubyforge_project:
69
- rubygems_version: 2.6.13
69
+ rubygems_version: 2.7.3
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Datetime range to openinghours, openinghours to datetime range