rubocop_todo_corrector 0.14.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +46 -33
- data/README.md +1 -2
- data/lib/rubocop_todo_corrector/bundle_installer.rb +6 -4
- data/lib/rubocop_todo_corrector/gem_names_detector.rb +6 -1
- data/lib/rubocop_todo_corrector/version.rb +1 -1
- data/rubocop_todo_corrector.gemspec +2 -2
- data/templates/description.md.erb +2 -2
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6286836083087aa95551c0fcfcd019f95ea4596011e6208e2296d11caf8ed306
|
4
|
+
data.tar.gz: ee9abda851112f0ced9fb75b6ca50eb4e3c12411e737b041da8588dc2578c660
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa2b6664aa98cd5abf105062ca8b57c7f1766ca016c2c37cab3f0757ecfc6acfea52af068c267a47be883e9efa53d45ceb25dbe465cff0c01b5e24cc4494f9a8
|
7
|
+
data.tar.gz: 38e28d70439c08fe1d2b2967e218a5e0a0d0810d9129d7ef958932269184a8cfb8e266f65f04059ffe2c3ff473433f314c28e7af367b85c9a8252887f5efb0fb
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rubocop_todo_corrector (0.
|
4
|
+
rubocop_todo_corrector (0.16.0)
|
5
5
|
asciidoctor
|
6
6
|
bundler
|
7
7
|
thor
|
@@ -10,50 +10,63 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
asciidoctor (2.0.
|
13
|
+
asciidoctor (2.0.22)
|
14
14
|
ast (2.4.2)
|
15
|
-
diff-lcs (1.5.
|
16
|
-
|
17
|
-
|
15
|
+
diff-lcs (1.5.1)
|
16
|
+
json (2.7.2)
|
17
|
+
language_server-protocol (3.17.0.3)
|
18
|
+
parallel (1.24.0)
|
19
|
+
parser (3.3.1.0)
|
18
20
|
ast (~> 2.4.1)
|
21
|
+
racc
|
22
|
+
racc (1.7.3)
|
19
23
|
rainbow (3.1.1)
|
20
|
-
rake (13.
|
21
|
-
regexp_parser (2.
|
22
|
-
rexml (3.2.
|
23
|
-
rspec (3.
|
24
|
-
rspec-core (~> 3.
|
25
|
-
rspec-expectations (~> 3.
|
26
|
-
rspec-mocks (~> 3.
|
27
|
-
rspec-core (3.
|
28
|
-
rspec-support (~> 3.
|
29
|
-
rspec-expectations (3.
|
24
|
+
rake (13.2.1)
|
25
|
+
regexp_parser (2.9.0)
|
26
|
+
rexml (3.2.6)
|
27
|
+
rspec (3.13.0)
|
28
|
+
rspec-core (~> 3.13.0)
|
29
|
+
rspec-expectations (~> 3.13.0)
|
30
|
+
rspec-mocks (~> 3.13.0)
|
31
|
+
rspec-core (3.13.0)
|
32
|
+
rspec-support (~> 3.13.0)
|
33
|
+
rspec-expectations (3.13.0)
|
30
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
-
rspec-support (~> 3.
|
32
|
-
rspec-mocks (3.
|
35
|
+
rspec-support (~> 3.13.0)
|
36
|
+
rspec-mocks (3.13.0)
|
33
37
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
-
rspec-support (~> 3.
|
35
|
-
rspec-support (3.
|
36
|
-
rubocop (1.
|
38
|
+
rspec-support (~> 3.13.0)
|
39
|
+
rspec-support (3.13.1)
|
40
|
+
rubocop (1.63.4)
|
41
|
+
json (~> 2.3)
|
42
|
+
language_server-protocol (>= 3.17.0)
|
37
43
|
parallel (~> 1.10)
|
38
|
-
parser (>= 3.
|
44
|
+
parser (>= 3.3.0.2)
|
39
45
|
rainbow (>= 2.2.2, < 4.0)
|
40
46
|
regexp_parser (>= 1.8, < 3.0)
|
41
47
|
rexml (>= 3.2.5, < 4.0)
|
42
|
-
rubocop-ast (>= 1.
|
48
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
43
49
|
ruby-progressbar (~> 1.7)
|
44
|
-
unicode-display_width (>=
|
45
|
-
rubocop-ast (1.
|
46
|
-
parser (>= 3.
|
50
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
51
|
+
rubocop-ast (1.31.3)
|
52
|
+
parser (>= 3.3.1.0)
|
53
|
+
rubocop-capybara (2.20.0)
|
54
|
+
rubocop (~> 1.41)
|
55
|
+
rubocop-factory_bot (2.25.1)
|
56
|
+
rubocop (~> 1.41)
|
47
57
|
rubocop-rake (0.6.0)
|
48
58
|
rubocop (~> 1.0)
|
49
|
-
rubocop-rspec (2.
|
50
|
-
rubocop (~> 1.
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
59
|
+
rubocop-rspec (2.29.1)
|
60
|
+
rubocop (~> 1.40)
|
61
|
+
rubocop-capybara (~> 2.17)
|
62
|
+
rubocop-factory_bot (~> 2.22)
|
63
|
+
rubocop-rspec_rails (~> 2.28)
|
64
|
+
rubocop-rspec_rails (2.28.3)
|
65
|
+
rubocop (~> 1.40)
|
66
|
+
ruby-progressbar (1.13.0)
|
67
|
+
thor (1.3.1)
|
68
|
+
unicode-display_width (2.5.0)
|
69
|
+
yard (0.9.36)
|
57
70
|
|
58
71
|
PLATFORMS
|
59
72
|
x86_64-darwin-21
|
data/README.md
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# RubocopTodoCorrector
|
2
2
|
|
3
3
|
[![test](https://github.com/r7kamura/rubocop_todo_corrector/actions/workflows/test.yml/badge.svg)](https://github.com/r7kamura/rubocop_todo_corrector/actions/workflows/test.yml)
|
4
|
-
[![Gem Version](https://badge.fury.io/rb/rubocop_todo_corrector.svg)](https://rubygems.org/gems/rubocop_todo_corrector)
|
5
4
|
|
6
|
-
|
5
|
+
Autocorrect offenses defined in `.rubocop_todo.yml`.
|
7
6
|
|
8
7
|
This is an internal implementation of [rubocop-todo-corrector](https://github.com/r7kamura/rubocop-todo-corrector) action. See its README for more information about this action.
|
9
8
|
|
@@ -51,10 +51,12 @@ module RubocopTodoCorrector
|
|
51
51
|
[
|
52
52
|
"source 'https://rubygems.org'",
|
53
53
|
*@gem_specifications.map do |gem_specification|
|
54
|
-
|
55
|
-
|
56
|
-
gem_specification
|
57
|
-
|
54
|
+
case gem_specification
|
55
|
+
in gem_version: nil
|
56
|
+
format("gem '%<gem_name>s'", gem_specification)
|
57
|
+
else
|
58
|
+
format("gem '%<gem_name>s', '%<gem_version>s'", gem_specification)
|
59
|
+
end
|
58
60
|
end
|
59
61
|
].join("\n") << "\n"
|
60
62
|
end
|
@@ -29,12 +29,17 @@ module RubocopTodoCorrector
|
|
29
29
|
|
30
30
|
# @return [Array<String>]
|
31
31
|
def gem_names
|
32
|
-
requires.grep(/\A[\w-]+\z/)
|
32
|
+
requires.grep(/\A[\w-]+\z/) + inherit_gems
|
33
33
|
end
|
34
34
|
|
35
35
|
# @return [Array<String>]
|
36
36
|
def requires
|
37
37
|
configuration_hash['require'] || []
|
38
38
|
end
|
39
|
+
|
40
|
+
# @return [Array<String>]
|
41
|
+
def inherit_gems
|
42
|
+
configuration_hash['inherit_gem']&.keys || []
|
43
|
+
end
|
39
44
|
end
|
40
45
|
end
|
@@ -8,14 +8,14 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ['Ryo Nakamura']
|
9
9
|
spec.email = ['r7kamura@gmail.com']
|
10
10
|
|
11
|
-
spec.summary = '
|
11
|
+
spec.summary = 'Autocorrect offenses defined in .rubocop_todo.yml.'
|
12
12
|
spec.homepage = 'https://github.com/r7kamura/rubocop_todo_corrector'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
spec.required_ruby_version = '>= 3.1'
|
15
15
|
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
17
17
|
spec.metadata['source_code_uri'] = spec.homepage
|
18
|
-
spec.metadata['changelog_uri'] = "#{spec.homepage}/
|
18
|
+
spec.metadata['changelog_uri'] = "#{spec.homepage}/releases"
|
19
19
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop_todo_corrector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email:
|
71
71
|
- r7kamura@gmail.com
|
72
72
|
executables:
|
@@ -113,9 +113,9 @@ licenses:
|
|
113
113
|
metadata:
|
114
114
|
homepage_uri: https://github.com/r7kamura/rubocop_todo_corrector
|
115
115
|
source_code_uri: https://github.com/r7kamura/rubocop_todo_corrector
|
116
|
-
changelog_uri: https://github.com/r7kamura/rubocop_todo_corrector/
|
116
|
+
changelog_uri: https://github.com/r7kamura/rubocop_todo_corrector/releases
|
117
117
|
rubygems_mfa_required: 'true'
|
118
|
-
post_install_message:
|
118
|
+
post_install_message:
|
119
119
|
rdoc_options: []
|
120
120
|
require_paths:
|
121
121
|
- lib
|
@@ -130,8 +130,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
|
-
rubygems_version: 3.3.
|
134
|
-
signing_key:
|
133
|
+
rubygems_version: 3.3.27
|
134
|
+
signing_key:
|
135
135
|
specification_version: 4
|
136
|
-
summary:
|
136
|
+
summary: Autocorrect offenses defined in .rubocop_todo.yml.
|
137
137
|
test_files: []
|