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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -3
  3. data/lib/fuzzy-date.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddebe3beb8107c8de3d41e40c2f8d5eef83ca144
4
- data.tar.gz: bd4b468f7b47c23295034bee100b26c4066172ae
3
+ metadata.gz: f6d560887482eedc4e79a6e28b95271655abe0fd
4
+ data.tar.gz: cbad2a0d9f5c80d33526270ed6cfd0582a448a39
5
5
  SHA512:
6
- metadata.gz: fb3ea34c322dd2cd9c3075812f968d144ef01583fde12b251a67142042ec7087ee06791f967459560fa2e101af5743c74d67e2abbe5956e671b60ee11e7a5247
7
- data.tar.gz: 33e236ecb4b49b1250acf7b47485406c77adfc40d92918a85792bd339f7c623cb905aa08e9fde82eebf5480c1aa6c0bbb0b377a6ce9abe440ea422c49b27e1a7
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
- Please contribute to fuzzy-date!
15
+ If you'd like to hack on FuzzyDate - and we home you do! - start by forking the repo on GitHub:
16
16
 
17
- TODO: Support for ranges.
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
+ [![Build Status](https://travis-ci.org/davidcole/fuzzy-date.svg?branch=master)](https://travis-ci.org/davidcole/fuzzy-date)
@@ -1,7 +1,7 @@
1
1
  require 'date'
2
2
 
3
3
  module FuzzyDate
4
- VERSION = '0.0.6'
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.parse_date( date, is_euro = false )
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.6
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-10 00:00:00.000000000 Z
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.