coveralls 0.8.6 → 0.8.7

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: 07a161522c07c53f1ca8b08f9a01eb4801459989
4
- data.tar.gz: fb7827fe9615716a93c16595a5892fbd938a97d5
3
+ metadata.gz: 5715807f4800461bfbf95d4f2bf32fa99d612d35
4
+ data.tar.gz: 461ffb9b16d72c2b15e5cebaad6f5e8031524f73
5
5
  SHA512:
6
- metadata.gz: 857f5fff3bb7daca6c91fcafdf2727fed4d85d2ec07f614fa718240d72aa3db4f7103c30f1f30c030c9759c783014e3f762196ff47d9feec2a219f81228b6e58
7
- data.tar.gz: 3a903d6af4dffef92a6216d226e24a0c30eca6936f36648d03c9476cbc318c6939a44ea21bf74ba8cb1b8a124b17ea5dd8cd65b22e5cc735447818c671bd754c
6
+ metadata.gz: 6df3d614eed9c671018987ebf7abbded1624bda09e33889c21a47d7384b3e5098f8899b2084bfd741b93db5ff450e31431dafa234c1da76e97b78efc27ced69b
7
+ data.tar.gz: f9f5dd3390c25764155bac1bf6a7812fcccd109c2c4fe5991780b40f6be2d84284bc66b1adef500ef5d8efa4f5bf71ce3d8534632d916f7039c1baea06de9658
@@ -58,8 +58,9 @@ module Coveralls
58
58
 
59
59
  def self.set_service_params_for_semaphore(config)
60
60
  config[:service_name] = 'semaphore'
61
- # Semaphore build numbers are non-unique across branches, so branch id is needed for scoping:
62
- config[:service_number] = ENV['SEMAPHORE_BRANCH_ID'].to_s + ENV['SEMAPHORE_BUILD_NUMBER'].to_s
61
+ # Semaphore build numbers are non-unique across branches, so branch id is needed for scoping;
62
+ # they recommended concating with a 0
63
+ config[:service_number] = "#{ENV['SEMAPHORE_BRANCH_ID']}0#{ENV['SEMAPHORE_BUILD_NUMBER']}"
63
64
  config[:service_pull_request] = ENV['PULL_REQUEST_NUMBER']
64
65
  end
65
66
 
@@ -1,3 +1,3 @@
1
1
  module Coveralls
2
- VERSION = "0.8.6"
2
+ VERSION = "0.8.7"
3
3
  end
@@ -195,15 +195,17 @@ describe Coveralls::Configuration do
195
195
 
196
196
  describe '.set_service_params_for_semaphore' do
197
197
  let(:semaphore_build_num) { SecureRandom.hex(4) }
198
+ let(:semaphore_branch_id) { SecureRandom.hex(4) }
198
199
  before do
199
200
  ENV.stub(:[]).with('SEMAPHORE_BUILD_NUMBER').and_return(semaphore_build_num)
201
+ ENV.stub(:[]).with('SEMAPHORE_BRANCH_ID').and_return(semaphore_branch_id)
200
202
  end
201
203
 
202
204
  it 'should set the expected parameters' do
203
205
  config = {}
204
206
  Coveralls::Configuration.set_service_params_for_semaphore(config)
205
207
  config[:service_name].should eq('semaphore')
206
- config[:service_number].should eq(semaphore_build_num)
208
+ config[:service_number].should eq("#{semaphore_branch_id}0#{semaphore_build_num}")
207
209
  end
208
210
  end
209
211
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coveralls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Merwin