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 +4 -4
- data/CHANGELOG.md +7 -0
- data/config/default.yml +1 -0
- data/lib/rubocop/cop/minitest/assert_raises_compound_body.rb +1 -1
- data/lib/rubocop/cop/minitest/assert_silent.rb +1 -1
- data/lib/rubocop/cop/minitest/unreachable_assertion.rb +1 -1
- data/lib/rubocop/minitest/version.rb +1 -1
- data/relnotes/v0.21.1.md +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32fe1532cdbac42cfc34dd6be3ce6c06af43c58b0fdac50d4d0afafb92006db8
|
4
|
+
data.tar.gz: bfdd3899218529e728b777b77092103c1bf9db73523835666988d953a6b47f3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -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)
|
@@ -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
|
data/relnotes/v0.21.1.md
ADDED
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.
|
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-
|
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
|