activerecord-precount 0.7.0.beta1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42b9f498a5245831b450f2bbab6b957800bb4f2b
4
- data.tar.gz: 7b22c90c01957b7ea4b261ea1dd888acfc148f46
3
+ metadata.gz: 1bd7e4db6a99a46dc4d264d1829bbd116a9442bb
4
+ data.tar.gz: 685f56a36db6b2706426b5ac18272efac6e2f78b
5
5
  SHA512:
6
- metadata.gz: d6945cae93b943dff5d78b0a4b82ddb3f043b12b603ff537485c937c561680e95d47497bb05c404247abeb5ee5fb4ddc4862574330224d9ebca3cea781e8caa3
7
- data.tar.gz: 43ceb4314d98f194f6a514caaa93f0c44b6e78d0eb61837a64aa7c5b6f72efb4ac27f290ce0d12cb82e20d432f7f46ab92a8e4cdc5aa76f46a383df25a2574da
6
+ metadata.gz: e55ce8c8c1454ae49e15735d97d29515ac59f451bec6239d8ea5a3b18d829e18ddd9a68f566687a4dbb37fc93b01c9917bb8fb9ca44ef2943301682a05ae4a3d
7
+ data.tar.gz: 3ac6239be3734be125d661279d9db6db00371f7593b5c46859661521cece392d972bb860d5d7f94b630c8162b5c0c07cc23a5a8475665c7ad3cbf7367d8bbd98
@@ -1,5 +1,18 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.7.0.beta1](https://github.com/k0kubun/activerecord-precount/tree/v0.7.0.beta1) (2017-06-27)
4
+ [Full Changelog](https://github.com/k0kubun/activerecord-precount/compare/v0.6.3...v0.7.0.beta1)
5
+
6
+ **Closed issues:**
7
+
8
+ - Rails 5.1 ActionView::Template::Error: undefined method `map' for nil:NilClass [\#24](https://github.com/k0kubun/activerecord-precount/issues/24)
9
+ - fatal \(exception reentered\): [\#22](https://github.com/k0kubun/activerecord-precount/issues/22)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Use the latest patch version for Rails v5.1.x on ci [\#26](https://github.com/k0kubun/activerecord-precount/pull/26) ([kenju](https://github.com/kenju))
14
+ - s/query\_scope/records\_for for preloader\_extension.rb [\#25](https://github.com/k0kubun/activerecord-precount/pull/25) ([kenju](https://github.com/kenju))
15
+
3
16
  ## [v0.6.3](https://github.com/k0kubun/activerecord-precount/tree/v0.6.3) (2017-02-21)
4
17
  [Full Changelog](https://github.com/k0kubun/activerecord-precount/compare/v0.6.2...v0.6.3)
5
18
 
@@ -5,7 +5,7 @@ module ActiveRecord
5
5
  # When this method is called, it will be N+1 query
6
6
  def load_target
7
7
  count_target = reflection.name.to_s.sub(/_count\z/, '').to_sym
8
- @target = owner.association(count_target).count
8
+ @target = owner.association(count_target).size
9
9
 
10
10
  loaded! unless loaded?
11
11
  target
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Precount
3
- VERSION = "0.7.0.beta1"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-precount
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.beta1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-27 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -314,12 +314,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
314
314
  version: '2.1'
315
315
  required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  requirements:
317
- - - ">"
317
+ - - ">="
318
318
  - !ruby/object:Gem::Version
319
- version: 1.3.1
319
+ version: '0'
320
320
  requirements: []
321
321
  rubyforge_project:
322
- rubygems_version: 2.6.11
322
+ rubygems_version: 2.5.2
323
323
  signing_key:
324
324
  specification_version: 4
325
325
  summary: N+1 count query killer for ActiveRecord