codeclimate-engine-rb 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98af0088ce28018f198b78cfa0cd0f18443fdcbf
4
- data.tar.gz: 54f4379cccb975be2d440bccdc2515f776191517
3
+ metadata.gz: bcd399650c6e7fc6a2292fc5e6a66b61155f6b40
4
+ data.tar.gz: bbeaf9f6f5004accb34947bbe7de35ff2c0234b7
5
5
  SHA512:
6
- metadata.gz: 9251c4827249f474ecdd8b11976d5ef12dbf19b7c2d9f0954c682c6a2b2300bbc3dccac411c52247520803bd38a5724f5a3b53bbc198b6fc23eb07c1d843ad57
7
- data.tar.gz: 9b3388ee243c2a018ef5affcd72556c36287cdf9dde9d085866d9d2c72a2f5e303886bb92f5b6a76689aa5c7352d9b9f0c32001740531b6f7c658d6daab73a21
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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CCEngine
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.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.3.1
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-01-24 00:00:00.000000000 Z
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: