opening_hours_converter 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opening_hours_converter/opening_hours_date.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 702767227bb2f956ceddf4f0ca6c99352c6e1fea
|
4
|
+
data.tar.gz: fa9efab32584b5cea03ccf9ffb94c143eefb91db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9beee7a6b16b7427d968435b79cba79b420802e17419cd3265b97860ccfe18d726816b5feb969e9f8e7bb20e5c2349315490ae69f32966b83ae593ee49494429
|
7
|
+
data.tar.gz: e2faf52f40999e498772067bd5893a6986a2e90f9250b73eb65c0fd7ababbb7e93b9d4a51b8898cdb9b6a2c598dc84981e80cbe8e58eddc80077854124a6c345
|
@@ -21,7 +21,7 @@ module OpeningHoursConverter
|
|
21
21
|
result = ""
|
22
22
|
wd = @weekdays.concat(@weekdays_over).sort.uniq
|
23
23
|
|
24
|
-
if wd.length > 0 && wd[0] ==
|
24
|
+
if wd.length > 0 && wd[0] == -2
|
25
25
|
result = "PH"
|
26
26
|
wd.shift
|
27
27
|
end
|
@@ -111,7 +111,7 @@ module OpeningHoursConverter
|
|
111
111
|
end
|
112
112
|
|
113
113
|
def add_ph_weekday
|
114
|
-
add_weekday(
|
114
|
+
add_weekday(-2)
|
115
115
|
end
|
116
116
|
|
117
117
|
def add_overwritten_weekday(weekday)
|
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.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ziserman Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Datetime range to openinghours, openinghours to datetime range. Very
|
14
14
|
strongly inspired by yohours.
|