rubocop_todo_corrector 0.14.0 → 0.14.1

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: 7c875171ee57cc0510b2bc3eeee96c57155f4380fad714346f02089e726a7e05
4
- data.tar.gz: 10b096061782d6a714ec7a740c8bf75dff966c9a6e175fe76847c6203dd26f19
3
+ metadata.gz: 6de4f9dc6b91ba8fbf73c74704955b28807dc370aada671af16f689de690f4a4
4
+ data.tar.gz: 4ec7f847e031075fc4ac31928a28036d14777773d8cb1352a851bb68f20c6951
5
5
  SHA512:
6
- metadata.gz: 1a1d903624ee552a520d9aafad408520ba3d059705fb0368f4abb3a11920f8b5ac48002bca0e3e98f41897b7c46d62aca06397f3e983dbc989d362d880e7be9e
7
- data.tar.gz: 1f1413ba984a873283d92c3679576e9d8c6072f0456b4f8fc42ad7b03c88c83aa2cd019bb67254ccde8d5fa8dbc3ce529c683976d7e7c07b8e675d76966b448f
6
+ metadata.gz: 8a20c4c0b46c8806fa47e5f53ab9ffe1862a8544be737dbae29f3343f4d254e63f8ba43aa89e8ac8d8bcc50cde1f29c56bcf10f7153a6e49a76078f57f5c32ff
7
+ data.tar.gz: 7a95a3f15eb5f3a368a9b9fc1bc5b5faa9c2837fa54e6631bf096eb767b92a71119aec305cd08465c4fa371598cfc0fc2410262bc993dc27e4957c623e4ddb16
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop_todo_corrector (0.14.0)
4
+ rubocop_todo_corrector (0.14.1)
5
5
  asciidoctor
6
6
  bundler
7
7
  thor
@@ -35,10 +35,15 @@ module RubocopTodoCorrector
35
35
  cop_document = CopDocumentParser.call(source_path: cop_source_path)
36
36
  return unless cop_document
37
37
 
38
+ cop_url = CopUrlFinder.call(
39
+ cop_name: @cop_name,
40
+ cop_source_path:,
41
+ temporary_gemfile_path: @temporary_gemfile_path
42
+ )
38
43
  description = DescriptionRenderer.call(
39
44
  cop_document:,
40
45
  cop_name: @cop_name,
41
- cop_source_path:
46
+ cop_url:
42
47
  )
43
48
  ::Kernel.puts(description)
44
49
  end
@@ -10,17 +10,17 @@ module RubocopTodoCorrector
10
10
  class << self
11
11
  # @param [String] cop_document
12
12
  # @param [String] cop_name
13
- # @param [String] cop_source_path
13
+ # @param [String] cop_url
14
14
  # @return [String]
15
15
  def call(
16
16
  cop_document:,
17
17
  cop_name:,
18
- cop_source_path:
18
+ cop_url:
19
19
  )
20
20
  new(
21
21
  cop_document:,
22
22
  cop_name:,
23
- cop_source_path:
23
+ cop_url:
24
24
  ).call
25
25
  end
26
26
  end
@@ -28,11 +28,11 @@ module RubocopTodoCorrector
28
28
  def initialize(
29
29
  cop_document:,
30
30
  cop_name:,
31
- cop_source_path:
31
+ cop_url:
32
32
  )
33
33
  @cop_document = cop_document
34
34
  @cop_name = cop_name
35
- @cop_source_path = cop_source_path
35
+ @cop_url = cop_url
36
36
  end
37
37
 
38
38
  # @return [String]
@@ -42,15 +42,6 @@ module RubocopTodoCorrector
42
42
 
43
43
  private
44
44
 
45
- # @return [String]
46
- def cop_url
47
- CopUrlFinder.call(
48
- cop_name: @cop_name,
49
- cop_source_path: @cop_source_path,
50
- temporary_gemfile_path: @temporary_gemfile_path
51
- )
52
- end
53
-
54
45
  # @return [String]
55
46
  def template_content
56
47
  ::File.read(TEMPLATE_PATH)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopTodoCorrector
4
- VERSION = '0.14.0'
4
+ VERSION = '0.14.1'
5
5
  end
@@ -2,7 +2,7 @@ Auto-correct <%= @cop_name %>
2
2
 
3
3
  ## Summary
4
4
 
5
- Auto-corrected [<%= @cop_name %>](<%= cop_url %>).
5
+ Auto-corrected [<%= @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.0
4
+ version: 0.14.1
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-08-15 00:00:00.000000000 Z
11
+ date: 2022-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor