travis 1.11.1 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +34 -3
  3. data/Rakefile +22 -20
  4. data/bin/travis +5 -3
  5. data/examples/org_overview.rb +2 -0
  6. data/examples/pro_auth.rb +3 -1
  7. data/examples/stream.rb +5 -3
  8. data/lib/travis/auto_login.rb +2 -0
  9. data/lib/travis/cli/accounts.rb +12 -9
  10. data/lib/travis/cli/api_command.rb +85 -81
  11. data/lib/travis/cli/branches.rb +8 -6
  12. data/lib/travis/cli/cache.rb +48 -44
  13. data/lib/travis/cli/cancel.rb +4 -2
  14. data/lib/travis/cli/command.rb +170 -142
  15. data/lib/travis/cli/console.rb +5 -5
  16. data/lib/travis/cli/disable.rb +4 -2
  17. data/lib/travis/cli/enable.rb +14 -12
  18. data/lib/travis/cli/encrypt.rb +57 -57
  19. data/lib/travis/cli/encrypt_file.rb +29 -18
  20. data/lib/travis/cli/endpoint.rb +9 -7
  21. data/lib/travis/cli/env.rb +13 -8
  22. data/lib/travis/cli/help.rb +11 -9
  23. data/lib/travis/cli/history.rb +19 -15
  24. data/lib/travis/cli/init.rb +27 -24
  25. data/lib/travis/cli/lint.rb +10 -8
  26. data/lib/travis/cli/login.rb +17 -11
  27. data/lib/travis/cli/logout.rb +4 -2
  28. data/lib/travis/cli/logs.rb +28 -19
  29. data/lib/travis/cli/monitor.rb +11 -8
  30. data/lib/travis/cli/open.rb +17 -14
  31. data/lib/travis/cli/parser.rb +2 -0
  32. data/lib/travis/cli/pubkey.rb +13 -11
  33. data/lib/travis/cli/raw.rb +4 -3
  34. data/lib/travis/cli/regenerate_token.rb +15 -0
  35. data/lib/travis/cli/remove_token.rb +15 -0
  36. data/lib/travis/cli/repo_command.rb +123 -112
  37. data/lib/travis/cli/report.rb +40 -33
  38. data/lib/travis/cli/repos.rb +14 -9
  39. data/lib/travis/cli/requests.rb +13 -12
  40. data/lib/travis/cli/restart.rb +4 -2
  41. data/lib/travis/cli/settings.rb +41 -35
  42. data/lib/travis/cli/setup/anynines.rb +7 -6
  43. data/lib/travis/cli/setup/appfog.rb +6 -4
  44. data/lib/travis/cli/setup/artifacts.rb +7 -5
  45. data/lib/travis/cli/setup/biicode.rb +6 -4
  46. data/lib/travis/cli/setup/cloud_66.rb +6 -4
  47. data/lib/travis/cli/setup/cloud_control.rb +8 -6
  48. data/lib/travis/cli/setup/cloud_files.rb +7 -5
  49. data/lib/travis/cli/setup/cloud_foundry.rb +9 -7
  50. data/lib/travis/cli/setup/code_deploy.rb +33 -29
  51. data/lib/travis/cli/setup/deis.rb +8 -6
  52. data/lib/travis/cli/setup/divshot.rb +20 -18
  53. data/lib/travis/cli/setup/elastic_beanstalk.rb +10 -8
  54. data/lib/travis/cli/setup/engine_yard.rb +9 -7
  55. data/lib/travis/cli/setup/gcs.rb +9 -7
  56. data/lib/travis/cli/setup/hackage.rb +6 -4
  57. data/lib/travis/cli/setup/heroku.rb +10 -4
  58. data/lib/travis/cli/setup/modulus.rb +5 -3
  59. data/lib/travis/cli/setup/ninefold.rb +7 -5
  60. data/lib/travis/cli/setup/nodejitsu.rb +6 -4
  61. data/lib/travis/cli/setup/npm.rb +6 -4
  62. data/lib/travis/cli/setup/open_shift.rb +8 -6
  63. data/lib/travis/cli/setup/opsworks.rb +24 -22
  64. data/lib/travis/cli/setup/pypi.rb +7 -5
  65. data/lib/travis/cli/setup/releases.rb +6 -6
  66. data/lib/travis/cli/setup/ruby_gems.rb +7 -5
  67. data/lib/travis/cli/setup/s3.rb +12 -8
  68. data/lib/travis/cli/setup/sauce_connect.rb +7 -5
  69. data/lib/travis/cli/setup/service.rb +36 -25
  70. data/lib/travis/cli/setup.rb +7 -3
  71. data/lib/travis/cli/show.rb +10 -8
  72. data/lib/travis/cli/sshkey.rb +31 -27
  73. data/lib/travis/cli/status.rb +5 -3
  74. data/lib/travis/cli/sync.rb +9 -7
  75. data/lib/travis/cli/token.rb +4 -2
  76. data/lib/travis/cli/version.rb +4 -3
  77. data/lib/travis/cli/whatsup.rb +10 -8
  78. data/lib/travis/cli/whoami.rb +2 -2
  79. data/lib/travis/cli.rb +81 -76
  80. data/lib/travis/client/account.rb +8 -6
  81. data/lib/travis/client/artifact.rb +16 -12
  82. data/lib/travis/client/auto_login.rb +7 -4
  83. data/lib/travis/client/broadcast.rb +2 -0
  84. data/lib/travis/client/build.rb +7 -3
  85. data/lib/travis/client/cache.rb +4 -2
  86. data/lib/travis/client/commit.rb +5 -2
  87. data/lib/travis/client/entity.rb +50 -46
  88. data/lib/travis/client/env_var.rb +13 -8
  89. data/lib/travis/client/error.rb +5 -3
  90. data/lib/travis/client/has_uuid.rb +3 -1
  91. data/lib/travis/client/job.rb +8 -3
  92. data/lib/travis/client/lint_result.rb +2 -0
  93. data/lib/travis/client/listener.rb +70 -55
  94. data/lib/travis/client/methods.rb +26 -5
  95. data/lib/travis/client/namespace.rb +20 -16
  96. data/lib/travis/client/not_loadable.rb +3 -1
  97. data/lib/travis/client/repository.rb +34 -22
  98. data/lib/travis/client/request.rb +5 -2
  99. data/lib/travis/client/restartable.rb +2 -0
  100. data/lib/travis/client/session.rb +118 -88
  101. data/lib/travis/client/settings.rb +8 -3
  102. data/lib/travis/client/singleton_setting.rb +2 -0
  103. data/lib/travis/client/ssh_key.rb +2 -0
  104. data/lib/travis/client/states.rb +8 -6
  105. data/lib/travis/client/user.rb +2 -0
  106. data/lib/travis/client/weak_entity.rb +6 -3
  107. data/lib/travis/client.rb +4 -1
  108. data/lib/travis/pro/auto_login.rb +2 -0
  109. data/lib/travis/pro.rb +2 -0
  110. data/lib/travis/tools/assets.rb +6 -3
  111. data/lib/travis/tools/completion.rb +10 -6
  112. data/lib/travis/tools/formatter.rb +20 -14
  113. data/lib/travis/tools/github.rb +59 -49
  114. data/lib/travis/tools/notification.rb +18 -13
  115. data/lib/travis/tools/safe_string.rb +4 -1
  116. data/lib/travis/tools/ssl_key.rb +5 -2
  117. data/lib/travis/tools/system.rb +11 -6
  118. data/lib/travis/version.rb +3 -1
  119. data/lib/travis.rb +3 -1
  120. data/spec/cli/api_command_spec.rb +11 -8
  121. data/spec/cli/cancel_spec.rb +2 -4
  122. data/spec/cli/encrypt_file_spec.rb +9 -7
  123. data/spec/cli/encrypt_spec.rb +19 -17
  124. data/spec/cli/endpoint_spec.rb +12 -10
  125. data/spec/cli/help_spec.rb +14 -12
  126. data/spec/cli/history_spec.rb +2 -0
  127. data/spec/cli/init_spec.rb +35 -33
  128. data/spec/cli/logs_spec.rb +2 -0
  129. data/spec/cli/open_spec.rb +6 -4
  130. data/spec/cli/repo_command_spec.rb +8 -4
  131. data/spec/cli/restart_spec.rb +2 -4
  132. data/spec/cli/setup/service_spec.rb +17 -18
  133. data/spec/cli/setup_spec.rb +2 -4
  134. data/spec/cli/show_spec.rb +4 -2
  135. data/spec/cli/status_spec.rb +7 -5
  136. data/spec/cli/token_spec.rb +7 -5
  137. data/spec/cli/version_spec.rb +2 -0
  138. data/spec/cli/whoami_spec.rb +9 -7
  139. data/spec/client/account_spec.rb +28 -20
  140. data/spec/client/auto_login_spec.rb +12 -9
  141. data/spec/client/broadcast_spec.rb +5 -3
  142. data/spec/client/build_spec.rb +28 -24
  143. data/spec/client/commit_spec.rb +17 -14
  144. data/spec/client/job_spec.rb +27 -23
  145. data/spec/client/methods_spec.rb +8 -4
  146. data/spec/client/namespace_spec.rb +8 -4
  147. data/spec/client/repository_spec.rb +33 -30
  148. data/spec/client/session_spec.rb +71 -67
  149. data/spec/client/user_spec.rb +13 -10
  150. data/spec/client_spec.rb +6 -4
  151. data/spec/pro_spec.rb +5 -3
  152. data/spec/spec_helper.rb +3 -1
  153. data/spec/support/fake_api.rb +662 -662
  154. data/spec/support/fake_github.rb +6 -3
  155. data/spec/support/helpers.rb +13 -8
  156. data/spec/travis_spec.rb +5 -3
  157. data/travis.gemspec +402 -399
  158. metadata +31 -49
@@ -1,165 +1,169 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Travis::Client::Session do
4
- it { should be_a(Travis::Client::Methods) }
6
+ subject(:session) { described_class.new }
7
+
8
+ it { is_expected.to be_a(Travis::Client::Methods) }
5
9
 
6
- describe "uri" do
7
- its(:uri) { should be == "https://api.travis-ci.org/" }
10
+ describe 'uri' do
11
+ its(:uri) { is_expected.to be == 'https://api.travis-ci.com/' }
8
12
 
9
13
  it 'can be set as argument' do
10
- Travis::Client::Session.new('http://foo/').uri.should be == 'http://foo/'
14
+ described_class.new('http://foo/').uri.should be == 'http://foo/'
11
15
  end
12
16
 
13
17
  it 'can be set as hash argument' do
14
- Travis::Client::Session.new(:uri => 'http://foo/').uri.should be == 'http://foo/'
18
+ described_class.new(uri: 'http://foo/').uri.should be == 'http://foo/'
15
19
  end
16
20
  end
17
21
 
18
- describe "access_token" do
19
- its(:access_token) { should be_nil }
22
+ describe 'access_token' do
23
+ its(:access_token) { is_expected.to be_nil }
20
24
 
21
25
  it 'gives authenticated access if set' do
22
- subject.access_token = 'token'
23
- subject.user.login.should be == 'rkh'
26
+ session.access_token = 'token'
27
+ session.user.login.should be == 'rkh'
24
28
  end
25
29
 
26
30
  it 'raises if token is not set' do
27
- expect { subject.user.login }.to raise_error(Travis::Client::Error)
31
+ expect { session.user.login }.to raise_error(Travis::Client::Error)
28
32
  end
29
33
  end
30
34
 
31
- describe "connection" do
32
- its(:connection) { should be_a(Faraday::Connection) }
35
+ describe 'connection' do
36
+ its(:connection) { is_expected.to be_a(Faraday::Connection) }
33
37
 
34
38
  it 'creates a new connection when changing the uri' do
35
- old_connection = subject.connection
36
- subject.uri = 'http://localhost:3000'
37
- subject.connection.should_not be == old_connection
39
+ old_connection = session.connection
40
+ session.uri = 'http://localhost:3000'
41
+ session.connection.should_not be == old_connection
38
42
  end
39
43
  end
40
44
 
41
- describe "headers" do
45
+ describe 'headers' do
42
46
  it 'propagates headers to connection headers' do
43
- subject.headers['foo'] = 'bar'
44
- subject.connection.headers.should include('foo')
47
+ session.headers['foo'] = 'bar'
48
+ session.connection.headers.should include('foo')
45
49
  end
46
50
 
47
51
  it 'propagates headers to new connections' do
48
- subject.headers['foo'] = 'bar'
49
- subject.connection = Faraday::Connection.new
50
- subject.connection.headers.should include('foo')
52
+ session.headers['foo'] = 'bar'
53
+ session.connection = Faraday::Connection.new
54
+ session.connection.headers.should include('foo')
51
55
  end
52
56
 
53
57
  it 'is possible to set headers as constructor option' do
54
- Travis::Client::Session.new(:headers => {'foo' => 'bar'}, :uri => 'http://localhost:3000/').
55
- connection.headers['foo'].should be == 'bar'
58
+ described_class.new(headers: { 'foo' => 'bar' }, uri: 'http://localhost:3000/')
59
+ .connection.headers['foo'].should be == 'bar'
56
60
  end
57
61
 
58
62
  it 'sets a User-Agent' do
59
- subject.headers['User-Agent'].should include("Travis/#{Travis::VERSION}")
60
- subject.headers['User-Agent'].should include("Faraday/#{Faraday::VERSION}")
61
- subject.headers['User-Agent'].should include("Rack/#{Rack.version}")
62
- subject.headers['User-Agent'].should include("Ruby #{RUBY_VERSION}")
63
+ session.headers['User-Agent'].should include("Travis/#{Travis::VERSION}")
64
+ session.headers['User-Agent'].should include("Faraday/#{Faraday::VERSION}")
65
+ session.headers['User-Agent'].should include("Rack/#{Rack.version}")
66
+ session.headers['User-Agent'].should include("Ruby #{RUBY_VERSION}")
63
67
  end
64
68
 
65
69
  it 'allows adding custom info to the User-Agent' do
66
- subject.agent_info = "foo"
67
- subject.headers['User-Agent'].should include("foo")
68
- subject.headers['User-Agent'].should include("Travis/#{Travis::VERSION}")
69
- subject.headers['User-Agent'].should include("Faraday/#{Faraday::VERSION}")
70
- subject.headers['User-Agent'].should include("Rack/#{Rack.version}")
71
- subject.headers['User-Agent'].should include("Ruby #{RUBY_VERSION}")
70
+ session.agent_info = 'foo'
71
+ session.headers['User-Agent'].should include('foo')
72
+ session.headers['User-Agent'].should include("Travis/#{Travis::VERSION}")
73
+ session.headers['User-Agent'].should include("Faraday/#{Faraday::VERSION}")
74
+ session.headers['User-Agent'].should include("Rack/#{Rack.version}")
75
+ session.headers['User-Agent'].should include("Ruby #{RUBY_VERSION}")
72
76
  end
73
77
  end
74
78
 
75
- describe "find_one" do
79
+ describe 'find_one' do
76
80
  it 'finds one instance' do
77
- repo = subject.find_one(Travis::Client::Repository, 'rails/rails')
81
+ repo = session.find_one(Travis::Client::Repository, 'rails/rails')
78
82
  repo.should be_a(Travis::Client::Repository)
79
83
  repo.slug.should be == 'rails/rails'
80
84
  end
81
85
  end
82
86
 
83
- describe "find_many" do
87
+ describe 'find_many' do
84
88
  it 'finds many instances' do
85
- repos = subject.find_many(Travis::Client::Repository)
89
+ repos = session.find_many(Travis::Client::Repository)
86
90
  repos.should be_an(Array)
87
91
  repos.each { |repo| repo.should be_a(Travis::Client::Repository) }
88
- repos.first.slug.should be == "pypug/django-mango"
92
+ repos.first.slug.should be == 'pypug/django-mango'
89
93
  end
90
94
  end
91
95
 
92
- describe "find_one_or_many" do
96
+ describe 'find_one_or_many' do
93
97
  it 'finds one instance' do
94
- subject.access_token = 'token'
95
- subject.find_one_or_many(Travis::Client::User).should be_a(Travis::Client::User)
98
+ session.access_token = 'token'
99
+ session.find_one_or_many(Travis::Client::User).should be_a(Travis::Client::User)
96
100
  end
97
101
 
98
102
  it 'finds many instances' do
99
- subject.find_one_or_many(Travis::Client::Repository).should be_an(Array)
103
+ session.find_one_or_many(Travis::Client::Repository).should be_an(Array)
100
104
  end
101
105
  end
102
106
 
103
- describe "reload" do
107
+ describe 'reload' do
104
108
  it 'reloads an instance' do
105
- Travis::Client::Session::FakeAPI.rails_description = "Ruby on Rails"
106
- rails = subject.find_one(Travis::Client::Repository, 'rails/rails')
109
+ Travis::Client::Session::FakeAPI.rails_description = 'Ruby on Rails'
110
+ rails = session.find_one(Travis::Client::Repository, 'rails/rails')
107
111
  rails.description.should be == 'Ruby on Rails'
108
112
  Travis::Client::Session::FakeAPI.rails_description = 'Rails on the Rubies'
109
113
  rails.description.should be == 'Ruby on Rails'
110
- subject.reload(rails)
114
+ session.reload(rails)
111
115
  rails.description.should be == 'Rails on the Rubies'
112
116
  end
113
117
  end
114
118
 
115
- describe "get" do
119
+ describe 'get' do
116
120
  it 'fetches a payload and substitutes values with entities' do
117
- result = subject.get('/repos/')
118
- result['repos'].first.slug.should be == "pypug/django-mango"
121
+ result = session.get('/repos/')
122
+ result['repos'].first.slug.should be == 'pypug/django-mango'
119
123
  end
120
124
  end
121
125
 
122
- describe "clear_cache" do
126
+ describe 'clear_cache' do
123
127
  it 'resets all the entities' do
124
- Travis::Client::Session::FakeAPI.rails_description = "Ruby on Rails"
125
- rails = subject.find_one(Travis::Client::Repository, 'rails/rails')
128
+ Travis::Client::Session::FakeAPI.rails_description = 'Ruby on Rails'
129
+ rails = session.find_one(Travis::Client::Repository, 'rails/rails')
126
130
  rails.description.should be == 'Ruby on Rails'
127
131
  Travis::Client::Session::FakeAPI.rails_description = 'Rails on the Rubies'
128
132
  rails.description.should be == 'Ruby on Rails'
129
- subject.clear_cache
133
+ session.clear_cache
130
134
  rails.description.should be == 'Rails on the Rubies'
131
135
  end
132
136
 
133
137
  it 'keeps entries in the identity map' do
134
- rails = subject.repo('rails/rails')
135
- subject.clear_cache
136
- subject.repo('rails/rails').should be_equal(rails)
138
+ rails = session.repo('rails/rails')
139
+ session.clear_cache
140
+ session.repo('rails/rails').should be_equal(rails)
137
141
  end
138
142
  end
139
143
 
140
- describe "clear_cache!" do
144
+ describe 'clear_cache!' do
141
145
  it 'resets all the entities' do
142
- Travis::Client::Session::FakeAPI.rails_description = "Ruby on Rails"
143
- rails = subject.find_one(Travis::Client::Repository, 'rails/rails')
146
+ Travis::Client::Session::FakeAPI.rails_description = 'Ruby on Rails'
147
+ rails = session.find_one(Travis::Client::Repository, 'rails/rails')
144
148
  rails.description.should be == 'Ruby on Rails'
145
149
  Travis::Client::Session::FakeAPI.rails_description = 'Rails on the Rubies'
146
150
  rails.description.should be == 'Ruby on Rails'
147
- subject.clear_cache!
151
+ session.clear_cache!
148
152
  rails.description.should be == 'Rails on the Rubies'
149
153
  end
150
154
 
151
155
  it 'does not keep entries in the identity map' do
152
- rails = subject.repo('rails/rails')
153
- subject.clear_cache!
154
- subject.repo('rails/rails').should_not be_equal(rails)
156
+ rails = session.repo('rails/rails')
157
+ session.clear_cache!
158
+ session.repo('rails/rails').should_not be_equal(rails)
155
159
  end
156
160
  end
157
161
 
158
- describe "session" do
159
- its(:session) { should eq(subject) }
162
+ describe 'session' do
163
+ its(:session) { is_expected.to eq(session) }
160
164
  end
161
165
 
162
- describe "config" do
163
- its(:config) { should be == {"host" => "travis-ci.org"}}
166
+ describe 'config' do
167
+ its(:config) { is_expected.to be == { 'host' => 'travis-ci.org' } }
164
168
  end
165
169
  end
@@ -1,16 +1,19 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Travis::Client::User do
4
6
  # attributes :login, :name, :email, :gravatar_id, :locale, :is_syncing, :synced_at, :correct_scopes
5
- subject { Travis::Client.new(:access_token => 'token').user }
6
- its(:login) { should be == 'rkh' }
7
- its(:name) { should be == 'Konstantin Haase' }
8
- its(:email) { should be == 'konstantin.haase@gmail.com' }
9
- its(:gravatar_id) { should be == '5c2b452f6eea4a6d84c105ebd971d2a4' }
10
- its(:locale) { should be == 'en' }
11
- its(:is_syncing) { should be false }
12
- its(:synced_at) { should be_a(Time) }
7
+ subject { Travis::Client.new(access_token: 'token').user }
8
+
9
+ its(:login) { is_expected.to be == 'rkh' }
10
+ its(:name) { is_expected.to be == 'Konstantin Haase' }
11
+ its(:email) { is_expected.to be == 'konstantin.haase@gmail.com' }
12
+ its(:gravatar_id) { is_expected.to be == '5c2b452f6eea4a6d84c105ebd971d2a4' }
13
+ its(:locale) { is_expected.to be == 'en' }
14
+ its(:is_syncing) { is_expected.to be false }
15
+ its(:synced_at) { is_expected.to be_a(Time) }
13
16
 
14
- it { should_not be_syncing }
15
- it { should be_correct_scopes }
17
+ it { is_expected.not_to be_syncing }
18
+ it { is_expected.to be_correct_scopes }
16
19
  end
data/spec/client_spec.rb CHANGED
@@ -1,17 +1,19 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Travis::Client do
4
- its(:new) { should be_a(Travis::Client::Session) }
6
+ its(:new) { is_expected.to be_a(Travis::Client::Session) }
5
7
 
6
8
  it 'accepts string argument' do
7
- Travis::Client.new('http://foo/').uri.should be == 'http://foo/'
9
+ described_class.new('http://foo/').uri.should be == 'http://foo/'
8
10
  end
9
11
 
10
12
  it 'accepts options hash with string keys' do
11
- Travis::Client.new('uri' => 'http://foo/').uri.should be == 'http://foo/'
13
+ described_class.new('uri' => 'http://foo/').uri.should be == 'http://foo/'
12
14
  end
13
15
 
14
16
  it 'accepts options hash with symbol keys' do
15
- Travis::Client.new(:uri => 'http://foo/').uri.should be == 'http://foo/'
17
+ described_class.new(uri: 'http://foo/').uri.should be == 'http://foo/'
16
18
  end
17
19
  end
data/spec/pro_spec.rb CHANGED
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Travis::Pro do
4
- it { should be_a(Travis::Client::Namespace) }
5
- its(:api_endpoint) { should be == 'https://api.travis-ci.com/' }
6
+ it { is_expected.to be_a(Travis::Client::Namespace) }
7
+ its(:api_endpoint) { is_expected.to be == 'https://api.travis-ci.com/' }
6
8
 
7
9
  it 'has a nice inspect on entities' do
8
- Travis::Pro::Repository.find('rails/rails').inspect.should be == "#<Travis::Pro::Repository: rails/rails>"
10
+ Travis::Pro::Repository.find('rails/rails').inspect.should be == '#<Travis::Pro::Repository: rails/rails>'
9
11
  end
10
12
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'support/fake_api'
2
4
  require 'support/fake_github'
3
5
  require 'support/helpers'
@@ -21,7 +23,7 @@ RSpec.configure do |c|
21
23
  temp_dir = File.expand_path('travis-spec', Dir.tmpdir)
22
24
  FileUtils.rm_rf(temp_dir)
23
25
  FileUtils.mkdir_p(temp_dir)
24
- ENV.delete_if { |k,v| k.start_with? "TRAVIS_" }
26
+ ENV.delete_if { |k, _v| k.start_with? 'TRAVIS_' }
25
27
  ENV['TRAVIS_CONFIG_PATH'] = File.expand_path('travis', temp_dir)
26
28
  end
27
29