codeclimate-engine-rb 0.1.0 → 0.2.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: 439a853dc1e069802816f36dd3de911bfa46e5ad
4
- data.tar.gz: abb3f787278011087b7078dade06ef9f94656de4
3
+ metadata.gz: 52bdcdc7360ce955ad739e107740c5030df0caa5
4
+ data.tar.gz: bed95afd48ccd435159c9f2f97d168da64bb0b98
5
5
  SHA512:
6
- metadata.gz: b9b351cf613c18fc4c972ca9ae37f50f3973ae1f1608f931c855b79d2851074bd70b8f3872be3536c49167e2835c7737ae8ba24852c55a2970f5b2781f56dbd8
7
- data.tar.gz: 2451dad2cfef7a78909403d40586951d7104dc442c4d3685ee279d8949d793643b9e6fb6cc4c064075aa7de3fe369aff03107276e051ab462f3da96094dc60ba
6
+ metadata.gz: b0d77624e20089c473854ccf3281219b892169a4f9a212eba7daa7ba4b69649c4e9253e744699ba24a17723086083d5f979b1e801eb3d02bd78551ab1a966515
7
+ data.tar.gz: a51d53eec9e264d3af46deb3a3ac476024f2731cc3296ca27d9edd91c4154b5c6da333d96497ea0a4680305d82ae2d9143a9e5435cceb9762ec0b45cb9ceede6
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) [year] [fullname]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -57,6 +57,10 @@ The result would be:
57
57
  There are some other ways to specify the location – please browse the gem's
58
58
  tests for details.
59
59
 
60
+ Code Climate requires that each issue is terminated with a null character.
61
+ Calling `render` on an issue will output the issue's JSON, followed by a null
62
+ character.
63
+
60
64
  ## Development
61
65
 
62
66
  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,10 @@ module CCEngine
11
11
  attribute :location
12
12
  attribute :remediation_points
13
13
 
14
+ def render
15
+ to_hash.to_json + "\0"
16
+ end
17
+
14
18
  def to_json
15
19
  to_hash.to_json
16
20
  end
@@ -1,3 +1,3 @@
1
1
  module CCEngine
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.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.1.0
4
+ version: 0.2.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-11-07 00:00:00.000000000 Z
11
+ date: 2015-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,6 +78,7 @@ files:
78
78
  - ".rubocop.yml"
79
79
  - ".travis.yml"
80
80
  - Gemfile
81
+ - LICENSE
81
82
  - README.md
82
83
  - Rakefile
83
84
  - bin/console