rubocop-minitest 0.21.0 → 0.21.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
  SHA256:
3
- metadata.gz: 1026c124f46d1dc887ec84cc1a0bf3b246afee76f0201c3d96bbd0895f3045e9
4
- data.tar.gz: 2a66060a132b7235c2bbe77747df17fdb47bcf0011b0f03467612f514c7454de
3
+ metadata.gz: 32fe1532cdbac42cfc34dd6be3ce6c06af43c58b0fdac50d4d0afafb92006db8
4
+ data.tar.gz: bfdd3899218529e728b777b77092103c1bf9db73523835666988d953a6b47f3d
5
5
  SHA512:
6
- metadata.gz: dd56df2ffbf84f91e18af928f18d66decae8879a030db57f1833f1c4811aaf670c367067e42304b6ba94a38cbb7a13aeb55706d02f8495d25e4b5a1a66930c38
7
- data.tar.gz: bf2460fca6fe8af2921a84e8b9f6c2fd6e34528a01f9c3c4b781dac4946fe7b042943977baf2c6d9dee7e83f4cf1a8573db492b06b6f63dff559320ccf5e733e
6
+ metadata.gz: a6c4de4a42725e76f84de44313534b07a958f7c84ac5a63b8c7948b1edb9eadc27e81734721f7adda6b6b0b2d4a9e9ee8a90f9fa401fde7bd2faf799b229dded
7
+ data.tar.gz: 01d06e6462b2fc9f4dbdc133392d4b266a2df33ebac5ebbe042dd6d3185062bfd4df1017b4a3e255e12b56152284f2d2484668e650262907c9de3a3bccaee299
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 0.21.1 (2022-08-28)
6
+
7
+ ### Bug fixes
8
+
9
+ * [#178](https://github.com/rubocop/rubocop-minitest/pull/178): Fix incorrect documentation URLs when using `rubocop --show-docs-url`. ([@r7kamura][])
10
+
5
11
  ## 0.21.0 (2022-07-31)
6
12
 
7
13
  ### New features
@@ -327,3 +333,4 @@
327
333
  [@ignacio-chiazzo]: https://github.com/ignacio-chiazzo
328
334
  [@gjtorikian]: https://github.com/gjtorikian
329
335
  [@ippachi]: https://github.com/ippachi
336
+ [@r7kamura]: https://github.com/r7kamura
data/config/default.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  Minitest:
2
2
  Enabled: true
3
+ DocumentationBaseURL: https://docs.rubocop.org/rubocop-minitest
3
4
  Include:
4
5
  - '**/test/**/*'
5
6
  - '**/*_test.rb'
@@ -28,7 +28,7 @@ module RuboCop
28
28
  class AssertRaisesCompoundBody < Base
29
29
  MSG = 'Reduce `assert_raises` block body to contain only the raising code.'
30
30
 
31
- def on_block(node)
31
+ def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler
32
32
  return unless node.method?(:assert_raises) && multi_statement_begin?(node.body)
33
33
 
34
34
  add_offense(node)
@@ -26,7 +26,7 @@ module RuboCop
26
26
  ...)
27
27
  PATTERN
28
28
 
29
- def on_block(node)
29
+ def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler
30
30
  return unless assert_silent_candidate?(node)
31
31
 
32
32
  send_node = node.send_node
@@ -25,7 +25,7 @@ module RuboCop
25
25
 
26
26
  MSG = 'Unreachable `%<assertion_method>s` detected.'
27
27
 
28
- def on_block(node)
28
+ def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler
29
29
  return unless node.method?(:assert_raises) && (body = node.body)
30
30
 
31
31
  last_node = body.begin_type? ? body.children.last : body
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module Minitest
5
5
  # This module holds the RuboCop Minitest version information.
6
6
  module Version
7
- STRING = '0.21.0'
7
+ STRING = '0.21.1'
8
8
 
9
9
  def self.document_version
10
10
  STRING.match('\d+\.\d+').to_s
@@ -0,0 +1,5 @@
1
+ ### Bug fixes
2
+
3
+ * [#178](https://github.com/rubocop/rubocop-minitest/pull/178): Fix incorrect documentation URLs when using `rubocop --show-docs-url`. ([@r7kamura][])
4
+
5
+ [@r7kamura]: https://github.com/r7kamura
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-07-31 00:00:00.000000000 Z
13
+ date: 2022-08-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop
@@ -170,6 +170,7 @@ files:
170
170
  - relnotes/v0.20.0.md
171
171
  - relnotes/v0.20.1.md
172
172
  - relnotes/v0.21.0.md
173
+ - relnotes/v0.21.1.md
173
174
  - relnotes/v0.3.0.md
174
175
  - relnotes/v0.4.0.md
175
176
  - relnotes/v0.4.1.md