quarter_time 0.3.0 → 0.3.1
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.
- data/README.rdoc +9 -0
- data/VERSION +1 -1
- data/quarter_time.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -63,6 +63,15 @@ A simple gem for dealing with quarter logic. I happen to have a project where h
|
|
63
63
|
=> "2010-03-01"
|
64
64
|
model.quarter_stamp
|
65
65
|
=> "Q2, 2010"
|
66
|
+
|
67
|
+
*you can also just use the scope with year and quarter parameters if you don't already have a quarter object
|
68
|
+
|
69
|
+
class SomeModel < ActiveRecord::Base
|
70
|
+
include QuarterTime::QuarterDriven
|
71
|
+
end
|
72
|
+
|
73
|
+
model = SomeModel.for_quarter(2010,3).first
|
74
|
+
|
66
75
|
|
67
76
|
== Note on Patches/Pull Requests
|
68
77
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/quarter_time.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quarter_time
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- evizitei
|