time_range_extractor 0.1.3 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/time_range_extractor/match_result.rb +2 -8
- data/lib/time_range_extractor/parser.rb +2 -2
- data/lib/time_range_extractor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dfb2e9f8bbc4e60f202ead653a032e8d049e0f930c7671d27795417e5a325ae
|
4
|
+
data.tar.gz: 2c7e454395476fcd3c488801fde084fb638bf74101ea758c4245dee77cc9a916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72507f02f55d7d995f61f69e61dfa5e2ff3e5e9ae2b82a20d9a237c4388f137ac11625ee892421560a8a75b17dc995c4d6c61fd13ab2ab24d510c340123fe2b0
|
7
|
+
data.tar.gz: 7dc407b9e440a2a81a7d74d12dba0156d345f2668f2dd6182fbb08c3484d2dbe53eebdda5597d6c21325a0df4de920a2a0f07fb0fb26db49f754ff561c3fbc4b
|
data/Gemfile.lock
CHANGED
@@ -6,7 +6,7 @@ class MatchResult
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def valid?
|
9
|
-
@match_data && (start_time.present?
|
9
|
+
@match_data && (start_time.present? && end_time.present?)
|
10
10
|
end
|
11
11
|
|
12
12
|
def start_time
|
@@ -32,16 +32,10 @@ class MatchResult
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def start_time_string
|
35
|
-
|
36
|
-
[start_time, start_period, time_zone].compact.join(' ')
|
37
|
-
else
|
38
|
-
end_time && [end_time, end_period, time_zone].compact.join(' ')
|
39
|
-
end
|
35
|
+
[start_time, start_period, time_zone].compact.join(' ')
|
40
36
|
end
|
41
37
|
|
42
38
|
def end_time_string
|
43
|
-
return start_time_string unless range?
|
44
|
-
|
45
39
|
[end_time, end_period, time_zone].compact.join(' ')
|
46
40
|
end
|
47
41
|
|