codeclimate 0.18.2 → 0.18.3

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: b71219b6b4583c821a025f53f93f455402bfcfb9
4
- data.tar.gz: a16a21b439116432d9637f3d65ebbbb4b9947c67
3
+ metadata.gz: e1f5d0230d3505c837a5bcb016bff25b09446fa2
4
+ data.tar.gz: a2a8db84a62317f000cd438dc68c57e47d12aa2f
5
5
  SHA512:
6
- metadata.gz: 3933586e59b7ef4a478dfe08b2d2393bd2460eb88913630cb3d6d01e513c7969bebc9129ddd66f936647d7815b2803d5dae247bc4c15ed2960dd9f9d4eadab2b
7
- data.tar.gz: c6dfcf0a977228c1a8f0e3c2af331a9affc9d3747ec5941cc8e0fb5b8b87fd8b2f9e71c29ae2c029573455cbfd6350126a1423a410b24114b9a4dd6c2b4b248d
6
+ metadata.gz: 87698911780b906b4900452561cf302ee1c3940e3590d6e7f6f70fe1ab146a499f9dd86e4f4cedc86bcf58848c7735d8d238f5220e971e98d78bae4327f6b911
7
+ data.tar.gz: ab5a2cb3c4556ea1a61ffec1c862a0f63dbcf6864248d3359b980114873fb1eb06e6387b7ce4dd87be084338e430d863034f40963cb2fa6a1b59b7a09530e3ab
@@ -1,7 +1,7 @@
1
1
  module CC
2
2
  module Analyzer
3
3
  class EngineOutput
4
- delegate :blank?, to: :raw_output
4
+ delegate :blank?, to: :chomped_output
5
5
  delegate :to_json, to: :as_issue
6
6
 
7
7
  def initialize(raw_output)
@@ -23,10 +23,18 @@ module CC
23
23
  attr_accessor :raw_output
24
24
 
25
25
  def parsed_output
26
- JSON.parse(raw_output)
26
+ JSON.parse(chomped_output)
27
27
  rescue JSON::ParserError
28
28
  nil
29
29
  end
30
+
31
+ # Docker can put start-of-text characters when logging,
32
+ # which show up as issues. Remove them here if they are at either end
33
+ # of the output and then check blankness.
34
+ # https://github.com/docker/docker/issues/7375
35
+ def chomped_output
36
+ @chomped_output ||= raw_output.chomp("\u0002")
37
+ end
30
38
  end
31
39
  end
32
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.2
4
+ version: 0.18.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-04 00:00:00.000000000 Z
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport