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 +4 -4
- data/lib/coveralls/lcov/runner.rb +7 -1
- data/lib/coveralls/lcov/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57aef8819d19e7a9b14c0f224f1517599abc9689
|
4
|
+
data.tar.gz: 644a69e16c1d1080f69cb9cecbc926855e6124b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2017-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|