opening_hours_converter 1.4.4 → 1.4.5
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_parser.rb +5 -1
- 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: c152985bff2c56142a62a668ee5e10209768ae28
|
4
|
+
data.tar.gz: 258d8e96c600d02017b99b821fd6e7b95b1a0892
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79e61d2b66eb38e03a8e5f45e6bd4056f584096095f4cf330b414b836f381859f964f6dbf66b1e49ee103bc8c53b763006fd3d5cb93ff3e709960a507c1fbe6a
|
7
|
+
data.tar.gz: d1666cdf52c8a913eee2b4b95d50057bf0739f73c1fd0f3aaeb3d073b1aaa4d30d22afcc96b90fad49894edc80d1e1770df35f318646750f9bfd8116be7002c4
|
@@ -334,7 +334,11 @@ module OpeningHoursConverter
|
|
334
334
|
|
335
335
|
if single_month.length > 1
|
336
336
|
month_to = single_month[1].split(' ')
|
337
|
-
|
337
|
+
if month_to.length > 1
|
338
|
+
month_to = { day: month_to[1].to_i, month: OSM_MONTHS.find_index(month_to[0]) + 1 }
|
339
|
+
else
|
340
|
+
month_to = { day: month_to[0].to_i, month: month_from[:month] }
|
341
|
+
end
|
338
342
|
if month_to[:month] < 1
|
339
343
|
raise ArgumentError, "Invalid month : #{month_to.inspect}"
|
340
344
|
end
|
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.4.
|
4
|
+
version: 1.4.5
|
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-
|
11
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|