coveralls-multi 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/coveralls-multi/formatter.rb +0 -8
- data/lib/coveralls-multi/runner.rb +0 -1
- data/lib/coveralls-multi/validator.rb +2 -2
- data/lib/coveralls-multi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b04e9b5d7ecc3c348db9b1f3c84e6a743d2ae8546b62b720a7561e557f9ab9c
|
4
|
+
data.tar.gz: feac37cb27c4c0fbc4d4ba9c569b76d30ff89716b3f1ad4808a15429b843bce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c052856e833c6b3641230f55a74abe5b6c615d179c7f056c5d68f158288af34c0c4235aa4636bfb0f7d0bcb879b882c7dd42ef1985fedf73a43f9505a9f928e
|
7
|
+
data.tar.gz: a04a53fa820c79d96224d2f2fb9ab6eed932abf0d4904ea1dc4d893d4b07b13489b3e289059e7a4080022f9e50d94c6fd111c9c1156fe881589b250f2712ea9f
|
data/Gemfile.lock
CHANGED
@@ -21,14 +21,6 @@ module CoverallsMulti
|
|
21
21
|
merged_files
|
22
22
|
end
|
23
23
|
|
24
|
-
def add_travis_keys(payload)
|
25
|
-
payload['service_name'] = 'travis-pro'
|
26
|
-
payload['repo_token'] = ENV['COVERALLS_REPO_TOKEN'] || ''
|
27
|
-
payload.delete 'service_job_id'
|
28
|
-
puts 'Added Travis keys'
|
29
|
-
payload
|
30
|
-
end
|
31
|
-
|
32
24
|
def parse_json(path)
|
33
25
|
JSON.parse(IO.read("#{CoverallsMulti::Config.root}/#{path}"))
|
34
26
|
rescue StandardError => e
|
@@ -29,7 +29,6 @@ module CoverallsMulti
|
|
29
29
|
source_files = format_all_coverage_files
|
30
30
|
merged = { 'source_files' => source_files }
|
31
31
|
CoverallsMulti::Formatter.add_source_digests(merged)
|
32
|
-
CoverallsMulti::Formatter.add_travis_keys(merged)
|
33
32
|
|
34
33
|
puts 'All files merged and formatted'
|
35
34
|
merged
|
@@ -4,7 +4,7 @@ module CoverallsMulti
|
|
4
4
|
# checks that a payload is valid before sending to Coveralls
|
5
5
|
class Validator
|
6
6
|
attr_accessor :payload
|
7
|
-
TOP_LEVEL_KEYS = %w[
|
7
|
+
TOP_LEVEL_KEYS = %w[source_files].freeze
|
8
8
|
SOURCE_FILE_KEYS = %w[name source_digest coverage source].freeze
|
9
9
|
|
10
10
|
def initialize(payload)
|
@@ -26,7 +26,7 @@ module CoverallsMulti
|
|
26
26
|
raise 'Payload is empty!' if !@payload || @payload.empty?
|
27
27
|
raise 'Payload should be a hash!' unless @payload.is_a?(Hash)
|
28
28
|
|
29
|
-
check_required_keys(TOP_LEVEL_KEYS, 'Missing required top-level key
|
29
|
+
check_required_keys(TOP_LEVEL_KEYS, 'Missing required top-level key')
|
30
30
|
@payload['source_files'].each do |src_file|
|
31
31
|
check_required_keys(
|
32
32
|
SOURCE_FILE_KEYS, 'Missing required source file key(s)', src_file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveralls-multi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CJ Horton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|