pronto-golang 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29ff9316461a67e0e5b1430612952bcb0f5bd1fe
4
- data.tar.gz: 1df01f37b06766f1374a455d06a5b1aad080d786
3
+ metadata.gz: cb05f3786d0f27b495a3a3284e17cf7115ee970d
4
+ data.tar.gz: 40235340f06d726abbda1a13b29c14392b4aacdb
5
5
  SHA512:
6
- metadata.gz: 5c5288801dc0e3aaea5c22a6e55502e024baceb635fcd649406e27b8a01d88992619978e4cc46bca923dcfb3a11269622afafd99a558b0dda74fa9fd4b8127af
7
- data.tar.gz: 8578c315ff32947b41e5fbe6f96518bde5489d709529911f2b1b52f91760b5d8c4a8cfc1505c47f8db7ca1f6b0c55238bc74c33e166f10cece0bb7aff6bf0493
6
+ metadata.gz: 6a29b847abbc7cb3f6df50ed4d278ef211979ab5299c9e5272c753c3c9fdf8cd1d8461575ff0449c04b6cb8ce881062fb6d52c13173e18ef14ffbbec7aba06cc
7
+ data.tar.gz: 4fcfc86cf006058b2f0b6e24a7d7b409118a72c1eac7a2c6ec88af07db0c03ed5be650fa8d94e03886cbc78a2223f2f060165350e1c588f01b7df250b9645b5b
data/lib/pronto/golang.rb CHANGED
@@ -53,14 +53,14 @@ module Pronto
53
53
  def process_line(patch, tool, output_line)
54
54
  return nil if output_line =~ /^#/
55
55
 
56
- file_path, line_number, severity, message = tool.parse_line(output_line)
56
+ file_path, line_number, level, message = tool.parse_line(output_line)
57
57
 
58
58
  patch.added_lines.each do |line|
59
59
  if line_number.to_s == line.new_lineno.to_s &&
60
- patch.new_file_full_path.to_s == file_path
60
+ patch.new_file_full_path.to_s == File.expand_path(file_path)
61
61
 
62
62
  return Message.new(
63
- file_path, line, severity, message, line.commit_sha, self.class
63
+ file_path, line, level, message, line.commit_sha, self.class
64
64
  )
65
65
  end
66
66
  end
@@ -16,7 +16,7 @@ module Pronto
16
16
  def parse_line(line)
17
17
  file_path, line_number, _, _ = line.split(':')
18
18
 
19
- return File.expand_path(file_path), line_number, :warning, message
19
+ return file_path, line_number, :warning, message
20
20
  end
21
21
 
22
22
  def message
@@ -16,7 +16,7 @@ module Pronto
16
16
  def parse_line(line)
17
17
  file_path, line_number, _, message = line.split(':')
18
18
 
19
- return File.expand_path(file_path), line_number, :warning, message.strip
19
+ return file_path, line_number, :warning, message.strip
20
20
  end
21
21
  end
22
22
  end
@@ -16,7 +16,7 @@ module Pronto
16
16
  def parse_line(line)
17
17
  file_path, line_number, _, message = line.split(':')
18
18
 
19
- return File.expand_path(file_path), line_number, :warning, message.strip
19
+ return file_path, line_number, :warning, message.strip
20
20
  end
21
21
  end
22
22
  end
@@ -16,7 +16,7 @@ module Pronto
16
16
  def parse_line(line)
17
17
  file_path, line_number, message = line.split(':')
18
18
 
19
- return File.expand_path(file_path), line_number, :warning, message.strip
19
+ return file_path, line_number, :warning, message.strip
20
20
  end
21
21
  end
22
22
  end
@@ -16,7 +16,7 @@ module Pronto
16
16
  def parse_line(line)
17
17
  file_path, line_number, _, message = line.split(':')
18
18
 
19
- return File.expand_path(file_path), line_number, :warning, message.strip
19
+ return file_path, line_number, :warning, message.strip
20
20
  end
21
21
  end
22
22
  end
@@ -16,7 +16,7 @@ module Pronto
16
16
  def parse_line(line)
17
17
  file_path, line_number, _, message = line.split(':')
18
18
 
19
- return File.expand_path(file_path), line_number, :warning, message.strip
19
+ return file_path, line_number, :warning, message.strip
20
20
  end
21
21
  end
22
22
  end
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module GolangVersion
3
- VERSION = '0.0.3'.freeze
3
+ VERSION = '0.0.4'.freeze
4
4
  end
5
5
  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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schoknecht
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-18 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.4'
47
+ version: '3.8'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.4'
54
+ version: '3.8'
55
55
  description:
56
56
  email: tobias.schoknecht@barzahlen.de
57
57
  executables: []
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.4.8
94
+ rubygems_version: 2.2.2
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Pronto runner for golang tools