active_record_calculator 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,21 +17,21 @@ module ActiveRecordCalculator
17
17
  end
18
18
  alias :count :cnt
19
19
 
20
- def sum(column_name, as, conditions = {})
20
+ def sum(column_name, as, options = {})
21
21
  add_operation(:sum, column_name, as, options)
22
22
  end
23
23
 
24
- def avg(column_name, as, conditions = {})
24
+ def avg(column_name, as, options = {})
25
25
  add_operation(:avg, column_name, as, options)
26
26
  end
27
27
  alias :average :avg
28
28
 
29
- def max(column_name, as, conditions = {})
29
+ def max(column_name, as, options = {})
30
30
  add_operation(:max, column_name, as, options)
31
31
  end
32
32
  alias :maximum :max
33
33
 
34
- def min(column_name, as, conditions = {})
34
+ def min(column_name, as, options = {})
35
35
  add_operation(:min, column_name, as, options)
36
36
  end
37
37
  alias :minimum :min
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordCalculator
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_calculator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Grady Griffin