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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a4dff7e35eca094060900cf6a0062c57a9a2e5c56bed81e3989d8758a7e7a30
4
- data.tar.gz: a2221f771abd53d104b043cac1fab9928f734ba666a84494e63599ba053dee49
3
+ metadata.gz: 61c9f39ea1892679f76822561dd11b33f185549cea33c1d270a02fa7ac097660
4
+ data.tar.gz: 852c01645d72c6f7d694315565796c72909e9a7d6a1338fcf8d478ea9dde02b4
5
5
  SHA512:
6
- metadata.gz: 893fa9f68831242e10c5e819b9a1097fb8269c3bb2526dfe33bb5024c4f20012b9fe8252d7ed30efa02e7e7a0ec46a8d92971f8de62370a1b2307cb4dd7cbe5c
7
- data.tar.gz: 398d37c9a90d1656ef6cd4e872e17bf22bb579fabd73291996a38e06d41f8cfb838488a5bae9ce655b528e414edc9135d5c76e82aa0df247359aca980c75bf21
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(' week ')
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(' week ')
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('week ', '').split(',')
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('week ', '').split(',')
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.2
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: 2023-01-03 00:00:00.000000000 Z
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.1.2
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