pronto-golang 0.0.9 → 0.0.10
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: 3cbee557f41f5ea0df6c206d3c5ead71a997c9bcf18de9d54cc3e89c4a071b5d
|
4
|
+
data.tar.gz: e16c15775e3936a95fa73dd2731e1d9445f3c84f286ef74e2e0911aa3e8a57c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e006272b386bed2b77e7957e5baea9dca13cd02f2bea3961ddd615522a4c0b5c1b3c2cac3a333b62e3762a344321c05c0feba6862d3b5108cced2874f2670bee
|
7
|
+
data.tar.gz: aed2d1c9a2da052369a6fa710924712bafbfef5ccebf846cfdc56f0c52375a72ab0e3901bca4c3871b27d4497ef909a659cde0b0189b80681677690ec9ffad06
|
@@ -14,11 +14,11 @@ module Pronto
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def command(file_path)
|
17
|
-
"#{base_command} #{parameters}"
|
17
|
+
"#{base_command} #{parameters} #{file_path}"
|
18
18
|
end
|
19
19
|
|
20
20
|
def parameters
|
21
|
-
@config.fetch('parameters', '
|
21
|
+
@config.fetch('parameters', '') # Default to '' if the key is not configured
|
22
22
|
end
|
23
23
|
|
24
24
|
def available?
|
@@ -6,7 +6,12 @@ module Pronto
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def parse_line(line)
|
9
|
-
|
9
|
+
path, line_number, _, message = line.split(':')
|
10
|
+
|
11
|
+
absolute_path = Pathname.new(path)
|
12
|
+
working_directory = Pathname.new(Dir.pwd)
|
13
|
+
|
14
|
+
file_path = absolute_path.relative_path_from(working_directory).to_s
|
10
15
|
|
11
16
|
return file_path, line_number, :warning, message.to_s.strip
|
12
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-golang
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Schoknecht
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|
@@ -92,8 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
|
-
|
96
|
-
rubygems_version: 2.7.6
|
95
|
+
rubygems_version: 3.0.3
|
97
96
|
signing_key:
|
98
97
|
specification_version: 4
|
99
98
|
summary: Pronto runner for golang tools
|