opening_hours_converter 1.5.1 → 1.5.2
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 +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02627722d7773fa68b2d94a0b773ff969275141a
|
4
|
+
data.tar.gz: fe11eb8a3a6e3265d2b84286d404703d525455c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ceb4a762445b0b3aa056ae293c3b214559a67a3faf81238c7246685675da2f354c70036b77c736fb32d7885592a979bbb402017bc1c26f17d2b7e11e50f8318
|
7
|
+
data.tar.gz: c61a4582e6b3f40e1c846b8e31788fd4f4216fcad8ac68d5b45a59616377c7a24cc0de2b4e1959c0ef4af7cc82424fcb32adc4643af4ce3a45903f50f64a1f46
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'opening_hours_converter/constants'
|
2
2
|
require 'json'
|
3
|
+
require 'pry-nav'
|
3
4
|
|
4
5
|
module OpeningHoursConverter
|
5
6
|
class OpeningHoursParser
|
@@ -26,7 +27,6 @@ module OpeningHoursConverter
|
|
26
27
|
blocks = oh.split(';')
|
27
28
|
|
28
29
|
comment = ""
|
29
|
-
rule_modifier = nil
|
30
30
|
time_selector = nil
|
31
31
|
weekday_selector = nil
|
32
32
|
wide_range_selector = nil
|
@@ -44,6 +44,7 @@ module OpeningHoursConverter
|
|
44
44
|
res_dr_id = nil
|
45
45
|
|
46
46
|
blocks.each do |block|
|
47
|
+
rule_modifier = nil
|
47
48
|
block.strip!
|
48
49
|
next if block.length == 0
|
49
50
|
|