coveralls 0.8.8 → 0.8.9

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: 2718e0e495fd910ee21ec7d7162feb1adb84a784
4
- data.tar.gz: 919e4a0de11c7baa643226e31bb960a1eab6a62d
3
+ metadata.gz: ef2fb992d97b7b30291c6d1a1c8efc49d8c2959a
4
+ data.tar.gz: c67197efa1f9abe256c4c23112d4e2ae63a20afd
5
5
  SHA512:
6
- metadata.gz: c2811134fb302eb56227360968835777463878f3fe85165723593529f9688c00ea141c6d71780bfac2b8c74fae0f637c862246d0c2e6da3327c8fc26e59c44a3
7
- data.tar.gz: c7f6a943ffa235eee0d85c5eb89f573887bf714771c70425541e54e2ad683c11587a2448ec5b4d3a0b3eef92fac0372749957a344f86c5cbcff19973ae653693
6
+ metadata.gz: a5de6ca70ca3cfdb0baccdebb127dec1d041689335ee95f91ec53003307ea4cb94eb86f2797ee1b354f5e02bf0d9908ab29eaa3d75999043396d01c19e439e58
7
+ data.tar.gz: a28b3ac2632b9ad60c9200cfd9b50a02820544ceaceb2bef2a7b5972995815596decf82a15226dcc4abb1a36d1567933dea963edbbaa84abd287a10a3afa4d26
@@ -58,9 +58,7 @@ 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
- # they recommended concating with a 0
63
- config[:service_number] = "#{ENV['SEMAPHORE_BRANCH_ID']}0#{ENV['SEMAPHORE_BUILD_NUMBER']}"
61
+ config[:service_number] = ENV['SEMAPHORE_BUILD_NUMBER']
64
62
  config[:service_pull_request] = ENV['PULL_REQUEST_NUMBER']
65
63
  end
66
64
 
@@ -1,3 +1,3 @@
1
1
  module Coveralls
2
- VERSION = "0.8.8"
2
+ VERSION = "0.8.9"
3
3
  end
@@ -195,17 +195,15 @@ 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) }
199
198
  before do
200
199
  ENV.stub(:[]).with('SEMAPHORE_BUILD_NUMBER').and_return(semaphore_build_num)
201
- ENV.stub(:[]).with('SEMAPHORE_BRANCH_ID').and_return(semaphore_branch_id)
202
200
  end
203
201
 
204
202
  it 'should set the expected parameters' do
205
203
  config = {}
206
204
  Coveralls::Configuration.set_service_params_for_semaphore(config)
207
205
  config[:service_name].should eq('semaphore')
208
- config[:service_number].should eq("#{semaphore_branch_id}0#{semaphore_build_num}")
206
+ config[:service_number].should eq(semaphore_build_num)
209
207
  end
210
208
  end
211
209
 
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.8
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Merwin