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 +4 -4
- data/lib/coveralls/configuration.rb +1 -3
- data/lib/coveralls/version.rb +1 -1
- data/spec/coveralls/configuration_spec.rb +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef2fb992d97b7b30291c6d1a1c8efc49d8c2959a
|
4
|
+
data.tar.gz: c67197efa1f9abe256c4c23112d4e2ae63a20afd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
data/lib/coveralls/version.rb
CHANGED
@@ -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(
|
206
|
+
config[:service_number].should eq(semaphore_build_num)
|
209
207
|
end
|
210
208
|
end
|
211
209
|
|