travis-akerl 1.8.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +22 -0
  3. data/README.md +2512 -0
  4. data/Rakefile +64 -0
  5. data/assets/cacert.pem +69 -0
  6. data/assets/init/c.yml +4 -0
  7. data/assets/init/clojure.yml +1 -0
  8. data/assets/init/cpp.yml +4 -0
  9. data/assets/init/erlang.yml +3 -0
  10. data/assets/init/go.yml +4 -0
  11. data/assets/init/groovy.yml +1 -0
  12. data/assets/init/haskell.yml +1 -0
  13. data/assets/init/java.yml +4 -0
  14. data/assets/init/node_js.yml +5 -0
  15. data/assets/init/objective-c.yml +1 -0
  16. data/assets/init/perl.yml +4 -0
  17. data/assets/init/php.yml +4 -0
  18. data/assets/init/python.yml +5 -0
  19. data/assets/init/ruby.yml +6 -0
  20. data/assets/init/scala.yml +4 -0
  21. data/assets/notifications/Travis CI.app/Contents/Info.plist +52 -0
  22. data/assets/notifications/Travis CI.app/Contents/MacOS/Travis CI +0 -0
  23. data/assets/notifications/Travis CI.app/Contents/PkgInfo +1 -0
  24. data/assets/notifications/Travis CI.app/Contents/Resources/Travis CI.icns +0 -0
  25. data/assets/notifications/Travis CI.app/Contents/Resources/en.lproj/Credits.rtf +29 -0
  26. data/assets/notifications/Travis CI.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  27. data/assets/notifications/Travis CI.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
  28. data/assets/notifications/Travis CI.app/Contents/_CodeSignature/CodeResources +173 -0
  29. data/assets/notifications/Travis CI.app/Contents/embedded.provisionprofile +0 -0
  30. data/assets/notifications/icon.png +0 -0
  31. data/assets/travis.sh +163 -0
  32. data/assets/travis.sh.erb +64 -0
  33. data/bin/travis +18 -0
  34. data/examples/org_overview.rb +3 -0
  35. data/examples/pro_auth.rb +23 -0
  36. data/examples/stream.rb +6 -0
  37. data/lib/travis/auto_login.rb +3 -0
  38. data/lib/travis/cli/accounts.rb +31 -0
  39. data/lib/travis/cli/api_command.rb +182 -0
  40. data/lib/travis/cli/branches.rb +25 -0
  41. data/lib/travis/cli/cache.rb +76 -0
  42. data/lib/travis/cli/cancel.rb +18 -0
  43. data/lib/travis/cli/command.rb +422 -0
  44. data/lib/travis/cli/console.rb +33 -0
  45. data/lib/travis/cli/disable.rb +15 -0
  46. data/lib/travis/cli/enable.rb +31 -0
  47. data/lib/travis/cli/encrypt.rb +115 -0
  48. data/lib/travis/cli/encrypt_file.rb +140 -0
  49. data/lib/travis/cli/endpoint.rb +35 -0
  50. data/lib/travis/cli/env.rb +66 -0
  51. data/lib/travis/cli/help.rb +23 -0
  52. data/lib/travis/cli/history.rb +49 -0
  53. data/lib/travis/cli/init.rb +82 -0
  54. data/lib/travis/cli/lint.rb +49 -0
  55. data/lib/travis/cli/login.rb +76 -0
  56. data/lib/travis/cli/logout.rb +14 -0
  57. data/lib/travis/cli/logs.rb +65 -0
  58. data/lib/travis/cli/monitor.rb +111 -0
  59. data/lib/travis/cli/open.rb +39 -0
  60. data/lib/travis/cli/parser.rb +43 -0
  61. data/lib/travis/cli/pubkey.rb +30 -0
  62. data/lib/travis/cli/raw.rb +20 -0
  63. data/lib/travis/cli/repo_command.rb +154 -0
  64. data/lib/travis/cli/report.rb +101 -0
  65. data/lib/travis/cli/repos.rb +53 -0
  66. data/lib/travis/cli/requests.rb +47 -0
  67. data/lib/travis/cli/restart.rb +18 -0
  68. data/lib/travis/cli/settings.rb +79 -0
  69. data/lib/travis/cli/setup/anynines.rb +21 -0
  70. data/lib/travis/cli/setup/appfog.rb +19 -0
  71. data/lib/travis/cli/setup/artifacts.rb +23 -0
  72. data/lib/travis/cli/setup/biicode.rb +19 -0
  73. data/lib/travis/cli/setup/cloud_66.rb +20 -0
  74. data/lib/travis/cli/setup/cloud_control.rb +21 -0
  75. data/lib/travis/cli/setup/cloud_files.rb +20 -0
  76. data/lib/travis/cli/setup/cloud_foundry.rb +23 -0
  77. data/lib/travis/cli/setup/code_deploy.rb +55 -0
  78. data/lib/travis/cli/setup/deis.rb +20 -0
  79. data/lib/travis/cli/setup/divshot.rb +18 -0
  80. data/lib/travis/cli/setup/elastic_beanstalk.rb +23 -0
  81. data/lib/travis/cli/setup/engine_yard.rb +24 -0
  82. data/lib/travis/cli/setup/gcs.rb +22 -0
  83. data/lib/travis/cli/setup/hackage.rb +18 -0
  84. data/lib/travis/cli/setup/heroku.rb +20 -0
  85. data/lib/travis/cli/setup/modulus.rb +18 -0
  86. data/lib/travis/cli/setup/ninefold.rb +20 -0
  87. data/lib/travis/cli/setup/nodejitsu.rb +27 -0
  88. data/lib/travis/cli/setup/npm.rb +20 -0
  89. data/lib/travis/cli/setup/open_shift.rb +20 -0
  90. data/lib/travis/cli/setup/opsworks.rb +22 -0
  91. data/lib/travis/cli/setup/pypi.rb +22 -0
  92. data/lib/travis/cli/setup/releases.rb +35 -0
  93. data/lib/travis/cli/setup/ruby_gems.rb +25 -0
  94. data/lib/travis/cli/setup/s3.rb +25 -0
  95. data/lib/travis/cli/setup/sauce_connect.rb +21 -0
  96. data/lib/travis/cli/setup/service.rb +73 -0
  97. data/lib/travis/cli/setup.rb +66 -0
  98. data/lib/travis/cli/show.rb +57 -0
  99. data/lib/travis/cli/sshkey.rb +118 -0
  100. data/lib/travis/cli/status.rb +19 -0
  101. data/lib/travis/cli/sync.rb +30 -0
  102. data/lib/travis/cli/token.rb +14 -0
  103. data/lib/travis/cli/version.rb +17 -0
  104. data/lib/travis/cli/whatsup.rb +30 -0
  105. data/lib/travis/cli/whoami.rb +15 -0
  106. data/lib/travis/cli.rb +126 -0
  107. data/lib/travis/client/account.rb +56 -0
  108. data/lib/travis/client/artifact.rb +88 -0
  109. data/lib/travis/client/auto_login.rb +45 -0
  110. data/lib/travis/client/broadcast.rb +14 -0
  111. data/lib/travis/client/build.rb +47 -0
  112. data/lib/travis/client/cache.rb +25 -0
  113. data/lib/travis/client/commit.rb +28 -0
  114. data/lib/travis/client/entity.rb +238 -0
  115. data/lib/travis/client/env_var.rb +102 -0
  116. data/lib/travis/client/error.rb +38 -0
  117. data/lib/travis/client/has_uuid.rb +13 -0
  118. data/lib/travis/client/job.rb +61 -0
  119. data/lib/travis/client/lint_result.rb +25 -0
  120. data/lib/travis/client/listener.rb +183 -0
  121. data/lib/travis/client/methods.rb +104 -0
  122. data/lib/travis/client/namespace.rb +85 -0
  123. data/lib/travis/client/not_loadable.rb +13 -0
  124. data/lib/travis/client/repository.rb +224 -0
  125. data/lib/travis/client/request.rb +36 -0
  126. data/lib/travis/client/restartable.rb +23 -0
  127. data/lib/travis/client/session.rb +339 -0
  128. data/lib/travis/client/settings.rb +25 -0
  129. data/lib/travis/client/singleton_setting.rb +36 -0
  130. data/lib/travis/client/ssh_key.rb +11 -0
  131. data/lib/travis/client/states.rb +98 -0
  132. data/lib/travis/client/user.rb +67 -0
  133. data/lib/travis/client/weak_entity.rb +26 -0
  134. data/lib/travis/client.rb +38 -0
  135. data/lib/travis/pro/auto_login.rb +3 -0
  136. data/lib/travis/pro.rb +5 -0
  137. data/lib/travis/tools/assets.rb +21 -0
  138. data/lib/travis/tools/completion.rb +54 -0
  139. data/lib/travis/tools/formatter.rb +50 -0
  140. data/lib/travis/tools/github.rb +293 -0
  141. data/lib/travis/tools/notification.rb +69 -0
  142. data/lib/travis/tools/safe_string.rb +22 -0
  143. data/lib/travis/tools/ssl_key.rb +48 -0
  144. data/lib/travis/tools/system.rb +88 -0
  145. data/lib/travis/version.rb +3 -0
  146. data/lib/travis.rb +8 -0
  147. data/spec/cli/api_command_spec.rb +38 -0
  148. data/spec/cli/cancel_spec.rb +15 -0
  149. data/spec/cli/encrypt_spec.rb +49 -0
  150. data/spec/cli/endpoint_spec.rb +39 -0
  151. data/spec/cli/help_spec.rb +33 -0
  152. data/spec/cli/history_spec.rb +38 -0
  153. data/spec/cli/init_spec.rb +227 -0
  154. data/spec/cli/login_spec.rb +13 -0
  155. data/spec/cli/logs_spec.rb +8 -0
  156. data/spec/cli/open_spec.rb +33 -0
  157. data/spec/cli/repo_command_spec.rb +25 -0
  158. data/spec/cli/restart_spec.rb +15 -0
  159. data/spec/cli/setup_spec.rb +5 -0
  160. data/spec/cli/show_spec.rb +9 -0
  161. data/spec/cli/status_spec.rb +28 -0
  162. data/spec/cli/token_spec.rb +22 -0
  163. data/spec/cli/version_spec.rb +18 -0
  164. data/spec/cli/whoami_spec.rb +34 -0
  165. data/spec/client/account_spec.rb +32 -0
  166. data/spec/client/auto_login_spec.rb +25 -0
  167. data/spec/client/broadcast_spec.rb +10 -0
  168. data/spec/client/build_spec.rb +31 -0
  169. data/spec/client/commit_spec.rb +22 -0
  170. data/spec/client/job_spec.rb +30 -0
  171. data/spec/client/methods_spec.rb +15 -0
  172. data/spec/client/namespace_spec.rb +19 -0
  173. data/spec/client/repository_spec.rb +39 -0
  174. data/spec/client/session_spec.rb +165 -0
  175. data/spec/client/user_spec.rb +16 -0
  176. data/spec/client_spec.rb +17 -0
  177. data/spec/pro_spec.rb +10 -0
  178. data/spec/spec_helper.rb +29 -0
  179. data/spec/support/fake_api.rb +731 -0
  180. data/spec/support/fake_github.rb +24 -0
  181. data/spec/support/fake_travis_config.yml +14 -0
  182. data/spec/support/helpers.rb +45 -0
  183. data/spec/travis_spec.rb +10 -0
  184. data/travis.gemspec +371 -0
  185. metadata +534 -0
@@ -0,0 +1,24 @@
1
+ require 'gh'
2
+
3
+ module GH
4
+ class FakeRemote < Remote
5
+ def setup(host, options)
6
+ @authenticated = options[:password] == 'password'
7
+ super
8
+ end
9
+
10
+ def http(*)
11
+ raise NotImplementedError
12
+ end
13
+
14
+ def post(key, body)
15
+ raise GH::Error unless @authenticated and key == '/authorizations'
16
+ frontend.load("url" => "https://api.github.com/authorizations/1", "token" => "github_token")
17
+ end
18
+
19
+ def head(*) end
20
+ def delete(*) end
21
+ end
22
+
23
+ DefaultStack.replace(Remote, FakeRemote)
24
+ end
@@ -0,0 +1,14 @@
1
+ ---
2
+ last_check:
3
+ etag: '"fake_etaag"'
4
+ version: 1.8.8
5
+ at: 1487940199
6
+ checked_completion: true
7
+ completion_version: 1.8.8
8
+ endpoints:
9
+ https://api.travis-ci.com/:
10
+ access_token: fake-travis-com-token
11
+ https://api.travis-ci.org/:
12
+ access_token: fake-travis-org-token
13
+ https://travis-ci-enterprise/api:
14
+ access_token: fake-travis-enterprise-token
@@ -0,0 +1,45 @@
1
+ require 'spec_helper'
2
+ require 'stringio'
3
+ require 'ostruct'
4
+
5
+ module Helpers
6
+ attr_reader :last_run
7
+
8
+ def capture
9
+ _stdout, $stdout = $stdout, StringIO.new
10
+ _stderr, $stderr = $stderr, StringIO.new
11
+ _stdin, $stdin = $stdin, StringIO.new
12
+ yield
13
+ capture_result(true)
14
+ rescue SystemExit => e
15
+ capture_result(e.success?)
16
+ ensure
17
+ $stdout = _stdout if _stdout
18
+ $stderr = _stderr if _stderr
19
+ $stdin = _stdin if _stdin
20
+ end
21
+
22
+ def run_cli(*args)
23
+ args << ENV['TRAVIS_OPTS'] if ENV['TRAVIS_OPTS']
24
+ args << '--skip-version-check' << '--skip-completion-check'
25
+ capture do
26
+ yield $stdin if block_given?
27
+ $stdin.rewind
28
+ Travis::CLI.run(*args)
29
+ end
30
+ end
31
+
32
+ def stderr
33
+ last_run.err if last_run
34
+ end
35
+
36
+ def stdout
37
+ last_run.out if last_run
38
+ end
39
+
40
+ private
41
+
42
+ def capture_result(success)
43
+ @last_run = OpenStruct.new(:out => $stdout.string, :err => $stderr.string, :success? => success)
44
+ end
45
+ end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe Travis do
4
+ its(:api_endpoint) { should be == 'https://api.travis-ci.org/' }
5
+
6
+ it 'has a nice inspect on entities' do
7
+ pending "does not work on JRuby" if defined? RUBY_ENGINE and RUBY_ENGINE == 'jruby'
8
+ Travis::Repository.find('rails/rails').inspect.should be == "#<Travis::Repository: rails/rails>"
9
+ end
10
+ end
data/travis.gemspec ADDED
@@ -0,0 +1,371 @@
1
+ # Run `rake travis.gemspec` to update the gemspec.
2
+ Gem::Specification.new do |s|
3
+ # general infos
4
+ s.name = "travis-akerl"
5
+ s.version = "1.8.9"
6
+ s.description = "CLI and Ruby client library for Travis CI"
7
+ s.homepage = "https://github.com/travis-ci/travis.rb"
8
+ s.summary = "Travis CI client"
9
+ s.license = "MIT"
10
+ s.executables = ["travis"]
11
+
12
+ # generated from git shortlog -sn
13
+ s.authors = [
14
+ "Konstantin Haase",
15
+ "Hiro Asari",
16
+ "Sarah Hodne",
17
+ "joshua-anderson",
18
+ "Aaron Hill",
19
+ "Buck Doyle",
20
+ "Peter Souter",
21
+ "Christopher Grim",
22
+ "Joe Corcoran",
23
+ "Peter van Dijk",
24
+ "Aakriti Gupta",
25
+ "Max Barnash",
26
+ "Ren\xC3\xA9e Hendricksen",
27
+ "carlad",
28
+ "Ke Zhu",
29
+ "Carlos Palhares",
30
+ "Dan Buch",
31
+ "Mar\xC3\xADa de Ant\xC3\xB3n",
32
+ "Mathias Meyer",
33
+ "mariadeanton",
34
+ "Tobias Bieniek",
35
+ "Andreas Tiefenthaler",
36
+ "Corinna Wiesner",
37
+ "David Rodr\xC3\xADguez",
38
+ "Stefan Nordhausen",
39
+ "Igor Wiedler",
40
+ "Thais Camilo and Konstantin Haase",
41
+ "Joep van Delft",
42
+ "Jonne Ha\xC3\x9F",
43
+ "Josh Kalderimis",
44
+ "Julia S.Simon",
45
+ "Justin Lambert",
46
+ "Daniel Chatfield",
47
+ "Laurent Petit",
48
+ "Maarten van Vliet",
49
+ "Mario Visic",
50
+ "john muhl",
51
+ "Adam Lavin",
52
+ "Matteo Sumberaz",
53
+ "Matthias Bussonnier",
54
+ "Michael Mior",
55
+ "Michael S. Fischer",
56
+ "Miro Hron\xC4\x8Dok",
57
+ "Neamar",
58
+ "Nero Leung",
59
+ "Nicolas Bessi (nbessi)",
60
+ "Peter Bengtsson",
61
+ "Benjamin Manns",
62
+ "Basarat Ali Syed",
63
+ "Piotr Sarnacki",
64
+ "Rapha\xC3\xABl Pinson",
65
+ "Rob Hoelz",
66
+ "Robert Van Voorhees",
67
+ "Sven Fuchs",
68
+ "Tobias Wilken",
69
+ "Zachary Gershman",
70
+ "Zachary Scott",
71
+ "Adrien Brault",
72
+ "jeffdh",
73
+ "Harald Nordgren",
74
+ "HaraldNordgren",
75
+ "Eric Herot",
76
+ "George Millo",
77
+ "Igor",
78
+ "Jacob Atzen",
79
+ "Jacob Burkhart",
80
+ "Dominic Jodoin",
81
+ "Joe Rafaniello",
82
+ "Jon-Erik Schneiderhan",
83
+ "Jonas Chromik"
84
+ ]
85
+
86
+ # generated from git shortlog -sne
87
+ s.email = [
88
+ "konstantin.mailinglists@googlemail.com",
89
+ "asari.ruby@gmail.com",
90
+ "j@zatigo.com",
91
+ "aa1ronham@gmail.com",
92
+ "b@chromatin.ca",
93
+ "p.morsou@gmail.com",
94
+ "chrisg@luminal.io",
95
+ "joe@corcoran.io",
96
+ "peter.van.dijk@netherlabs.nl",
97
+ "kzhu@us.ibm.com",
98
+ "renee@travis-ci.org",
99
+ "i.am@anhero.ru",
100
+ "mariadeanton@gmail.com",
101
+ "aakritigupta@users.noreply.github.com",
102
+ "me@xjunior.me",
103
+ "dan@meatballhat.com",
104
+ "mariadeanton@gmail.com",
105
+ "meyer@paperplanes.de",
106
+ "carlad@users.noreply.github.com",
107
+ "igor@travis-ci.org",
108
+ "deivid.rodriguez@gmail.com",
109
+ "stefan.nordhausen@immobilienscout24.de",
110
+ "aakriti@travis-ci.org",
111
+ "wiesner@avarteq.de",
112
+ "dev+narwen+rkh@rkh.im",
113
+ "tobias.bieniek@gmail.com",
114
+ "at@an-ti.eu",
115
+ "jon-erik.schneiderhan@meyouhealth.com",
116
+ "Jonas.Chromik@student.hpi.uni-potsdam.de",
117
+ "me@jhass.eu",
118
+ "josh.kalderimis@gmail.com",
119
+ "julia.simon@biicode.com",
120
+ "jlambert@eml.cc",
121
+ "chatfielddaniel@gmail.com",
122
+ "laurent.petit@gmail.com",
123
+ "maartenvanvliet@gmail.com",
124
+ "mario@mariovisic.com",
125
+ "git@johnmuhl.com",
126
+ "adam@lavoaster.co.uk",
127
+ "gnappoms@gmail.com",
128
+ "bussonniermatthias@gmail.com",
129
+ "benmanns@gmail.com",
130
+ "mmior@uwaterloo.ca",
131
+ "mfischer@zendesk.com",
132
+ "miro@hroncok.cz",
133
+ "neamar@neamar.fr",
134
+ "neroleung@gmail.com",
135
+ "nbessi@users.noreply.github.com",
136
+ "peterbe@mozilla.com",
137
+ "basaratali@gmail.com",
138
+ "drogus@gmail.com",
139
+ "raphael.pinson@camptocamp.com",
140
+ "adrien.brault@gmail.com",
141
+ "rob@hoelz.ro",
142
+ "rcvanvo@gmail.com",
143
+ "me@svenfuchs.com",
144
+ "tw@cloudcontrol.de",
145
+ "pair+zg@pivotallabs.com",
146
+ "e@zzak.io",
147
+ "carla@travis-ci.org",
148
+ "jeffdh@gmail.com",
149
+ "haraldnordgren@gmail.com",
150
+ "haraldnordgren@gmail.com",
151
+ "eric.github@herot.com",
152
+ "georgejulianmillo@gmail.com",
153
+ "dominic@travis-ci.com",
154
+ "igorwwwwwwwwwwwwwwwwwwww@users.noreply.github.com",
155
+ "jatzen@gmail.com",
156
+ "jburkhart@engineyard.com",
157
+ "jrafanie@users.noreply.github.com",
158
+ "joep@travis-ci.org",
159
+ "joepvd@users.noreply.github.com"
160
+ ]
161
+
162
+ # generated from git ls-files
163
+ s.files = [
164
+ "LICENSE",
165
+ "README.md",
166
+ "Rakefile",
167
+ "assets/cacert.pem",
168
+ "assets/init/c.yml",
169
+ "assets/init/clojure.yml",
170
+ "assets/init/cpp.yml",
171
+ "assets/init/erlang.yml",
172
+ "assets/init/go.yml",
173
+ "assets/init/groovy.yml",
174
+ "assets/init/haskell.yml",
175
+ "assets/init/java.yml",
176
+ "assets/init/node_js.yml",
177
+ "assets/init/objective-c.yml",
178
+ "assets/init/perl.yml",
179
+ "assets/init/php.yml",
180
+ "assets/init/python.yml",
181
+ "assets/init/ruby.yml",
182
+ "assets/init/scala.yml",
183
+ "assets/notifications/Travis CI.app/Contents/Info.plist",
184
+ "assets/notifications/Travis CI.app/Contents/MacOS/Travis CI",
185
+ "assets/notifications/Travis CI.app/Contents/PkgInfo",
186
+ "assets/notifications/Travis CI.app/Contents/Resources/Travis CI.icns",
187
+ "assets/notifications/Travis CI.app/Contents/Resources/en.lproj/Credits.rtf",
188
+ "assets/notifications/Travis CI.app/Contents/Resources/en.lproj/InfoPlist.strings",
189
+ "assets/notifications/Travis CI.app/Contents/Resources/en.lproj/MainMenu.nib",
190
+ "assets/notifications/Travis CI.app/Contents/_CodeSignature/CodeResources",
191
+ "assets/notifications/Travis CI.app/Contents/embedded.provisionprofile",
192
+ "assets/notifications/icon.png",
193
+ "assets/travis.sh",
194
+ "assets/travis.sh.erb",
195
+ "bin/travis",
196
+ "examples/org_overview.rb",
197
+ "examples/pro_auth.rb",
198
+ "examples/stream.rb",
199
+ "lib/travis.rb",
200
+ "lib/travis/auto_login.rb",
201
+ "lib/travis/cli.rb",
202
+ "lib/travis/cli/accounts.rb",
203
+ "lib/travis/cli/api_command.rb",
204
+ "lib/travis/cli/branches.rb",
205
+ "lib/travis/cli/cache.rb",
206
+ "lib/travis/cli/cancel.rb",
207
+ "lib/travis/cli/command.rb",
208
+ "lib/travis/cli/console.rb",
209
+ "lib/travis/cli/disable.rb",
210
+ "lib/travis/cli/enable.rb",
211
+ "lib/travis/cli/encrypt.rb",
212
+ "lib/travis/cli/encrypt_file.rb",
213
+ "lib/travis/cli/endpoint.rb",
214
+ "lib/travis/cli/env.rb",
215
+ "lib/travis/cli/help.rb",
216
+ "lib/travis/cli/history.rb",
217
+ "lib/travis/cli/init.rb",
218
+ "lib/travis/cli/lint.rb",
219
+ "lib/travis/cli/login.rb",
220
+ "lib/travis/cli/logout.rb",
221
+ "lib/travis/cli/logs.rb",
222
+ "lib/travis/cli/monitor.rb",
223
+ "lib/travis/cli/open.rb",
224
+ "lib/travis/cli/parser.rb",
225
+ "lib/travis/cli/pubkey.rb",
226
+ "lib/travis/cli/raw.rb",
227
+ "lib/travis/cli/repo_command.rb",
228
+ "lib/travis/cli/report.rb",
229
+ "lib/travis/cli/repos.rb",
230
+ "lib/travis/cli/requests.rb",
231
+ "lib/travis/cli/restart.rb",
232
+ "lib/travis/cli/settings.rb",
233
+ "lib/travis/cli/setup.rb",
234
+ "lib/travis/cli/setup/anynines.rb",
235
+ "lib/travis/cli/setup/appfog.rb",
236
+ "lib/travis/cli/setup/artifacts.rb",
237
+ "lib/travis/cli/setup/biicode.rb",
238
+ "lib/travis/cli/setup/cloud_66.rb",
239
+ "lib/travis/cli/setup/cloud_control.rb",
240
+ "lib/travis/cli/setup/cloud_files.rb",
241
+ "lib/travis/cli/setup/cloud_foundry.rb",
242
+ "lib/travis/cli/setup/code_deploy.rb",
243
+ "lib/travis/cli/setup/deis.rb",
244
+ "lib/travis/cli/setup/divshot.rb",
245
+ "lib/travis/cli/setup/elastic_beanstalk.rb",
246
+ "lib/travis/cli/setup/engine_yard.rb",
247
+ "lib/travis/cli/setup/gcs.rb",
248
+ "lib/travis/cli/setup/hackage.rb",
249
+ "lib/travis/cli/setup/heroku.rb",
250
+ "lib/travis/cli/setup/modulus.rb",
251
+ "lib/travis/cli/setup/ninefold.rb",
252
+ "lib/travis/cli/setup/nodejitsu.rb",
253
+ "lib/travis/cli/setup/npm.rb",
254
+ "lib/travis/cli/setup/open_shift.rb",
255
+ "lib/travis/cli/setup/opsworks.rb",
256
+ "lib/travis/cli/setup/pypi.rb",
257
+ "lib/travis/cli/setup/releases.rb",
258
+ "lib/travis/cli/setup/ruby_gems.rb",
259
+ "lib/travis/cli/setup/s3.rb",
260
+ "lib/travis/cli/setup/sauce_connect.rb",
261
+ "lib/travis/cli/setup/service.rb",
262
+ "lib/travis/cli/show.rb",
263
+ "lib/travis/cli/sshkey.rb",
264
+ "lib/travis/cli/status.rb",
265
+ "lib/travis/cli/sync.rb",
266
+ "lib/travis/cli/token.rb",
267
+ "lib/travis/cli/version.rb",
268
+ "lib/travis/cli/whatsup.rb",
269
+ "lib/travis/cli/whoami.rb",
270
+ "lib/travis/client.rb",
271
+ "lib/travis/client/account.rb",
272
+ "lib/travis/client/artifact.rb",
273
+ "lib/travis/client/auto_login.rb",
274
+ "lib/travis/client/broadcast.rb",
275
+ "lib/travis/client/build.rb",
276
+ "lib/travis/client/cache.rb",
277
+ "lib/travis/client/commit.rb",
278
+ "lib/travis/client/entity.rb",
279
+ "lib/travis/client/env_var.rb",
280
+ "lib/travis/client/error.rb",
281
+ "lib/travis/client/has_uuid.rb",
282
+ "lib/travis/client/job.rb",
283
+ "lib/travis/client/lint_result.rb",
284
+ "lib/travis/client/listener.rb",
285
+ "lib/travis/client/methods.rb",
286
+ "lib/travis/client/namespace.rb",
287
+ "lib/travis/client/not_loadable.rb",
288
+ "lib/travis/client/repository.rb",
289
+ "lib/travis/client/request.rb",
290
+ "lib/travis/client/restartable.rb",
291
+ "lib/travis/client/session.rb",
292
+ "lib/travis/client/settings.rb",
293
+ "lib/travis/client/singleton_setting.rb",
294
+ "lib/travis/client/ssh_key.rb",
295
+ "lib/travis/client/states.rb",
296
+ "lib/travis/client/user.rb",
297
+ "lib/travis/client/weak_entity.rb",
298
+ "lib/travis/pro.rb",
299
+ "lib/travis/pro/auto_login.rb",
300
+ "lib/travis/tools/assets.rb",
301
+ "lib/travis/tools/completion.rb",
302
+ "lib/travis/tools/formatter.rb",
303
+ "lib/travis/tools/github.rb",
304
+ "lib/travis/tools/notification.rb",
305
+ "lib/travis/tools/safe_string.rb",
306
+ "lib/travis/tools/ssl_key.rb",
307
+ "lib/travis/tools/system.rb",
308
+ "lib/travis/version.rb",
309
+ "spec/cli/api_command_spec.rb",
310
+ "spec/cli/cancel_spec.rb",
311
+ "spec/cli/encrypt_spec.rb",
312
+ "spec/cli/endpoint_spec.rb",
313
+ "spec/cli/help_spec.rb",
314
+ "spec/cli/history_spec.rb",
315
+ "spec/cli/init_spec.rb",
316
+ "spec/cli/login_spec.rb",
317
+ "spec/cli/logs_spec.rb",
318
+ "spec/cli/open_spec.rb",
319
+ "spec/cli/repo_command_spec.rb",
320
+ "spec/cli/restart_spec.rb",
321
+ "spec/cli/setup_spec.rb",
322
+ "spec/cli/show_spec.rb",
323
+ "spec/cli/status_spec.rb",
324
+ "spec/cli/token_spec.rb",
325
+ "spec/cli/version_spec.rb",
326
+ "spec/cli/whoami_spec.rb",
327
+ "spec/client/account_spec.rb",
328
+ "spec/client/auto_login_spec.rb",
329
+ "spec/client/broadcast_spec.rb",
330
+ "spec/client/build_spec.rb",
331
+ "spec/client/commit_spec.rb",
332
+ "spec/client/job_spec.rb",
333
+ "spec/client/methods_spec.rb",
334
+ "spec/client/namespace_spec.rb",
335
+ "spec/client/repository_spec.rb",
336
+ "spec/client/session_spec.rb",
337
+ "spec/client/user_spec.rb",
338
+ "spec/client_spec.rb",
339
+ "spec/pro_spec.rb",
340
+ "spec/spec_helper.rb",
341
+ "spec/support/fake_api.rb",
342
+ "spec/support/fake_github.rb",
343
+ "spec/support/fake_travis_config.yml",
344
+ "spec/support/helpers.rb",
345
+ "spec/travis_spec.rb",
346
+ "travis.gemspec"
347
+ ]
348
+
349
+ # dependencies
350
+ s.add_dependency "faraday", "~> 0.9"
351
+ s.add_dependency "faraday_middleware", "~> 0.9", ">= 0.9.1"
352
+ s.add_dependency "highline", "~> 1.6"
353
+ s.add_dependency "backports"
354
+ s.add_dependency "net-http-persistent", "~> 2.9" if RUBY_VERSION < "2.1"
355
+ s.add_dependency "gh-akerl", "~> 0.13"
356
+ s.add_dependency "addressable", "~> 2.5.0" if RUBY_VERSION < "2.0"
357
+ s.add_dependency "launchy", "~> 2.1"
358
+ s.add_dependency "typhoeus", "~> 0.6", ">= 0.6.8"
359
+ s.add_dependency "json", "~> 1.8" if RUBY_VERSION < "2.0"
360
+ s.add_dependency "pusher-client", "~> 0.4"
361
+ s.add_development_dependency "rspec", "~> 2.12"
362
+ s.add_development_dependency "sinatra", "~> 1.3"
363
+ s.add_development_dependency "rack-test", "~> 0.6"
364
+
365
+ # Prereleasing on Travis CI
366
+ if ENV['TRAVIS_JOB_NUMBER'] and ENV['TRAVIS_REPO_SLUG'] == 'travis-ci/travis.rb'
367
+ digits = s.version.to_s.split '.'
368
+ digits[-1] = digits[-1].to_s.succ
369
+ s.version = digits.join('.') + ".travis.#{ENV['TRAVIS_JOB_NUMBER']}"
370
+ end
371
+ end