timetwister 0.2.5 → 0.2.7
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 +8 -8
- data/lib/timetwister.rb +2 -1
- data/lib/timetwister/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTE4OTg0ODUxZDIzZmMwNTQ4NmYxZjYwNmY4ODNiMTI4ODdhMmMzMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjcyNDQ2MDg0MTM2YzdiMDNhMjkwNmY3OWI3YmVmMThkNTk5NGMzNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjcxNWZkZTE0YWI1NGJiNGRhMDBmODA3YmRhNWY1YTFlNDgzOWNlMjIwODIy
|
10
|
+
NjdkNGI3YzU2ZTU1MzA5Y2YzYjFhYmJlZTI5NzFkYjQzZDY1MWFlOTU3MGY1
|
11
|
+
OWM0NjAzNjJkNDIyMDdmMjA0YjE0YzcwYjczMWI3MGNiMzNlNTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmMyOWYzYWY2NWJmZmQyYmM4NjliMTc5YWQ3N2E2NzhkNmQ1MDdlZTQxYTQ5
|
14
|
+
ZjIxNWZhNTExODg0MDRkMDVkNDAyNGI3MjRkMWIyMjlhYzdjMzg5ZWE5OTcz
|
15
|
+
NjgzZmMwMTY4MDVlYzNlNzE0YzcyYTNmYTUzNDVhODczNGQ5ZWM=
|
data/lib/timetwister.rb
CHANGED
@@ -14,7 +14,8 @@ module Timetwister
|
|
14
14
|
|
15
15
|
# check for dates of form "Month Day(-Day), Year" before splitting on commas
|
16
16
|
# (removes certainty markers as to not jam the regex)
|
17
|
-
if Utilities.replace_ordinals(conj).gsub(/[\?\[\]]/, '').match(/[a-z]*\.?\s[0-9]{1,2}(\s?-[0-9]{1,2})?\,\s[0-9]{4}/i)
|
17
|
+
if Utilities.replace_ordinals(conj).gsub(/[\?\[\]]/, '').match(/[a-z]*\.?\s[0-9]{1,2}(\s?-[0-9]{1,2})?\,\s[0-9]{4}/i) && \
|
18
|
+
!Utilities.replace_ordinals(conj).match(/[0-9]{4}\s[a-z]*\.?\s[0-9]{1,2}/i)
|
18
19
|
out << Parser.string_to_dates(conj, options)
|
19
20
|
else
|
20
21
|
conj.split(',').each do |comma|
|
data/lib/timetwister/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timetwister
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Duryee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|