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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fed1df4b3bee8844b57b4d4201802361b5871d93db3fdb0132a4073fd56fc3a
4
- data.tar.gz: 56649719e9b94ed7eb05ccf3c6236399a6a2a9394ce37574a8e58f079b1ff3b4
3
+ metadata.gz: 3e2527bc8ec3ef67b4266b9a7221251d36f29f82697823eb6bba1e301031cd6f
4
+ data.tar.gz: b7117a64e62367c75ddd610c3c520ea7472f3d8f80d6e5f228c4642ed3ef2962
5
5
  SHA512:
6
- metadata.gz: cae71e3487fb5210bd6dd76ae0cf7ee1bb310748a3e3a9cd95d893dc2eb99c6fa90c8482366897a7a2e6c8ed479780d337ef2e1284c266fef00e7b67f5f42dad
7
- data.tar.gz: 270f6a75e499ffecd886d98739ccaa5f15ff60a7aebc1ebecc10cc0b2cfdd831137e482897d6ed217f0e60306e2b0350ef22d781a0475ad1a7dfda7563d6fc35
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
- (warmup || (methods.include?(:warmup) ? method(:warmup) : nil))&.call
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.include?(:populate) ? method(:populate) : nil
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:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NPlusOneControl
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: n_plus_one_control
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - palkan