rubocop-minitest 0.10.0 → 0.10.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 +6 -0
- data/docs/antora.yml +1 -1
- data/lib/rubocop/cop/mixin/minitest_exploration_helpers.rb +1 -1
- data/lib/rubocop/minitest/version.rb +1 -1
- data/relnotes/v0.10.1.md +5 -0
- data/tasks/cops_documentation.rake +2 -4
- data/tasks/cut_release.rake +1 -1
- 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: 6b6cb0236ad583a81b4b3d12fdf4bf9d83cb53cfb565973fd54e5ae8a9dbd487
|
4
|
+
data.tar.gz: 6e41c1f11d6e20f29fbff140a71bf44c6e67db274b6cc30531220839e9c903b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ea2746f324798c678144e938f35e392dc9062d4ccdbd184726d0dd122ddd564c993db2ab20c7d45f989f542adca8e692e40f6d2edeef1201e7415ab2c78b625
|
7
|
+
data.tar.gz: 8448666265020b303754a109336f055402bdd375b020261a6d46f61d682c979e1e42edff409124bb9ee2cbc43744383f260c6b5908f55737c7b2fdefdf4856de
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
## master (unreleased)
|
4
4
|
|
5
|
+
## 0.10.1 (2020-07-25)
|
6
|
+
|
7
|
+
### Bug fixes
|
8
|
+
|
9
|
+
* [#106](https://github.com/rubocop-hq/rubocop-minitest/issues/106): Fix an error for `Minitest/AssertOutput` when using gvar at top level. ([@koic][])
|
10
|
+
|
5
11
|
## 0.10.0 (2020-07-12)
|
6
12
|
|
7
13
|
### New features
|
data/docs/antora.yml
CHANGED
@@ -26,7 +26,7 @@ module RuboCop
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def test_case?(node)
|
29
|
-
return false unless node
|
29
|
+
return false unless node&.def_type? && test_case_name?(node.method_name)
|
30
30
|
|
31
31
|
class_ancestor = node.each_ancestor(:class).first
|
32
32
|
test_class?(class_ancestor)
|
data/relnotes/v0.10.1.md
ADDED
@@ -59,7 +59,7 @@ task generate_cops_documentation: :yard_for_generate_documentation do
|
|
59
59
|
cop_config.fetch('VersionAdded', '-'),
|
60
60
|
cop_config.fetch('VersionChanged', '-')
|
61
61
|
]]
|
62
|
-
to_table(header, content)
|
62
|
+
"#{to_table(header, content)}\n"
|
63
63
|
end
|
64
64
|
# rubocop:enable Metrics/MethodLength
|
65
65
|
|
@@ -184,7 +184,6 @@ task generate_cops_documentation: :yard_for_generate_documentation do
|
|
184
184
|
content
|
185
185
|
end
|
186
186
|
|
187
|
-
# rubocop:disable Metrics/AbcSize
|
188
187
|
def print_cops_of_department(cops, department, config)
|
189
188
|
selected_cops = cops_of_department(cops, department).select do |cop|
|
190
189
|
cop.to_s.start_with?('RuboCop::Cop::Minitest')
|
@@ -199,10 +198,9 @@ task generate_cops_documentation: :yard_for_generate_documentation do
|
|
199
198
|
file_name = "#{Dir.pwd}/docs/modules/ROOT/pages/cops_#{department.downcase}.adoc"
|
200
199
|
File.open(file_name, 'w') do |file|
|
201
200
|
puts "* generated #{file_name}"
|
202
|
-
file.write(content.strip
|
201
|
+
file.write("#{content.strip}\n")
|
203
202
|
end
|
204
203
|
end
|
205
|
-
# rubocop:enable Metrics/AbcSize
|
206
204
|
|
207
205
|
def print_cop_with_doc(cop, config)
|
208
206
|
t = config.for_cop(cop)
|
data/tasks/cut_release.rake
CHANGED
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.10.
|
4
|
+
version: 0.10.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: 2020-07-
|
13
|
+
date: 2020-07-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubocop
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- readthedocs.yml
|
124
124
|
- relnotes/v0.1.0.md
|
125
125
|
- relnotes/v0.10.0.md
|
126
|
+
- relnotes/v0.10.1.md
|
126
127
|
- relnotes/v0.2.0.md
|
127
128
|
- relnotes/v0.2.1.md
|
128
129
|
- relnotes/v0.3.0.md
|