cxxproject 0.5.68 → 0.5.69

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.
@@ -26,10 +26,8 @@ module Cxxproject
26
26
  SEVERITY_INFO
27
27
  elsif str.downcase == "warning"
28
28
  SEVERITY_WARNING
29
- elsif str.downcase == "error"
30
- SEVERITY_ERROR
31
29
  else
32
- raise "Unknown severity: #{str}"
30
+ SEVERITY_ERROR
33
31
  end
34
32
  end
35
33
 
@@ -4,26 +4,21 @@ module Cxxproject
4
4
  class KeilLinkerErrorParser < ErrorParser
5
5
 
6
6
  def initialize()
7
- @error_exclude = /Finished: [0-9]+ information, [0-9]+ warning and [0-9]+ error messages./
7
+ @error_expression = /([^:]+): (L[0-9]+[A-Z]: .+)/
8
8
  end
9
9
 
10
10
  def scan_lines(consoleOutput, proj_dir)
11
11
  res = []
12
12
  consoleOutput.each_line do |l|
13
13
  l.rstrip!
14
- scan_res = l.scan(@error_exclude)
15
14
  d = ErrorDesc.new
16
- if scan_res.length == 0
15
+ scan_res = l.scan(@error_expression)
16
+ if scan_res.length > 0
17
17
  d.file_name = proj_dir
18
18
  d.line_number = 0
19
- d.message = l
20
- if l.length == 0
21
- d.severity = SEVERITY_OK
22
- elsif l.include?" Warning:"
23
- d.severity = SEVERITY_WARNING
24
- else
25
- d.severity = SEVERITY_ERROR
26
- end
19
+ d.message = scan_res[0][1]
20
+ d.severity = get_severity(scan_res[0][0])
21
+ error_severity = d.severity
27
22
  end
28
23
  res << d
29
24
  end
@@ -1,7 +1,7 @@
1
1
  module Cxxproject
2
2
  class Version
3
3
  def self.cxxproject
4
- "0.5.68"
4
+ "0.5.69"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cxxproject
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.68
5
+ version: 0.5.69
6
6
  platform: ruby
7
7
  authors:
8
8
  - oliver mueller
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2013-09-09 00:00:00 Z
13
+ date: 2013-09-10 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline