bullet 4.13.0 → 4.13.1
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/README.md +1 -1
- data/lib/bullet/active_record41.rb +1 -1
- data/lib/bullet/rack.rb +2 -2
- data/lib/bullet/version.rb +1 -1
- 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: c4c663f19d349dc9be3a82803ba5e5af344ed0e2
|
|
4
|
+
data.tar.gz: f996a53cd2ce05eb85f11e55477b41d7b6f841f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9fe6ad4a5e0b23c19815a121e8b3dec2989c04f2e81836eba4a096a06b68ae7b33c7c202c1a7a99e697a48bd5bd29711b7ad0a2b17e1d203e32cc964a0e95314
|
|
7
|
+
data.tar.gz: 77e4bc950eaa4e0e87fd32beaa6f11a605e1e443b0de0f3fbea89798cd11721c3c6a4fa0c9f70bad5c3b7f65586a56b050e38265a21d57d57244e219ab0f8501
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Best practice is to use Bullet in development mode or custom mode (staging, prof
|
|
|
12
12
|
|
|
13
13
|
Bullet gem now supports **activerecord** >= 3.0 and **mongoid** >= 2.4.1.
|
|
14
14
|
|
|
15
|
-
If you use
|
|
15
|
+
If you use activerecord 2.x, please use bullet <= 4.5.0
|
|
16
16
|
|
|
17
17
|
## External Introduction
|
|
18
18
|
|
|
@@ -25,9 +25,9 @@ module Bullet
|
|
|
25
25
|
alias_method :origin_preloaders_on, :preloaders_on
|
|
26
26
|
|
|
27
27
|
def preloaders_on(association, records, scope)
|
|
28
|
+
records.compact!
|
|
28
29
|
if records.first.class.name !~ /^HABTM_/
|
|
29
30
|
records.each do |record|
|
|
30
|
-
next unless record
|
|
31
31
|
Bullet::Detector::Association.add_object_associations(record, association)
|
|
32
32
|
end
|
|
33
33
|
Bullet::Detector::UnusedEagerLoading.add_eager_loadings(records, association)
|
data/lib/bullet/rack.rb
CHANGED
|
@@ -20,11 +20,11 @@ module Bullet
|
|
|
20
20
|
headers['Content-Length'] = response_body.bytesize.to_s
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
|
-
[status, headers, response_body ? [response_body] : response]
|
|
24
|
-
ensure
|
|
25
23
|
if Bullet.enable? && Bullet.notification?
|
|
26
24
|
Bullet.perform_out_of_channel_notifications(env)
|
|
27
25
|
end
|
|
26
|
+
[status, headers, response_body ? [response_body] : response]
|
|
27
|
+
ensure
|
|
28
28
|
Bullet.end_request
|
|
29
29
|
end
|
|
30
30
|
|
data/lib/bullet/version.rb
CHANGED
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.13.
|
|
4
|
+
version: 4.13.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richard Huang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|