rubocop_todo_corrector 0.15.0 → 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: d47110b2a0a7d4d76187937d9f76ca9612c390470ad2d63cd5991cbad9dc4a3d
4
- data.tar.gz: 513c4a0eeee07c9a593a4a2bc331c384da38ac729b8863bb557683416dc12f81
3
+ metadata.gz: 6286836083087aa95551c0fcfcd019f95ea4596011e6208e2296d11caf8ed306
4
+ data.tar.gz: ee9abda851112f0ced9fb75b6ca50eb4e3c12411e737b041da8588dc2578c660
5
5
  SHA512:
6
- metadata.gz: e17be284491817e9208372a9d509cfdaad1f18d02b7d47f86a94043d8e9da9b9097357739ab7090573e026a820c6f7feaac7c00a17dea9be71bf5c00187a8e2a
7
- data.tar.gz: 0d27d64fef45604c3d6f6891c1b47c78ff77cc681216509746fca02cbc3cc584d321111a46a29066b75e7d053c0a21134e75d319bb688b02fc4c060ba775d522
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.15.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.18)
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,7 +1,6 @@
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
 
@@ -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.15.0'
4
+ VERSION = '0.16.0'
5
5
  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}/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.
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.15.0
4
+ version: 0.16.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: 2022-12-06 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
@@ -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/blob/main/CHANGELOG.md
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.26
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.