coveralls 0.8.18 → 0.8.19

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: aed4bfee37ccbe9d1d50bda24b004990e4bba9d5
4
- data.tar.gz: bc91525a445082774cbd14cd19d6a5d448175aaa
3
+ metadata.gz: '09b0004a6dd5ccc707572d628408a4a91414443d'
4
+ data.tar.gz: 8bf17a541b2781c2afb81a96ee511bb303234ac1
5
5
  SHA512:
6
- metadata.gz: abfbbbb92a9f4c371e602c8835abf7a6af3b90a75081a741e16e9182b95feb3078a4d198d4bc7af5ac42b2213df5852f92418d947fb6c10150e7f088125d3e57
7
- data.tar.gz: 47f9ff3cc53fdac64cdeb7f77488db2def8d676366016bc6f2519b0f68ca8409b46278a4b785e6f3a901f300408db41d6865cf9fef44bcdd5684e495e6bb7f7e
6
+ metadata.gz: 91e173d5e8558a4b2a07445636d279f5ca1a4d73c32a9ad770ecda7f8825226257cab7b91204c005e9068d9ff8f0b74ac611f2fcd7b592ff752664dc025b29f1
7
+ data.tar.gz: 0c5f311c1e7f9cad6bdd7fbb8406d25d36d276a5dd4e68e75e161ede2cb4950ce27bc5402fce91841b1ebb41eff03931be0acaef42f769b71125e144b302dd65
@@ -41,6 +41,10 @@ module Coveralls
41
41
  # standardized env vars
42
42
  set_standard_service_params_for_generic_ci(config)
43
43
 
44
+ if service_name = ENV['COVERALLS_SERVICE_NAME']
45
+ config[:service_name] = service_name
46
+ end
47
+
44
48
  config
45
49
  end
46
50
 
@@ -1,3 +1,3 @@
1
1
  module Coveralls
2
- VERSION = "0.8.18"
2
+ VERSION = "0.8.19"
3
3
  end
@@ -55,6 +55,19 @@ describe Coveralls::Configuration do
55
55
  end
56
56
 
57
57
  context 'Services' do
58
+ context 'with env based service name' do
59
+ let(:service_name) { 'travis-enterprise' }
60
+ before do
61
+ ENV.stub(:[]).with('TRAVIS').and_return('1')
62
+ ENV.stub(:[]).with('COVERALLS_SERVICE_NAME').and_return(service_name)
63
+ end
64
+
65
+ it 'pulls the service name from the environment if set' do
66
+ config = Coveralls::Configuration.configuration
67
+ config[:service_name].should eq(service_name)
68
+ end
69
+ end
70
+
58
71
  context 'on Travis' do
59
72
  before do
60
73
  ENV.stub(:[]).with('TRAVIS').and_return('1')
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.18
4
+ version: 0.8.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Merwin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-16 00:00:00.000000000 Z
12
+ date: 2017-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json