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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6de4f9dc6b91ba8fbf73c74704955b28807dc370aada671af16f689de690f4a4
|
4
|
+
data.tar.gz: 4ec7f847e031075fc4ac31928a28036d14777773d8cb1352a851bb68f20c6951
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a20c4c0b46c8806fa47e5f53ab9ffe1862a8544be737dbae29f3343f4d254e63f8ba43aa89e8ac8d8bcc50cde1f29c56bcf10f7153a6e49a76078f57f5c32ff
|
7
|
+
data.tar.gz: 7a95a3f15eb5f3a368a9b9fc1bc5b5faa9c2837fa54e6631bf096eb767b92a71119aec305cd08465c4fa371598cfc0fc2410262bc993dc27e4957c623e4ddb16
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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]
|
13
|
+
# @param [String] cop_url
|
14
14
|
# @return [String]
|
15
15
|
def call(
|
16
16
|
cop_document:,
|
17
17
|
cop_name:,
|
18
|
-
|
18
|
+
cop_url:
|
19
19
|
)
|
20
20
|
new(
|
21
21
|
cop_document:,
|
22
22
|
cop_name:,
|
23
|
-
|
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
|
-
|
31
|
+
cop_url:
|
32
32
|
)
|
33
33
|
@cop_document = cop_document
|
34
34
|
@cop_name = cop_name
|
35
|
-
@
|
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)
|
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.
|
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-
|
11
|
+
date: 2022-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|