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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -2
  3. data/lib/date_parser.rb +2 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0ee93c7c95e25f759c7897e8d363c29d8feb31c
4
- data.tar.gz: 547bcbd2acdcd45c8879fb43a531d7d007931054
3
+ metadata.gz: 0ddb095af53cceacb9a7b225fe35e7e0394eab5a
4
+ data.tar.gz: 3dad721f0e8209cd16bb2428b5c7f69548b6c843
5
5
  SHA512:
6
- metadata.gz: 1894089457ad01c0fbe40a79080baa435772dfa34c02fcc0ad2b5bfb0ae0dc11a7055b18163a5714b0dd26caaf351893258b7b406f6b98b6ec505aeee2deba61
7
- data.tar.gz: 11b01f4f1749856d15ba0f301185565f3119cb271a9de1c242ee49e65e1b46c2283256f4e2ea0114b028aef92429179aec069965b5d047adc2ce7466010cf054
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
- Leave an issue on this Github page! I'll most likely get back to you within 24
122
- hours.
121
+ Feel free to contact me at rynkwn@gmail.com!
@@ -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.31
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-15 00:00:00.000000000 Z
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.