time_range_extractor 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ae3fd0114820e0c7e12998845f431cc773db52560cd687b96d7d77cfd69fdb5
|
4
|
+
data.tar.gz: 6886b6b01041131120e3eb1255f0bcf3276b3c8b261b4063eb733347eddea671
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 331bd280feae421065c43a354f23c827093ecb6b947848a88e1802d1ea5fdc60277399127edb5673c4b9c344178db6b2897401f08e0aad1b14f305f5b953ea8a
|
7
|
+
data.tar.gz: ab0785859f3f17a665124698a47c85463aa40d76592c7b365e84b1fafe7351ad0535df45c61b7c325e4e90c46e7918f9f27f90e50857ce016006ef649d29ee1f
|
@@ -18,7 +18,11 @@ class Parser
|
|
18
18
|
start_time = time_from_string(match_result.start_time_string)
|
19
19
|
end_time = time_from_string(match_result.end_time_string)
|
20
20
|
|
21
|
-
start_time
|
21
|
+
if start_time <= end_time
|
22
|
+
start_time..end_time
|
23
|
+
elsif start_time > end_time
|
24
|
+
start_time..(end_time + 1.day)
|
25
|
+
end
|
22
26
|
end
|
23
27
|
|
24
28
|
private
|