better_ar 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 926017a90171c61733ce212549ece6340d95fff4
4
+ data.tar.gz: e9344fe60c016fd8119d8452103a6b98b5e1fbbb
5
+ SHA512:
6
+ metadata.gz: b3a7949ca8b5fda7c98d916e40a950748e976b3e5bf2075c49e6b23e82312aa1f921c9be709f29b9f4da9b55ce51ff8673dccc1089d32441ac8e9dede5b77d27
7
+ data.tar.gz: 53efcc54e276a00f4ea3145767d83a413d913bef2a5e93e6d481fb0226319a4b8af06978928f7349a1685008fd8aeda6b7c6e7fa9b06ddfd375df1ae89fbf939
@@ -34,11 +34,11 @@ module BetterAr
34
34
  # @param [Hash]
35
35
  # Optional
36
36
  # @returns [Integer]
37
- def count_with_better_ar(opts = {})
37
+ def count_with_better_ar(opts = {}, attr = nil)
38
38
  if opts.empty?
39
39
  count_without_better_ar
40
40
  elsif opts.key?(:conditions)
41
- count_without_better_ar(opts)
41
+ count_without_better_ar(opts, attr)
42
42
  else
43
43
  scoped.count(opts)
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module BetterAr
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_ar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brian Cardarella
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-11-20 00:00:00.000000000 Z
11
+ date: 2013-12-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activerecord
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,49 +27,43 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: sqlite3
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: debugger
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  description: Better Active Record finders
@@ -100,33 +91,26 @@ files:
100
91
  - test/test_finder_methods.rb
101
92
  homepage: https://github.com/bcardarella/better_ar
102
93
  licenses: []
94
+ metadata: {}
103
95
  post_install_message:
104
96
  rdoc_options: []
105
97
  require_paths:
106
98
  - lib
107
99
  required_ruby_version: !ruby/object:Gem::Requirement
108
- none: false
109
100
  requirements:
110
- - - ! '>='
101
+ - - '>='
111
102
  - !ruby/object:Gem::Version
112
103
  version: '0'
113
- segments:
114
- - 0
115
- hash: 2278661822578775114
116
104
  required_rubygems_version: !ruby/object:Gem::Requirement
117
- none: false
118
105
  requirements:
119
- - - ! '>='
106
+ - - '>='
120
107
  - !ruby/object:Gem::Version
121
108
  version: '0'
122
- segments:
123
- - 0
124
- hash: 2278661822578775114
125
109
  requirements: []
126
110
  rubyforge_project: better_ar
127
- rubygems_version: 1.8.23
111
+ rubygems_version: 2.0.3
128
112
  signing_key:
129
- specification_version: 3
113
+ specification_version: 4
130
114
  summary: Better Active Record finders
131
115
  test_files:
132
116
  - test/helper.rb