codeclimate 0.9.0 → 0.9.1

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: 38fba4f67389a2824e38e0fe2bc6d6bab49bca4c
4
- data.tar.gz: 9d0cecd1caa99220b028f3b789cc0386f09f67ea
3
+ metadata.gz: d81ae107229801a3f5752e7ef948a3b0b56db80d
4
+ data.tar.gz: 789f4ed9e51c32f62be863c5403bf8ef09b325b7
5
5
  SHA512:
6
- metadata.gz: 09e8478a66d99268866a09c31896cafb9d1dace0b684ca43c764491ae8823375973af9a5edb9aa02eb78f3cfb9245e06723e986afd3bbd488023dd8c6c50fc0b
7
- data.tar.gz: 0e71a463a9d87e5f35c06f0902c2c9c020a3d761b7506f1217fa416b6881e163e2afd6644b657fdcd1c34f07884d4edd2ae74ce29e4db715a97bff726228c091
6
+ metadata.gz: bf48b0890ed9325ac0ab5d73c5c8b3642f6b7b39bb90d5f576d0e0f367d6cdc20d29a567f21bbad394e97070b676164f1c18f0477b095950b5fa0c857e0e195d
7
+ data.tar.gz: dfbf3f35fbbbae9f4bc7d6fa84cfa011b4b94d85e4ffeaed171dd901c8df12257d05b57c2a7ca91f2a008e85d0a0e3ef8ca9b5c515d7aa267d040efb69471ed7
@@ -8,6 +8,8 @@ module CC
8
8
  end
9
9
 
10
10
  def filter?(output)
11
+ return true unless output.present?
12
+
11
13
  if (json = parse_as_json(output))
12
14
  issue?(json) && ignore_issue?(json)
13
15
  else
@@ -17,8 +17,6 @@ module CC
17
17
  end
18
18
 
19
19
  def write(data)
20
- return unless data.present?
21
-
22
20
  document = JSON.parse(data)
23
21
  document["engine_name"] = current_engine.name
24
22
 
@@ -12,18 +12,16 @@ module CC
12
12
  end
13
13
 
14
14
  def write(data)
15
- if data.present?
16
- json = JSON.parse(data)
17
- json["engine_name"] = current_engine.name
18
-
19
- case json["type"].downcase
20
- when "issue"
21
- issues << json
22
- when "warning"
23
- warnings << json
24
- else
25
- raise "Invalid type found: #{json["type"]}"
26
- end
15
+ json = JSON.parse(data)
16
+ json["engine_name"] = current_engine.name
17
+
18
+ case json["type"].downcase
19
+ when "issue"
20
+ issues << json
21
+ when "warning"
22
+ warnings << json
23
+ else
24
+ raise "Invalid type found: #{json["type"]}"
27
25
  end
28
26
  end
29
27
 
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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-13 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport