coveralls-lcov 1.3.1 → 1.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: 07df77be1dae739e054c8b7531ed8b306fd7f955
4
- data.tar.gz: 509e1f2db6eade7b29cdc79c579b430e94ec4248
3
+ metadata.gz: 57aef8819d19e7a9b14c0f224f1517599abc9689
4
+ data.tar.gz: 644a69e16c1d1080f69cb9cecbc926855e6124b3
5
5
  SHA512:
6
- metadata.gz: 115a0b90154ec7659dd55d4e2da2b6edd85215757cd5d84d32f32485f841f1a1505be5ac951f6eb9f0ddf1371f085fad746c648e96004cb55ce96196dc2217ad
7
- data.tar.gz: 6f79390f63a5b751b7acb7573d12a6b1f3bf7ff96c3586bb2b06bc81a9f22df3d24ff2b62500eb8c71488debc2d625b3c33276b5c26db6a38ae6a5e835d677b9
6
+ metadata.gz: 00e74ee6fb1e2a8c89399841674165c59ec9ad7fe46de350032e2f6a4d909a48811754f9362a591fc9896aa270c5c605ea60919d28df75408e33bd9d41dca67a
7
+ data.tar.gz: 8fcc5b3af413baab83eb92ca6041fcc00ecd65af77384802c8c87b20f3a84ddfb8511b7a74215210527a77d683186d4588caf5ebcc18b3f8ede171da8fc127ce
@@ -1,5 +1,6 @@
1
1
  require "optparse"
2
2
  require "json"
3
+ require "yaml"
3
4
  require "net/http"
4
5
  require "net/https"
5
6
  require "coveralls/lcov/converter"
@@ -65,7 +66,12 @@ BANNER
65
66
  tracefile = @argv.shift
66
67
  converter = Converter.new(tracefile, @source_encoding, @service_name, @service_job_id)
67
68
  payload = converter.convert
68
- payload[:repo_token] = @repo_token if @repo_token
69
+ coveralls_config = YAML.load_file(".coveralls.yml") if File.exist? ".coveralls.yml"
70
+ if @repo_token
71
+ payload[:repo_token] = @repo_token
72
+ elsif coveralls_config && coveralls_config["repo_token"]
73
+ payload[:repo_token] = coveralls_config["repo_token"]
74
+ end
69
75
  payload_json = payload.to_json
70
76
  puts payload_json if @verbose
71
77
  unless @dry_run
@@ -1,5 +1,5 @@
1
1
  module Coveralls
2
2
  module Lcov
3
- VERSION = "1.3.1"
3
+ VERSION = "1.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coveralls-lcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenji Okimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-08 00:00:00.000000000 Z
11
+ date: 2017-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler