date_parser 0.1.31 → 0.1.32
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/README.md +1 -2
- data/lib/date_parser.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ddb095af53cceacb9a7b225fe35e7e0394eab5a
|
4
|
+
data.tar.gz: 3dad721f0e8209cd16bb2428b5c7f69548b6c843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04001838b9215d7ddf43d24d53f2b07eb39cc472a5a54d9959144056dd93cd063e4d7adcde1e0720bdbd5aa09159852fb4af804295fb7725e867fad8a20b8b60
|
7
|
+
data.tar.gz: 08996a4436fa3371c948b280d061107fd8d705dd4f43d1e90fa9e65c462d8ee158c53f088d52e3574e07e19ae0c5146a6c0bc653b63568f5ac9e59451e837431
|
data/README.md
CHANGED
@@ -118,5 +118,4 @@ on context. For example "1st" may not refer to the 1st of a month.
|
|
118
118
|
This option toggles whether or not those phrases are considered dates. Defaults to true.
|
119
119
|
|
120
120
|
# Requests or Bugs?
|
121
|
-
|
122
|
-
hours.
|
121
|
+
Feel free to contact me at rynkwn@gmail.com!
|
data/lib/date_parser.rb
CHANGED
@@ -81,7 +81,8 @@ module DateParser
|
|
81
81
|
parse_ambiguous_dates = opts[:parse_ambiguous_dates].nil? ? true : opts[:parse_ambiguous_dates]
|
82
82
|
|
83
83
|
if ! Utils::descended_from?(creation_date, Date)
|
84
|
-
raise ArgumentError, "creation_date must be a descendent of the Date class." +
|
84
|
+
raise ArgumentError, "creation_date must be a descendent of the Date class. " +
|
85
|
+
"(Preferably Date or DateTime) " +
|
85
86
|
"Otherwise, ambiguous behavior may result."
|
86
87
|
end
|
87
88
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: date_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Kwon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: DateParser is a simple, fast, and effective way to parse dates from natural
|
14
14
|
language text.
|