codeclimate-engine-rb 0.2.0 → 0.3.0

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: 52bdcdc7360ce955ad739e107740c5030df0caa5
4
- data.tar.gz: bed95afd48ccd435159c9f2f97d168da64bb0b98
3
+ metadata.gz: 1685290f9566459a9ad7cdad9dcc0d1bff0bfcba
4
+ data.tar.gz: 128d1a2ba43c826485b704d44bd67394360862d2
5
5
  SHA512:
6
- metadata.gz: b0d77624e20089c473854ccf3281219b892169a4f9a212eba7daa7ba4b69649c4e9253e744699ba24a17723086083d5f979b1e801eb3d02bd78551ab1a966515
7
- data.tar.gz: a51d53eec9e264d3af46deb3a3ac476024f2731cc3296ca27d9edd91c4154b5c6da333d96497ea0a4680305d82ae2d9143a9e5435cceb9762ec0b45cb9ceede6
6
+ metadata.gz: 47603434ec83b5f99f3e401ed1e1dc89a6d4f6288fa3152c47467207e0e5e15b5f0c4bf3d37eb9e530ba4c357d55a9e6e25c381b58588e137dd645fb8095ffa9
7
+ data.tar.gz: 1a6d5a9cb272c72534221bde4bdaececf0c2170c413816df4aa4e044e15bfa88f84816af458151f3e3df24c54104e04d70284c533421ccae4aa708ffb2382d2a
@@ -10,6 +10,7 @@ module CCEngine
10
10
  attribute :categories, Array[String]
11
11
  attribute :location
12
12
  attribute :remediation_points
13
+ attribute :content
13
14
 
14
15
  def render
15
16
  to_hash.to_json + "\0"
@@ -26,7 +27,7 @@ module CCEngine
26
27
  description: description,
27
28
  categories: categories,
28
29
  location: location.to_hash
29
- }.merge(remediation_points_hash)
30
+ }.merge(remediation_points_hash).merge(content_hash)
30
31
  end
31
32
 
32
33
  private
@@ -38,5 +39,15 @@ module CCEngine
38
39
  remediation_points: remediation_points
39
40
  }
40
41
  end
42
+
43
+ def content_hash
44
+ return {} unless content
45
+
46
+ {
47
+ body: {
48
+ content: content
49
+ }
50
+ }
51
+ end
41
52
  end
42
53
  end
@@ -1,3 +1,3 @@
1
1
  module CCEngine
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate-engine-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Waite
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-29 00:00:00.000000000 Z
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.4.5
116
+ rubygems_version: 2.5.1
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: JSON issue formatter for the Code Climate engine