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 +5 -5
- data/lib/opening_hours_converter/opening_hours_parser.rb +2 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 155b7aac41a7152e21770e707af7008fdaaa5581420c7261f5b3ef3cfc55691a
|
4
|
+
data.tar.gz: b7c29d41d26e4faff8e7313a1125b007d73374c35ce6d21f0b56884df23a09d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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-
|
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.
|
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
|