bullet 4.14.9 → 4.14.10

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: 46631b5662b830f5e0c89e381ece4763ba55b2af
4
- data.tar.gz: e636307ee2cea385fdd720a4757685f7de401a4b
3
+ metadata.gz: 262911eb5bb5cc6577489084cca4c06042ec466b
4
+ data.tar.gz: 6aa0f9e1403c8f36cac9375b451880a82c9561cd
5
5
  SHA512:
6
- metadata.gz: 2d5b60419c3f1676c8227db1102f9fac8c7085297aca02511b6e9822c8b14a19ed59c227a5ca2dee060b18295b633e4b3fbb246ee23afdd3c348b6f09468fa30
7
- data.tar.gz: 6bfaf51d9ff6cebbc597fa9c6c97cc902b7cf6037f219a7d8bd72dbd09b530921174bea1aa4e9d5d29525107fee5ce9f782acd88d55668d1ab7d3ce11e9b707e
6
+ metadata.gz: 99c812cc4085c2e9763ba05564f98b4b3ab9027820932eb70d09060fbfb69071d38d8d844b67d29dc167ad04983e8133fa5727b426122d9a4e0f3b9c55e9bd3b
7
+ data.tar.gz: d1316bb72c9228fb4b7746795d528506eb472d1bd906424c17bbb5a3adcdd995e75bcdec59b8a93959d80e9ef88e0bfb692092db505c95a50fcd32735f4dda8e
@@ -1,5 +1,9 @@
1
1
  # Next Release
2
2
 
3
+ ## 4.14.10
4
+
5
+ * Fix `has_many :through` infinite loop issue
6
+
3
7
  ## 4.14.9
4
8
 
5
9
  * Support mongoid 5.0.0
@@ -200,9 +200,9 @@ module Bullet
200
200
  end
201
201
 
202
202
  ::ActiveRecord::Associations::HasManyThroughAssociation.class_eval do
203
- alias_method :origin_has_cached_counter?, :has_cached_counter?
203
+ alias_method :origin_hmt_has_cached_counter?, :has_cached_counter?
204
204
  def has_cached_counter?(reflection = reflection())
205
- result = origin_has_cached_counter?(reflection)
205
+ result = origin_hmt_has_cached_counter?(reflection)
206
206
  if Bullet.start? && !result && !Thread.current[:bullet_collection_empty]
207
207
  Bullet::Detector::CounterCache.add_counter_cache(owner, reflection.name)
208
208
  end
@@ -48,7 +48,7 @@ module Bullet
48
48
  end
49
49
 
50
50
  eager_loadings.add(*to_add) if to_add
51
- to_merge.each { |k,val| eager_loadings.merge k, val }
51
+ to_merge.each { |k, val| eager_loadings.merge k, val }
52
52
  to_delete.each { |k| eager_loadings.delete k }
53
53
 
54
54
  eager_loadings.add bullet_keys, associations unless bullet_keys.empty?
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Bullet
3
- VERSION = "4.14.9"
3
+ VERSION = "4.14.10"
4
4
  end
@@ -30,14 +30,14 @@ module Bullet
30
30
  end
31
31
 
32
32
  it "should return blank if no user available" do
33
- temp_env_variable("USER","") do
33
+ temp_env_variable("USER", "") do
34
34
  expect(subject).to receive(:`).with("whoami").and_return("")
35
35
  expect(subject.whoami).to eq("")
36
36
  end
37
37
  end
38
38
 
39
39
  it "should return blank if whoami is not available" do
40
- temp_env_variable("USER","") do
40
+ temp_env_variable("USER", "") do
41
41
  expect(subject).to receive(:`).with("whoami").and_raise(Errno::ENOENT)
42
42
  expect(subject.whoami).to eq("")
43
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.14.9
4
+ version: 4.14.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-12 00:00:00.000000000 Z
11
+ date: 2015-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport