opening_hours_converter 1.13.8 → 1.13.9

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: 246bb142155bcbb71be257921ab532cab3db6a7a266e141d63d8a5a7ddd45ddc
4
- data.tar.gz: 625fda5fdacbd0d87010df460b46113de0307c9fdbf3b646f66863c8d958f909
3
+ metadata.gz: 934c7bb88ac5fcf73e4a213c82f7f84fea36cb88c68534cb409d14ff2272df0b
4
+ data.tar.gz: cdfa07abc240fb6399605108f5ab6cf3fefd75b19e08590c230fa2e1983c28df
5
5
  SHA512:
6
- metadata.gz: 363ac0c2e07547bbcb68524bfd9c77e5e751062576baf4af0a8ba593e10fb2c24066d8e10a2b6f86516547fc6f394372e87bedc42dec1682be3bc0ba645cf374
7
- data.tar.gz: f386100e7b74a1eaeebac6eb9c15a88255f7e6f9769e6b5a57a4f8afa4e19904ba7ee232bd4a923ffa3ddbcb5c269c1d471fce23620dbd1f0bc52ef03e266d80
6
+ metadata.gz: 8524fbb0d76e45c5e0173f7df2c0a31b17edbeddd501c9c476de7171a6e20463962ed049e04b3562cc9cd0f471dee65f2c679f97c96657750b77c8c9f4e1a155
7
+ data.tar.gz: 5f09e6388c2b64b7b9e0ae0887b30226d98af045d4b9c43294ceb3dc34a5ecf4a092e16a644923aadba30ba52dc7e7f7e319804b7825c55ba75fde403f687363
@@ -500,9 +500,12 @@ module OpeningHoursConverter
500
500
 
501
501
  def get_year_multi_month_day(wrs)
502
502
  year = wrs[0...4]
503
- wrs = wrs[5..wrs.length]
504
503
 
505
- wrs.split(',').map do |wr|
504
+ wrs.split(',').map.with_index do |wr|
505
+ if wr.start_with?(/#{@regex_handler.year}/)
506
+ year = wr[0...4]
507
+ wr = wr[5...wr.length]
508
+ end
506
509
  month = wr[0...3]
507
510
  days = wr[4...wr.length].split('-').reject { |e| e == '' }.map(&:to_i)
508
511
  if days.length == 2
@@ -163,6 +163,7 @@ module OpeningHoursConverter
163
163
  line(
164
164
  year + space +
165
165
  potential_list(
166
+ potential(year + space) +
166
167
  month +
167
168
  group(
168
169
  space, potential_range(month_day)
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.13.8
4
+ version: 1.13.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziserman Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-24 00:00:00.000000000 Z
11
+ date: 2020-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -115,8 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubyforge_project:
119
- rubygems_version: 2.7.10
118
+ rubygems_version: 3.1.2
120
119
  signing_key:
121
120
  specification_version: 4
122
121
  summary: Datetime range to opening hours, opening hours to datetime range