rubocop-minitest 0.19.0 → 0.19.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 +8 -1
- data/lib/rubocop/cop/minitest/duplicate_test_run.rb +4 -1
- data/lib/rubocop/minitest/version.rb +1 -1
- data/relnotes/v0.19.0.md +1 -1
- data/relnotes/v0.19.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: 75689600fc3dd6dc4fe96f80dc7c7e8a3b26e59978a15334f58c12421279873f
|
|
4
|
+
data.tar.gz: afad72a5c22682e4c79fffae91c7f49d25f08d925ed001bec887f8624ad1a391
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c3c53d4f3e5915a39babb33862bc7ee9a1aef01e76fa680581723631c6a101a04af01f15fa33047c01f2dd57b99d44ac3da99f66bf5f06b8923e07f5c03f986
|
|
7
|
+
data.tar.gz: 649292ccae1c3a021f9c72399b03f3b38bf223c78e492e7ec93a5c030a73c920c3e1b7cae305d21b3942a68fe57d5451105e184fd20166f9820878bf077decc1
|
data/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
## master (unreleased)
|
|
4
4
|
|
|
5
|
+
## 0.19.1 (2022-04-10)
|
|
6
|
+
|
|
7
|
+
### Bug fixes
|
|
8
|
+
|
|
9
|
+
* [#167](https://github.com/rubocop/rubocop-minitest/pull/167): Fix potential for valid Ruby code to be unparsable in `Minitest/DuplicateTestRun` cop. ([@gjtorikian][])
|
|
10
|
+
|
|
5
11
|
## 0.19.0 (2022-04-05)
|
|
6
12
|
|
|
7
13
|
### New features
|
|
8
14
|
|
|
9
|
-
* [#164](https://github.com/rubocop/rubocop-minitest/pull/164): Add new `Minitest/DuplicateTestRun cop. ([@ignacio-chiazzo][])
|
|
15
|
+
* [#164](https://github.com/rubocop/rubocop-minitest/pull/164): Add new `Minitest/DuplicateTestRun` cop. ([@ignacio-chiazzo][])
|
|
10
16
|
|
|
11
17
|
## 0.18.0 (2022-03-13)
|
|
12
18
|
|
|
@@ -293,3 +299,4 @@
|
|
|
293
299
|
[@ghiculescu]: https://github.com/ghiculescu
|
|
294
300
|
[@gi]: https://github.com/gi
|
|
295
301
|
[@ignacio-chiazzo]: https://github.com/ignacio-chiazzo
|
|
302
|
+
[@gjtorikian]: https://github.com/gjtorikian
|
|
@@ -63,7 +63,10 @@ module RuboCop
|
|
|
63
63
|
|
|
64
64
|
def parent_class_has_test_methods?(class_node)
|
|
65
65
|
parent_class = class_node.parent_class
|
|
66
|
-
|
|
66
|
+
|
|
67
|
+
return false unless (class_node_parent = class_node.parent)
|
|
68
|
+
|
|
69
|
+
parent_class_node = class_node_parent.each_child_node(:class).detect do |klass|
|
|
67
70
|
klass.identifier == parent_class
|
|
68
71
|
end
|
|
69
72
|
|
data/relnotes/v0.19.0.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
### New features
|
|
2
2
|
|
|
3
|
-
* [#164](https://github.com/rubocop/rubocop-minitest/pull/164): Add new `Minitest/DuplicateTestRun cop. ([@ignacio-chiazzo][])
|
|
3
|
+
* [#164](https://github.com/rubocop/rubocop-minitest/pull/164): Add new `Minitest/DuplicateTestRun` cop. ([@ignacio-chiazzo][])
|
|
4
4
|
|
|
5
5
|
[@ignacio-chiazzo]: https://github.com/ignacio-chiazzo
|
data/relnotes/v0.19.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.19.
|
|
4
|
+
version: 0.19.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-04-
|
|
13
|
+
date: 2022-04-10 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rubocop
|
|
@@ -162,6 +162,7 @@ files:
|
|
|
162
162
|
- relnotes/v0.17.2.md
|
|
163
163
|
- relnotes/v0.18.0.md
|
|
164
164
|
- relnotes/v0.19.0.md
|
|
165
|
+
- relnotes/v0.19.1.md
|
|
165
166
|
- relnotes/v0.2.0.md
|
|
166
167
|
- relnotes/v0.2.1.md
|
|
167
168
|
- relnotes/v0.3.0.md
|