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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba38b8b45ed71a06486486456dbda0e2d833f58ccf59fc7e22ecb3a1d4ec2dd7
4
- data.tar.gz: 5f5260b7699852144213e044386662b3168eff83068ee88257df478fd79c7314
3
+ metadata.gz: 6b6cb0236ad583a81b4b3d12fdf4bf9d83cb53cfb565973fd54e5ae8a9dbd487
4
+ data.tar.gz: 6e41c1f11d6e20f29fbff140a71bf44c6e67db274b6cc30531220839e9c903b7
5
5
  SHA512:
6
- metadata.gz: accc29f0bf8c2c80404a0777122446bea1ed7a6d57809b68b4ca21f66aedecdc161c3f29dd0777a61a2bccda158da3cb20892470994d335a4da63a2c09fbc80a
7
- data.tar.gz: 8c3c5b4f73bd953c7ced000471c3e91645e36c240d7e73f04631487344c3a9e14152b2c83b3d6dccdf3530936007deb4e3dbc819c6b28e86a34ef5b821802375
6
+ metadata.gz: 2ea2746f324798c678144e938f35e392dc9062d4ccdbd184726d0dd122ddd564c993db2ab20c7d45f989f542adca8e692e40f6d2edeef1201e7415ab2c78b625
7
+ data.tar.gz: 8448666265020b303754a109336f055402bdd375b020261a6d46f61d682c979e1e42edff409124bb9ee2cbc43744383f260c6b5908f55737c7b2fdefdf4856de
@@ -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
@@ -2,6 +2,6 @@ name: rubocop-minitest
2
2
  title: RuboCop Minitest
3
3
  # We always provide version without patch here (e.g. 1.1),
4
4
  # as patch versions should not appear in the docs.
5
- version: 0.10
5
+ version: '0.10'
6
6
  nav:
7
7
  - modules/ROOT/nav.adoc
@@ -26,7 +26,7 @@ module RuboCop
26
26
  end
27
27
 
28
28
  def test_case?(node)
29
- return false unless node.def_type? && test_case_name?(node.method_name)
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Minitest
5
- VERSION = '0.10.0'
5
+ VERSION = '0.10.1'
6
6
  end
7
7
  end
@@ -0,0 +1,5 @@
1
+ ### Bug fixes
2
+
3
+ * [#106](https://github.com/rubocop-hq/rubocop-minitest/issues/106): Fix an error for `Minitest/AssertOutput` when using gvar at top level. ([@koic][])
4
+
5
+ [@koic]: https://github.com/koic
@@ -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) + "\n"
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 + "\n")
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)
@@ -41,7 +41,7 @@ namespace :cut_release do
41
41
  File.open('docs/antora.yml', 'w') do |f|
42
42
  f << antora_metadata.sub(
43
43
  'version: master',
44
- "version: #{version_sans_patch(new_version)}"
44
+ "version: '#{version_sans_patch(new_version)}'"
45
45
  )
46
46
  end
47
47
  end
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.0
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-12 00:00:00.000000000 Z
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