n_plus_one_control 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/n_plus_one_control/minitest.rb +4 -2
- data/lib/n_plus_one_control/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e2527bc8ec3ef67b4266b9a7221251d36f29f82697823eb6bba1e301031cd6f
|
4
|
+
data.tar.gz: b7117a64e62367c75ddd610c3c520ea7472f3d8f80d6e5f228c4642ed3ef2962
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29583c392acbdc865b6a01cb1b9e132fe128bf3f9c3b3ced9087b6a58611577315dd4f86fe92ca90f469473ac080fba63f98a95bb771169a34f7d3d39c36f395
|
7
|
+
data.tar.gz: 752b24bd5bf12d77a89c6fcabfc782e6a0757c98265e519fe1becd1929b058369dd2d545ab3eb6f6c9c4f3eac79e5e099c59c6735247fecf34cde20a6f43cf78
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
## 0.7.1 (2023-02-17)
|
6
|
+
|
7
|
+
- Recognize private `#populate` and `#warmup` methods in Minitest classes. ([@palkan][])
|
8
|
+
|
5
9
|
## 0.7.0 (2023-02-17)
|
6
10
|
|
7
11
|
- Added ability to specify the exact number of expected queries when using constant matchers. ([@akostadinov][], [@palkan][])
|
@@ -64,11 +64,13 @@ module NPlusOneControl
|
|
64
64
|
private
|
65
65
|
|
66
66
|
def warming_up(warmup)
|
67
|
-
|
67
|
+
own_methods = methods(false) + private_methods(false)
|
68
|
+
(warmup || (own_methods.include?(:warmup) ? method(:warmup) : nil))&.call
|
68
69
|
end
|
69
70
|
|
70
71
|
def population_method
|
71
|
-
methods
|
72
|
+
own_methods = methods(false) + private_methods(false)
|
73
|
+
own_methods.include?(:populate) ? method(:populate) : nil
|
72
74
|
end
|
73
75
|
|
74
76
|
def linear?(queries, slope:)
|