codeclimate-engine-rb 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cc_engine/issue.rb +12 -1
- data/lib/cc_engine/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1685290f9566459a9ad7cdad9dcc0d1bff0bfcba
|
4
|
+
data.tar.gz: 128d1a2ba43c826485b704d44bd67394360862d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47603434ec83b5f99f3e401ed1e1dc89a6d4f6288fa3152c47467207e0e5e15b5f0c4bf3d37eb9e530ba4c357d55a9e6e25c381b58588e137dd645fb8095ffa9
|
7
|
+
data.tar.gz: 1a6d5a9cb272c72534221bde4bdaececf0c2170c413816df4aa4e044e15bfa88f84816af458151f3e3df24c54104e04d70284c533421ccae4aa708ffb2382d2a
|
data/lib/cc_engine/issue.rb
CHANGED
@@ -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
|
data/lib/cc_engine/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|