rubocop_todo_corrector 0.15.0 → 0.17.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03c78dd3e80b82bb0467cf29335eb659c6bead659f2b4289aef02f13146af807
|
4
|
+
data.tar.gz: c25866bcc86716d841baadfd0ac325c4aa3c5af5ee77392afe57baaf5593bcfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d645d8b753c7107545adf2b7ae45074905660b1b0ed2775325e29a4de29dcf8827f4f1ebedd82d1280cbd2d12396d074339b03b69d3c5947642e9bb69a07412
|
7
|
+
data.tar.gz: d8b9fc844825c025c1a8bb3c8bebfa0817e8b1c65457daefd21ecbcd2e20be10b0a8aca4058bc8b93c624e87285a3ed13209784781a9f46d498ceb6427f1ca72
|
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.17.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.23)
|
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.2)
|
68
|
+
unicode-display_width (2.5.0)
|
69
|
+
yard (0.9.37)
|
57
70
|
|
58
71
|
PLATFORMS
|
59
72
|
x86_64-darwin-21
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# RubocopTodoCorrector
|
2
2
|
|
3
3
|
[](https://github.com/r7kamura/rubocop_todo_corrector/actions/workflows/test.yml)
|
4
|
-
[](https://rubygems.org/gems/rubocop_todo_corrector)
|
5
4
|
|
6
5
|
Autocorrect offenses defined in `.rubocop_todo.yml`.
|
7
6
|
|
@@ -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,22 @@ 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/) + plugins + inherit_gems
|
33
|
+
end
|
34
|
+
|
35
|
+
# @return [Array<String>]
|
36
|
+
def plugins
|
37
|
+
configuration_hash['plugins'] || []
|
33
38
|
end
|
34
39
|
|
35
40
|
# @return [Array<String>]
|
36
41
|
def requires
|
37
42
|
configuration_hash['require'] || []
|
38
43
|
end
|
44
|
+
|
45
|
+
# @return [Array<String>]
|
46
|
+
def inherit_gems
|
47
|
+
configuration_hash['inherit_gem']&.keys || []
|
48
|
+
end
|
39
49
|
end
|
40
50
|
end
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
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.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -113,7 +113,7 @@ 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
118
|
post_install_message:
|
119
119
|
rdoc_options: []
|
@@ -130,7 +130,7 @@ 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.
|
133
|
+
rubygems_version: 3.3.27
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Autocorrect offenses defined in .rubocop_todo.yml.
|