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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fac777408e47be1747fca8273ff16d095861b02ee022fa4b7515dc067701c78
4
- data.tar.gz: be2f784f4b014c5cf180081b43b9eaa803e7b80280677bf0843e45bde5ef80d5
3
+ metadata.gz: 7b04e9b5d7ecc3c348db9b1f3c84e6a743d2ae8546b62b720a7561e557f9ab9c
4
+ data.tar.gz: feac37cb27c4c0fbc4d4ba9c569b76d30ff89716b3f1ad4808a15429b843bce7
5
5
  SHA512:
6
- metadata.gz: 7e1079f5b076d6a1628888bf92e487ad3c1e4508d6150541974e1e11f2477c481b2741d5069c342455a2b3d25e3cf242c5b8bb4ba1dce6047c48aaadeff82448
7
- data.tar.gz: 2366f207f0a1f1266c68b774e5d00cfde8d0ec894ca71d1420233b56655cc12626ec29b0025c639a3bbc8a240fd048f483c4803179f399efa9871ba1efe85484
6
+ metadata.gz: 2c052856e833c6b3641230f55a74abe5b6c615d179c7f056c5d68f158288af34c0c4235aa4636bfb0f7d0bcb879b882c7dd42ef1985fedf73a43f9505a9f928e
7
+ data.tar.gz: a04a53fa820c79d96224d2f2fb9ab6eed932abf0d4904ea1dc4d893d4b07b13489b3e289059e7a4080022f9e50d94c6fd111c9c1156fe881589b250f2712ea9f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coveralls-multi (0.1.0)
4
+ coveralls-multi (1.0.0)
5
5
  coveralls (~> 0.8.21)
6
6
  coveralls-lcov (~> 1.5.1)
7
7
 
@@ -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[repo_token service_name source_files].freeze
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(s)')
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
@@ -1,3 +1,3 @@
1
1
  module CoverallsMulti
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
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.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-04 00:00:00.000000000 Z
11
+ date: 2018-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls