partial-date 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -6,12 +6,13 @@ h1. partial-date
6
6
 
7
7
  h2. Description
8
8
 
9
- A simple date class that can be used to store partial date values in a single column/attribute. An example use case would include an archive, or catalogue entry where the complete date is unknown.
9
+ A simple date class that can be used to store partial date values in a single column/attribute. An example use case would include an archive, or catalogue entry where the complete date is unknown. Year is mandatory, but month and day are optional.
10
10
 
11
11
  h2. Features
12
12
 
13
- PartialDate::Date uses an 8 digit integer to store year, month and day values. Values for month and day are optional.
14
- Use @date.value@ to set or persist the date to a persistance store.
13
+ PartialDate::Date uses a 23bit register as the backing store for date instances, and bit fiddling to get or set year, month and day values. As such it will perform well in a loop or collection of date objects.
14
+
15
+ Use @date.value@ to get or set an Integer value that can be used to rehydrate a date object, or save the date value to a persistance store in a readable Integer form e.g. 20121201 for 2012 December 01.
15
16
 
16
17
  h2. Examples
17
18
 
@@ -1,4 +1,4 @@
1
1
  module PartialDate
2
2
  # partial-date version
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
data/spec/date_spec.rb CHANGED
@@ -184,5 +184,4 @@ describe PartialDate::Date do
184
184
  a.should be == b
185
185
  end
186
186
  end
187
-
188
187
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: partial-date
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: