bullet 7.1.4 → 7.1.5
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/mongoid8x.rb +4 -4
- data/lib/bullet/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ab16fc9ca893dbbc4fe755f9abe72e769f2e03b8405edf3189f0b92a17a75b5
|
4
|
+
data.tar.gz: 1072d72f4e58e28fa6e1a9f6337980e34a07897a146e3d9d5b060fa7e7923816
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10b11f86e3f57dfe5e58b64b384f90b86eb98ed71768c077f07af802b0a1646c4ddbb2bca876e8ff8a5ecd9a8dc008a41cece6c4c26819e04c386855ffd3d23d
|
7
|
+
data.tar.gz: 12629a5920c40d5471a2737d6b9ac0148b852127f796b2534a5cf87958ad24a5d69dfdc9c6cd7b4a66f807f492884a32be5af19cbeee7f364515d1f213a97882
|
data/CHANGELOG.md
CHANGED
data/lib/bullet/mongoid8x.rb
CHANGED
@@ -8,14 +8,14 @@ module Bullet
|
|
8
8
|
alias_method :origin_each, :each
|
9
9
|
alias_method :origin_eager_load, :eager_load
|
10
10
|
|
11
|
-
def first(
|
12
|
-
result = origin_first(
|
11
|
+
def first(limit = nil)
|
12
|
+
result = origin_first(limit)
|
13
13
|
Bullet::Detector::NPlusOneQuery.add_impossible_object(result) if result
|
14
14
|
result
|
15
15
|
end
|
16
16
|
|
17
|
-
def last(
|
18
|
-
result = origin_last(
|
17
|
+
def last(limit = nil)
|
18
|
+
result = origin_last(limit)
|
19
19
|
Bullet::Detector::NPlusOneQuery.add_impossible_object(result) if result
|
20
20
|
result
|
21
21
|
end
|
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: 7.1.
|
4
|
+
version: 7.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 1.3.6
|
113
113
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
114
|
+
rubygems_version: 3.5.3
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: help to kill N+1 queries and unused eager loading.
|