bullet 4.14.9 → 4.14.10
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bullet/active_record42.rb +2 -2
- data/lib/bullet/detector/unused_eager_loading.rb +1 -1
- data/lib/bullet/version.rb +1 -1
- data/spec/bullet/notification/base_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 262911eb5bb5cc6577489084cca4c06042ec466b
|
4
|
+
data.tar.gz: 6aa0f9e1403c8f36cac9375b451880a82c9561cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99c812cc4085c2e9763ba05564f98b4b3ab9027820932eb70d09060fbfb69071d38d8d844b67d29dc167ad04983e8133fa5727b426122d9a4e0f3b9c55e9bd3b
|
7
|
+
data.tar.gz: d1316bb72c9228fb4b7746795d528506eb472d1bd906424c17bbb5a3adcdd995e75bcdec59b8a93959d80e9ef88e0bfb692092db505c95a50fcd32735f4dda8e
|
data/CHANGELOG.md
CHANGED
@@ -200,9 +200,9 @@ module Bullet
|
|
200
200
|
end
|
201
201
|
|
202
202
|
::ActiveRecord::Associations::HasManyThroughAssociation.class_eval do
|
203
|
-
alias_method :
|
203
|
+
alias_method :origin_hmt_has_cached_counter?, :has_cached_counter?
|
204
204
|
def has_cached_counter?(reflection = reflection())
|
205
|
-
result =
|
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?
|
data/lib/bullet/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|