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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dff04eb883e0fd8b45e35cf11bf14351a6e93f397e40117a87c2f8beefce2cdc
4
- data.tar.gz: f75586ac0a17d1b025925b4faca387eca5d069b9ccf149a1d56f27da1493bede
3
+ metadata.gz: 6286836083087aa95551c0fcfcd019f95ea4596011e6208e2296d11caf8ed306
4
+ data.tar.gz: ee9abda851112f0ced9fb75b6ca50eb4e3c12411e737b041da8588dc2578c660
5
5
  SHA512:
6
- metadata.gz: 6c72738de0ffbf7845926c46950c97800bb991f24bfe032b0c6209d71a1f79ebf42967c56c907462f175cefbec631e27f16c092ce60afb4401e816a7283d50dc
7
- data.tar.gz: 291c3db91da97dcda17875a33844643128c9bd1607957300f064d4ee3e3bb4da545d8efd0dd6e32549d1fac6d0a7094d62e1b721a40b209e1b183f7743e99851
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.14.2)
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.17)
13
+ asciidoctor (2.0.22)
14
14
  ast (2.4.2)
15
- diff-lcs (1.5.0)
16
- parallel (1.22.1)
17
- parser (3.1.2.0)
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.0.6)
21
- regexp_parser (2.4.0)
22
- rexml (3.2.5)
23
- rspec (3.11.0)
24
- rspec-core (~> 3.11.0)
25
- rspec-expectations (~> 3.11.0)
26
- rspec-mocks (~> 3.11.0)
27
- rspec-core (3.11.0)
28
- rspec-support (~> 3.11.0)
29
- rspec-expectations (3.11.0)
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.11.0)
32
- rspec-mocks (3.11.1)
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.11.0)
35
- rspec-support (3.11.0)
36
- rubocop (1.29.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.1.0.0)
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.17.0, < 2.0)
48
+ rubocop-ast (>= 1.31.1, < 2.0)
43
49
  ruby-progressbar (~> 1.7)
44
- unicode-display_width (>= 1.4.0, < 3.0)
45
- rubocop-ast (1.18.0)
46
- parser (>= 3.1.1.0)
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.10.0)
50
- rubocop (~> 1.19)
51
- ruby-progressbar (1.11.0)
52
- thor (1.2.1)
53
- unicode-display_width (2.1.0)
54
- webrick (1.7.0)
55
- yard (0.9.28)
56
- webrick (~> 1.7.0)
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
- Auto-correct offenses defined in `.rubocop_todo.yml`.
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
- format(
55
- "gem '%<gem_name>s', '%<gem_version>s'",
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopTodoCorrector
4
- VERSION = '0.14.2'
4
+ VERSION = '0.16.0'
5
5
  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 = 'Auto-correct offenses defined in .rubocop_todo.yml.'
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}/blob/main/CHANGELOG.md"
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.
@@ -1,8 +1,8 @@
1
- Auto-correct <%= @cop_name %>
1
+ Autocorrect `<%= @cop_name %>`
2
2
 
3
3
  ## Summary
4
4
 
5
- Auto-corrected [<%= @cop_name %>](<%= @cop_url %>).
5
+ Autocorrected [<%= @cop_name %>](<%= @cop_url %>).
6
6
 
7
7
  ## Details
8
8
 
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.14.2
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: 2022-08-22 00:00:00.000000000 Z
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/blob/main/CHANGELOG.md
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.7
134
- signing_key:
133
+ rubygems_version: 3.3.27
134
+ signing_key:
135
135
  specification_version: 4
136
- summary: Auto-correct offenses defined in .rubocop_todo.yml.
136
+ summary: Autocorrect offenses defined in .rubocop_todo.yml.
137
137
  test_files: []