opening_hours_converter 1.14.2 → 1.14.3
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 +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61c9f39ea1892679f76822561dd11b33f185549cea33c1d270a02fa7ac097660
|
4
|
+
data.tar.gz: 852c01645d72c6f7d694315565796c72909e9a7d6a1338fcf8d478ea9dde02b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5807378ab97473627243d9037baeaef40cd8c25851756b791c1abc81f7bf21e6066581afe33524b58085e224cfeeac24a4b1b2c54cd67d21abc0233cd8d783b0
|
7
|
+
data.tar.gz: fba5e0c27e71cd9e7d27d189db972b022d92e70d89fc47cf236fd6de58c9db86f970e181d6c54da72d42f01fd830a1f5250f54fc3a61dfa5a900760b17101ea5
|
@@ -322,7 +322,7 @@ module OpeningHoursConverter
|
|
322
322
|
end
|
323
323
|
|
324
324
|
def get_year_week_with_modifier(wrs)
|
325
|
-
year, weeks = wrs.split(
|
325
|
+
year, weeks = wrs.split(/ week /i)
|
326
326
|
years = year.split('-')
|
327
327
|
|
328
328
|
indexes = weeks.split(',').map { |week_index|
|
@@ -346,7 +346,7 @@ module OpeningHoursConverter
|
|
346
346
|
end
|
347
347
|
|
348
348
|
def get_year_week(wrs)
|
349
|
-
year, weeks = wrs.split(
|
349
|
+
year, weeks = wrs.split(/ week /i)
|
350
350
|
# does not handle 2018,2019
|
351
351
|
years = year.split('-')
|
352
352
|
# does not handle week 1,2,3
|
@@ -365,7 +365,7 @@ module OpeningHoursConverter
|
|
365
365
|
end
|
366
366
|
|
367
367
|
def get_week_with_modifier(wrs)
|
368
|
-
weeks = wrs.gsub(
|
368
|
+
weeks = wrs.gsub(/week /i, '').split(',')
|
369
369
|
|
370
370
|
indexes = weeks.map { |week_index|
|
371
371
|
if week_index.include?('-')
|
@@ -386,7 +386,7 @@ module OpeningHoursConverter
|
|
386
386
|
end
|
387
387
|
|
388
388
|
def get_week(wrs)
|
389
|
-
weeks = wrs.gsub(
|
389
|
+
weeks = wrs.gsub(/week /i, '').split(',')
|
390
390
|
|
391
391
|
indexes = weeks.map { |week_index|
|
392
392
|
if week_index.include?('-')
|
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.14.
|
4
|
+
version: 1.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ziserman Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
|
-
rubygems_version: 3.
|
118
|
+
rubygems_version: 3.0.9
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: Datetime range to opening hours, opening hours to datetime range
|