codeclimate_batch 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/codeclimate-batch +3 -1
- data/lib/codeclimate_batch/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: ec4f5aa4a2a68e46ac8337580d6c9d55a33cb0d5
|
4
|
+
data.tar.gz: 3b65cf9bfcbbc426fc848db1af10acb1264d3f5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dec2c74e4f82229d5b7183fc7f3304c25ca78cf6345ef96af47af75fdfb81f161b7ffdd63040cf12acb83d9059a40b981bd3ab7bd4cb28a9de5f5fd6a7662bb
|
7
|
+
data.tar.gz: 209b0a54f00eafdaa27c3a1fb8d716128fb39eec890af3380072a08b963a96d7f9c62c95a3a27cf509e41a00506da4af9a445ed3edcf3c717979e3aff6e90a1b
|
data/bin/codeclimate-batch
CHANGED
@@ -22,6 +22,7 @@ Options:
|
|
22
22
|
BANNER
|
23
23
|
opts.on("--groups COUNT", Integer, "how many groups are being reports?") { |g| options[:groups] = g }
|
24
24
|
opts.on("--key KEY", String, "key to use to report to cc-amend (auto-filled with repo + build-number on travis)") { |k| options[:key] = k }
|
25
|
+
opts.on("--host HOST", String, "your host for the cc-amend app") { |h| options[:host] = h }
|
25
26
|
opts.on("-h", "--help","Show this.") { puts opts; exit }
|
26
27
|
opts.on('-v', '--version','Show Version'){ puts CodeclimateBatch::VERSION; exit}
|
27
28
|
end.parse!
|
@@ -35,7 +36,8 @@ status = if files.any?
|
|
35
36
|
content = CodeclimateBatch.unify(files)
|
36
37
|
File.write('report.json', JSON.dump(content))
|
37
38
|
key = options[:key] || "#{ENV.fetch('TRAVIS_REPO_SLUG').tr('/', '-')}-#{ENV.fetch('TRAVIS_BUILD_NUMBER')}"
|
38
|
-
|
39
|
+
host = options[:host] || "https://cc-amend.herokuapp.com"
|
40
|
+
puts `curl -X POST --data-binary @report.json #{host}/amend/#{key}?count=#{options.fetch(:groups)}`
|
39
41
|
success = $?.success?
|
40
42
|
system("rm -rf #{coverage_files} report.json") # cleanup in case we run locally
|
41
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeclimate_batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.2.
|
58
|
+
rubygems_version: 2.2.2
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: Report a batch of codeclimate results by merging and from multiple servers
|