codeclimate_batch 0.1.2 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba5250ff55ae7de2203188b06c0a44b50e9e3dbf
4
- data.tar.gz: 1075b1fb947c999dd0773abbd5ca0dc7d21970bd
3
+ metadata.gz: ec4f5aa4a2a68e46ac8337580d6c9d55a33cb0d5
4
+ data.tar.gz: 3b65cf9bfcbbc426fc848db1af10acb1264d3f5b
5
5
  SHA512:
6
- metadata.gz: 7327d7693094519693cb4ab308a88e5b53987b71759f5e7fa2ce872902ee65f7d54e144a1e38ca60621fe6dc2b499604464033031f95b991e66be37544adbf7e
7
- data.tar.gz: 8a78c45708118eb7ef90d08ec88af879a80470d102831d1c9515214ce80c63761d9e859f0a6173dab2f9e560c4c9bffb0b4120433dccc69b9d1f0bce1a0ea131
6
+ metadata.gz: 4dec2c74e4f82229d5b7183fc7f3304c25ca78cf6345ef96af47af75fdfb81f161b7ffdd63040cf12acb83d9059a40b981bd3ab7bd4cb28a9de5f5fd6a7662bb
7
+ data.tar.gz: 209b0a54f00eafdaa27c3a1fb8d716128fb39eec890af3380072a08b963a96d7f9c62c95a3a27cf509e41a00506da4af9a445ed3edcf3c717979e3aff6e90a1b
@@ -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
- puts `curl -X POST --data-binary @report.json https://cc-amend.herokuapp.com/amend/#{key}?count=#{options.fetch(:groups)}`
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
@@ -1,3 +1,3 @@
1
1
  module CodeclimateBatch
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  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.1.2
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-04-15 00:00:00.000000000 Z
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.3
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