fuzzy-date 0.0.6 → 0.1.0
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 +19 -3
- data/lib/fuzzy-date.rb +2 -2
- 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: f6d560887482eedc4e79a6e28b95271655abe0fd
|
4
|
+
data.tar.gz: cbad2a0d9f5c80d33526270ed6cfd0582a448a39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aefc962c1f1ce5ba59c92bd0923577f47542e52a7dede4521375ac4481beba33c543fa3798210cbbec76149b44821a36ec3cd8582dc3e728bda3474a9f947aab
|
7
|
+
data.tar.gz: ee45832efbcec79fdcef07a5edf80afd1da0ae0d92e49fac2a14c416402c52e3b0f8dd11b061187ec7b64b839be75840eaf46687d7bf3cd9fc09ab775b528136
|
data/README.md
CHANGED
@@ -12,10 +12,26 @@ With fuzzy-date, when you parse an incomplete date, you'll be given a hash of in
|
|
12
12
|
|
13
13
|
## Contributing
|
14
14
|
|
15
|
-
|
15
|
+
If you'd like to hack on FuzzyDate - and we home you do! - start by forking the repo on GitHub:
|
16
16
|
|
17
|
-
|
17
|
+
https://github.com/davidcole-fuzzydate
|
18
|
+
|
19
|
+
The best way to get your changes merged back into core is as follows:
|
20
|
+
|
21
|
+
1. Clone down your fork
|
22
|
+
1. Create a thoughtfully named topic branch to contain your change
|
23
|
+
1. Hack away
|
24
|
+
1. Add tests and make sure everything still passes by running `rake`
|
25
|
+
1. If you are adding new functionality, document it in the README
|
26
|
+
1. Do not change the version number, I'll take care of that
|
27
|
+
1. If necessary, rebase your commits into logical chunks, without errors
|
28
|
+
1. Push the branch up to GitHub
|
29
|
+
1. Send a pull request for your branch
|
18
30
|
|
19
31
|
## License
|
20
32
|
|
21
|
-
fuzzy-date is released under the [MIT License](http://www.opensource.org/licenses/MIT).
|
33
|
+
fuzzy-date is released under the [MIT License](http://www.opensource.org/licenses/MIT).
|
34
|
+
|
35
|
+
## Code Status
|
36
|
+
|
37
|
+
[](https://travis-ci.org/davidcole/fuzzy-date)
|
data/lib/fuzzy-date.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module FuzzyDate
|
4
|
-
VERSION = '0.0
|
4
|
+
VERSION = '0.1.0'
|
5
5
|
|
6
6
|
DATE_SEPARATOR = '[^A-Za-z0-9]'
|
7
7
|
|
@@ -98,7 +98,7 @@ module FuzzyDate
|
|
98
98
|
# - All dates may be suffixed with the era (AD, BC, CE, BCE). AD is assumed.
|
99
99
|
# - Dates may be prefixed by circa words (Circa, About, Abt).
|
100
100
|
|
101
|
-
def self.
|
101
|
+
def self.parse( date, is_euro = false )
|
102
102
|
|
103
103
|
date = clean_parameter date
|
104
104
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuzzy-date
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cole
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The fuzzy-date gem provides a way to parse and use incomplete dates,
|
14
14
|
like those found in history or genealogy.
|