rubocop-minitest 0.8.0 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +15 -3
  3. data/.rubocop.yml +3 -1
  4. data/.rubocop_todo.yml +7 -13
  5. data/CHANGELOG.md +52 -0
  6. data/Gemfile +1 -1
  7. data/README.md +18 -2
  8. data/Rakefile +29 -0
  9. data/config/default.yml +96 -16
  10. data/docs/antora.yml +7 -0
  11. data/docs/modules/ROOT/nav.adoc +6 -0
  12. data/docs/modules/ROOT/pages/cops.adoc +48 -0
  13. data/docs/modules/ROOT/pages/cops_minitest.adoc +1014 -0
  14. data/docs/modules/ROOT/pages/index.adoc +5 -0
  15. data/docs/modules/ROOT/pages/installation.adoc +15 -0
  16. data/docs/modules/ROOT/pages/usage.adoc +32 -0
  17. data/{manual → legacy-docs}/cops.md +0 -0
  18. data/{manual → legacy-docs}/cops_minitest.md +0 -0
  19. data/{manual → legacy-docs}/index.md +0 -0
  20. data/{manual → legacy-docs}/installation.md +0 -0
  21. data/{manual → legacy-docs}/usage.md +0 -0
  22. data/lib/rubocop/cop/generator.rb +56 -0
  23. data/lib/rubocop/cop/minitest/assert_empty_literal.rb +15 -0
  24. data/lib/rubocop/cop/minitest/assert_in_delta.rb +27 -0
  25. data/lib/rubocop/cop/minitest/assert_kind_of.rb +25 -0
  26. data/lib/rubocop/cop/minitest/assert_output.rb +49 -0
  27. data/lib/rubocop/cop/minitest/assert_path_exists.rb +58 -0
  28. data/lib/rubocop/cop/minitest/assert_silent.rb +45 -0
  29. data/lib/rubocop/cop/minitest/assertion_in_lifecycle_hook.rb +43 -0
  30. data/lib/rubocop/cop/minitest/global_expectations.rb +27 -13
  31. data/lib/rubocop/cop/minitest/literal_as_actual_argument.rb +52 -0
  32. data/lib/rubocop/cop/minitest/multiple_assertions.rb +63 -0
  33. data/lib/rubocop/cop/minitest/refute_equal.rb +1 -1
  34. data/lib/rubocop/cop/minitest/refute_in_delta.rb +27 -0
  35. data/lib/rubocop/cop/minitest/refute_kind_of.rb +25 -0
  36. data/lib/rubocop/cop/minitest/refute_path_exists.rb +58 -0
  37. data/lib/rubocop/cop/minitest/test_method_name.rb +70 -0
  38. data/lib/rubocop/cop/minitest/unspecified_exception.rb +36 -0
  39. data/lib/rubocop/cop/minitest_cops.rb +15 -0
  40. data/lib/rubocop/cop/mixin/argument_range_helper.rb +10 -0
  41. data/lib/rubocop/cop/mixin/in_delta_mixin.rb +50 -0
  42. data/lib/rubocop/cop/mixin/minitest_cop_rule.rb +2 -4
  43. data/lib/rubocop/cop/mixin/minitest_exploration_helpers.rb +84 -0
  44. data/lib/rubocop/minitest/version.rb +8 -1
  45. data/mkdocs.yml +2 -2
  46. data/relnotes/v0.10.0.md +21 -0
  47. data/relnotes/v0.10.1.md +5 -0
  48. data/relnotes/v0.10.2.md +5 -0
  49. data/relnotes/v0.8.1.md +5 -0
  50. data/relnotes/v0.9.0.md +10 -0
  51. data/rubocop-minitest.gemspec +5 -5
  52. data/tasks/cops_documentation.rake +15 -264
  53. data/tasks/cut_release.rake +16 -0
  54. metadata +52 -18
@@ -35,6 +35,21 @@ namespace :cut_release do
35
35
  end
36
36
  end
37
37
 
38
+ def update_antora_yml(new_version)
39
+ antora_metadata = File.read('docs/antora.yml')
40
+
41
+ File.open('docs/antora.yml', 'w') do |f|
42
+ f << antora_metadata.sub(
43
+ 'version: master',
44
+ "version: '#{version_sans_patch(new_version)}'"
45
+ )
46
+ end
47
+ end
48
+
49
+ def version_sans_patch(version)
50
+ version.split('.').take(2).join('.')
51
+ end
52
+
38
53
  def new_version_changes
39
54
  changelog = File.read('CHANGELOG.md')
40
55
  _, _, new_changes, _older_changes = changelog.split(/^## .*$/, 4)
@@ -54,6 +69,7 @@ namespace :cut_release do
54
69
 
55
70
  add_header_to_changelog(new_version)
56
71
  create_release_notes(new_version)
72
+ update_antora_yml(new_version)
57
73
 
58
74
  puts "Changed version from #{old_version} to #{new_version}."
59
75
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
8
8
  - Jonas Arvidsson
9
9
  - Koichi ITO
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-03-23 00:00:00.000000000 Z
13
+ date: 2020-12-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop
@@ -18,14 +18,20 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '0.74'
21
+ version: '0.87'
22
+ - - "<"
23
+ - !ruby/object:Gem::Version
24
+ version: '2.0'
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  requirements:
26
29
  - - ">="
27
30
  - !ruby/object:Gem::Version
28
- version: '0.74'
31
+ version: '0.87'
32
+ - - "<"
33
+ - !ruby/object:Gem::Version
34
+ version: '2.0'
29
35
  - !ruby/object:Gem::Dependency
30
36
  name: minitest
31
37
  requirement: !ruby/object:Gem::Requirement
@@ -43,7 +49,7 @@ dependencies:
43
49
  description: |
44
50
  Automatic Minitest code style checking tool.
45
51
  A RuboCop extension focused on enforcing Minitest best practices and coding conventions.
46
- email:
52
+ email:
47
53
  executables: []
48
54
  extensions: []
49
55
  extra_rdoc_files: []
@@ -66,39 +72,65 @@ files:
66
72
  - bin/console
67
73
  - bin/setup
68
74
  - config/default.yml
75
+ - docs/antora.yml
76
+ - docs/modules/ROOT/nav.adoc
77
+ - docs/modules/ROOT/pages/cops.adoc
78
+ - docs/modules/ROOT/pages/cops_minitest.adoc
79
+ - docs/modules/ROOT/pages/index.adoc
80
+ - docs/modules/ROOT/pages/installation.adoc
81
+ - docs/modules/ROOT/pages/usage.adoc
82
+ - legacy-docs/cops.md
83
+ - legacy-docs/cops_minitest.md
84
+ - legacy-docs/index.md
85
+ - legacy-docs/installation.md
86
+ - legacy-docs/usage.md
69
87
  - lib/rubocop-minitest.rb
88
+ - lib/rubocop/cop/generator.rb
70
89
  - lib/rubocop/cop/minitest/assert_empty.rb
71
90
  - lib/rubocop/cop/minitest/assert_empty_literal.rb
72
91
  - lib/rubocop/cop/minitest/assert_equal.rb
92
+ - lib/rubocop/cop/minitest/assert_in_delta.rb
73
93
  - lib/rubocop/cop/minitest/assert_includes.rb
74
94
  - lib/rubocop/cop/minitest/assert_instance_of.rb
95
+ - lib/rubocop/cop/minitest/assert_kind_of.rb
75
96
  - lib/rubocop/cop/minitest/assert_match.rb
76
97
  - lib/rubocop/cop/minitest/assert_nil.rb
98
+ - lib/rubocop/cop/minitest/assert_output.rb
99
+ - lib/rubocop/cop/minitest/assert_path_exists.rb
77
100
  - lib/rubocop/cop/minitest/assert_respond_to.rb
101
+ - lib/rubocop/cop/minitest/assert_silent.rb
78
102
  - lib/rubocop/cop/minitest/assert_truthy.rb
103
+ - lib/rubocop/cop/minitest/assertion_in_lifecycle_hook.rb
79
104
  - lib/rubocop/cop/minitest/global_expectations.rb
105
+ - lib/rubocop/cop/minitest/literal_as_actual_argument.rb
106
+ - lib/rubocop/cop/minitest/multiple_assertions.rb
80
107
  - lib/rubocop/cop/minitest/refute_empty.rb
81
108
  - lib/rubocop/cop/minitest/refute_equal.rb
82
109
  - lib/rubocop/cop/minitest/refute_false.rb
110
+ - lib/rubocop/cop/minitest/refute_in_delta.rb
83
111
  - lib/rubocop/cop/minitest/refute_includes.rb
84
112
  - lib/rubocop/cop/minitest/refute_instance_of.rb
113
+ - lib/rubocop/cop/minitest/refute_kind_of.rb
85
114
  - lib/rubocop/cop/minitest/refute_match.rb
86
115
  - lib/rubocop/cop/minitest/refute_nil.rb
116
+ - lib/rubocop/cop/minitest/refute_path_exists.rb
87
117
  - lib/rubocop/cop/minitest/refute_respond_to.rb
118
+ - lib/rubocop/cop/minitest/test_method_name.rb
119
+ - lib/rubocop/cop/minitest/unspecified_exception.rb
88
120
  - lib/rubocop/cop/minitest_cops.rb
89
121
  - lib/rubocop/cop/mixin/argument_range_helper.rb
122
+ - lib/rubocop/cop/mixin/in_delta_mixin.rb
90
123
  - lib/rubocop/cop/mixin/minitest_cop_rule.rb
124
+ - lib/rubocop/cop/mixin/minitest_exploration_helpers.rb
91
125
  - lib/rubocop/minitest.rb
92
126
  - lib/rubocop/minitest/inject.rb
93
127
  - lib/rubocop/minitest/version.rb
94
- - manual/cops.md
95
- - manual/cops_minitest.md
96
- - manual/index.md
97
- - manual/installation.md
98
- - manual/usage.md
99
128
  - mkdocs.yml
100
129
  - readthedocs.yml
101
130
  - relnotes/v0.1.0.md
131
+ - relnotes/v0.10.0.md
132
+ - relnotes/v0.10.1.md
133
+ - relnotes/v0.10.2.md
102
134
  - relnotes/v0.2.0.md
103
135
  - relnotes/v0.2.1.md
104
136
  - relnotes/v0.3.0.md
@@ -111,19 +143,21 @@ files:
111
143
  - relnotes/v0.6.2.md
112
144
  - relnotes/v0.7.0.md
113
145
  - relnotes/v0.8.0.md
146
+ - relnotes/v0.8.1.md
147
+ - relnotes/v0.9.0.md
114
148
  - rubocop-minitest.gemspec
115
149
  - tasks/cops_documentation.rake
116
150
  - tasks/cut_release.rake
117
- homepage:
151
+ homepage:
118
152
  licenses:
119
153
  - MIT
120
154
  metadata:
121
- homepage_uri: https://docs.rubocop.org/projects/minitest/
155
+ homepage_uri: https://docs.rubocop.org/rubocop-minitest/
122
156
  changelog_uri: https://github.com/rubocop-hq/rubocop-minitest/blob/master/CHANGELOG.md
123
157
  source_code_uri: https://github.com/rubocop-hq/rubocop-minitest
124
- documentation_uri: https://docs.rubocop.org/projects/minitest/
158
+ documentation_uri: https://docs.rubocop.org/rubocop-minitest/0.10
125
159
  bug_tracker_uri: https://github.com/rubocop-hq/rubocop-minitest/issues
126
- post_install_message:
160
+ post_install_message:
127
161
  rdoc_options: []
128
162
  require_paths:
129
163
  - lib
@@ -131,15 +165,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
165
  requirements:
132
166
  - - ">="
133
167
  - !ruby/object:Gem::Version
134
- version: 2.3.0
168
+ version: 2.4.0
135
169
  required_rubygems_version: !ruby/object:Gem::Requirement
136
170
  requirements:
137
171
  - - ">="
138
172
  - !ruby/object:Gem::Version
139
173
  version: '0'
140
174
  requirements: []
141
- rubygems_version: 3.1.2
142
- signing_key:
175
+ rubygems_version: 3.2.3
176
+ signing_key:
143
177
  specification_version: 4
144
178
  summary: Automatic Minitest code style checking tool.
145
179
  test_files: []