calculations_by_time_range 0.0.0 → 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.
data/README.rdoc CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  Add new methods for ActiveRecord to get agregate values by time range.
4
4
 
5
+ Usage:
6
+
7
+ Example you have model User with attributes:
8
+ updated_at
9
+ created_at
10
+ name
11
+ age
12
+
13
+ You could count how many people register by day:
14
+ User.counts_by_day
15
+
16
+
17
+ Found sum of ages by month:
18
+ User.sums_by_month
19
+
5
20
  == Note on Patches/Pull Requests
6
21
 
7
22
  * Fork the project.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.1.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{calculations_by_time_range}
8
- s.version = "0.0.0"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Nikitochkin"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calculations_by_time_range
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Nikitochkin