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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e90d569b3150f0988aeb2f614513e4603f231a92
4
- data.tar.gz: 8106c975d3aa193772e6146757c2f55144f8205e
3
+ metadata.gz: c4c663f19d349dc9be3a82803ba5e5af344ed0e2
4
+ data.tar.gz: f996a53cd2ce05eb85f11e55477b41d7b6f841f8
5
5
  SHA512:
6
- metadata.gz: d7fdb81048632cf1c99bf42680ce5c78ef8f605be770088d2d7f623f25663fb1a00e8f860775175791b54245f1a610430372d7402b35e29b4a636148052ef0e6
7
- data.tar.gz: 12518c2cafae4fa1db72215e3d6430c1781f82601176db91edf5b7246f52305a9991f37f522517e71af3d4435b5159589efbc25379694e38c76726cedd85ffc0
6
+ metadata.gz: 9fe6ad4a5e0b23c19815a121e8b3dec2989c04f2e81836eba4a096a06b68ae7b33c7c202c1a7a99e697a48bd5bd29711b7ad0a2b17e1d203e32cc964a0e95314
7
+ data.tar.gz: 77e4bc950eaa4e0e87fd32beaa6f11a605e1e443b0de0f3fbea89798cd11721c3c6a4fa0c9f70bad5c3b7f65586a56b050e38265a21d57d57244e219ab0f8501
@@ -1,5 +1,9 @@
1
1
  # Next Release
2
2
 
3
+ ## 4.13.1
4
+
5
+ * Fix swallow exception issue
6
+
3
7
  ## 4.13.0 (07/19/2014)
4
8
 
5
9
  * Support include? call on ar associations
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 activercord 2.x, please use bullet <= 4.5.0
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)
@@ -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
 
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Bullet
3
- VERSION = "4.13.0"
3
+ VERSION = "4.13.1"
4
4
  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.13.0
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-07-19 00:00:00.000000000 Z
11
+ date: 2014-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport