codeclimate-engine-rb 0.3.1 → 0.4.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 +4 -4
- data/README.md +4 -0
- data/lib/cc_engine/issue.rb +10 -1
- data/lib/cc_engine/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bcd399650c6e7fc6a2292fc5e6a66b61155f6b40
|
|
4
|
+
data.tar.gz: bbeaf9f6f5004accb34947bbe7de35ff2c0234b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80bb6c6cd56928933fed791a796452b96e9a435a997fb0c69f563898f66b7a4f53a5ef6d6de1141bdc859436c9ea62c688039ce151e8d7386b06da4f022dcf67
|
|
7
|
+
data.tar.gz: 25ef3e0c7bc238fa1f5ca10009cbdb68acb82047c053e9624779ac903fcc97a62f042f7f6c30bd9db84420d232541af589b8a06280d13125cc6e4e4a17265330
|
data/README.md
CHANGED
|
@@ -61,6 +61,10 @@ Code Climate requires that each issue is terminated with a null character.
|
|
|
61
61
|
Calling `render` on an issue will output the issue's JSON, followed by a null
|
|
62
62
|
character.
|
|
63
63
|
|
|
64
|
+
## Code Climate engines using this gem
|
|
65
|
+
|
|
66
|
+
* [Reek](https://github.com/troessner/reek)
|
|
67
|
+
|
|
64
68
|
## Development
|
|
65
69
|
|
|
66
70
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/cc_engine/issue.rb
CHANGED
|
@@ -11,6 +11,7 @@ module CCEngine
|
|
|
11
11
|
attribute :location
|
|
12
12
|
attribute :remediation_points
|
|
13
13
|
attribute :content
|
|
14
|
+
attribute :fingerprint
|
|
14
15
|
|
|
15
16
|
def render
|
|
16
17
|
to_hash.to_json + "\0"
|
|
@@ -27,7 +28,7 @@ module CCEngine
|
|
|
27
28
|
description: description,
|
|
28
29
|
categories: categories,
|
|
29
30
|
location: location.to_hash
|
|
30
|
-
}.merge(remediation_points_hash).merge(content_hash)
|
|
31
|
+
}.merge(remediation_points_hash).merge(content_hash).merge(fingerprint_hash)
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
private
|
|
@@ -49,5 +50,13 @@ module CCEngine
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
end
|
|
53
|
+
|
|
54
|
+
def fingerprint_hash
|
|
55
|
+
return {} unless fingerprint
|
|
56
|
+
|
|
57
|
+
{
|
|
58
|
+
fingerprint: fingerprint
|
|
59
|
+
}
|
|
60
|
+
end
|
|
52
61
|
end
|
|
53
62
|
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.4.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: 2016-
|
|
11
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -118,4 +118,3 @@ signing_key:
|
|
|
118
118
|
specification_version: 4
|
|
119
119
|
summary: JSON issue formatter for the Code Climate engine
|
|
120
120
|
test_files: []
|
|
121
|
-
has_rdoc:
|