travis 1.11.1 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -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 +10 -8
  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/repo_command.rb +123 -112
  35. data/lib/travis/cli/report.rb +40 -33
  36. data/lib/travis/cli/repos.rb +14 -9
  37. data/lib/travis/cli/requests.rb +13 -12
  38. data/lib/travis/cli/restart.rb +4 -2
  39. data/lib/travis/cli/settings.rb +41 -35
  40. data/lib/travis/cli/setup/anynines.rb +7 -6
  41. data/lib/travis/cli/setup/appfog.rb +6 -4
  42. data/lib/travis/cli/setup/artifacts.rb +7 -5
  43. data/lib/travis/cli/setup/biicode.rb +6 -4
  44. data/lib/travis/cli/setup/cloud_66.rb +6 -4
  45. data/lib/travis/cli/setup/cloud_control.rb +8 -6
  46. data/lib/travis/cli/setup/cloud_files.rb +7 -5
  47. data/lib/travis/cli/setup/cloud_foundry.rb +9 -7
  48. data/lib/travis/cli/setup/code_deploy.rb +33 -29
  49. data/lib/travis/cli/setup/deis.rb +8 -6
  50. data/lib/travis/cli/setup/divshot.rb +20 -18
  51. data/lib/travis/cli/setup/elastic_beanstalk.rb +10 -8
  52. data/lib/travis/cli/setup/engine_yard.rb +9 -7
  53. data/lib/travis/cli/setup/gcs.rb +9 -7
  54. data/lib/travis/cli/setup/hackage.rb +6 -4
  55. data/lib/travis/cli/setup/heroku.rb +10 -4
  56. data/lib/travis/cli/setup/modulus.rb +5 -3
  57. data/lib/travis/cli/setup/ninefold.rb +7 -5
  58. data/lib/travis/cli/setup/nodejitsu.rb +6 -4
  59. data/lib/travis/cli/setup/npm.rb +6 -4
  60. data/lib/travis/cli/setup/open_shift.rb +8 -6
  61. data/lib/travis/cli/setup/opsworks.rb +24 -22
  62. data/lib/travis/cli/setup/pypi.rb +7 -5
  63. data/lib/travis/cli/setup/releases.rb +6 -6
  64. data/lib/travis/cli/setup/ruby_gems.rb +7 -5
  65. data/lib/travis/cli/setup/s3.rb +12 -8
  66. data/lib/travis/cli/setup/sauce_connect.rb +7 -5
  67. data/lib/travis/cli/setup/service.rb +36 -25
  68. data/lib/travis/cli/setup.rb +7 -3
  69. data/lib/travis/cli/show.rb +10 -8
  70. data/lib/travis/cli/sshkey.rb +31 -27
  71. data/lib/travis/cli/status.rb +5 -3
  72. data/lib/travis/cli/sync.rb +9 -7
  73. data/lib/travis/cli/token.rb +4 -2
  74. data/lib/travis/cli/version.rb +4 -3
  75. data/lib/travis/cli/whatsup.rb +10 -8
  76. data/lib/travis/cli/whoami.rb +2 -2
  77. data/lib/travis/cli.rb +39 -36
  78. data/lib/travis/client/account.rb +8 -6
  79. data/lib/travis/client/artifact.rb +16 -12
  80. data/lib/travis/client/auto_login.rb +7 -4
  81. data/lib/travis/client/broadcast.rb +2 -0
  82. data/lib/travis/client/build.rb +7 -3
  83. data/lib/travis/client/cache.rb +4 -2
  84. data/lib/travis/client/commit.rb +5 -2
  85. data/lib/travis/client/entity.rb +50 -46
  86. data/lib/travis/client/env_var.rb +13 -8
  87. data/lib/travis/client/error.rb +5 -3
  88. data/lib/travis/client/has_uuid.rb +3 -1
  89. data/lib/travis/client/job.rb +8 -3
  90. data/lib/travis/client/lint_result.rb +2 -0
  91. data/lib/travis/client/listener.rb +70 -55
  92. data/lib/travis/client/methods.rb +10 -5
  93. data/lib/travis/client/namespace.rb +20 -16
  94. data/lib/travis/client/not_loadable.rb +3 -1
  95. data/lib/travis/client/repository.rb +34 -22
  96. data/lib/travis/client/request.rb +5 -2
  97. data/lib/travis/client/restartable.rb +2 -0
  98. data/lib/travis/client/session.rb +118 -88
  99. data/lib/travis/client/settings.rb +8 -3
  100. data/lib/travis/client/singleton_setting.rb +2 -0
  101. data/lib/travis/client/ssh_key.rb +2 -0
  102. data/lib/travis/client/states.rb +8 -6
  103. data/lib/travis/client/user.rb +2 -0
  104. data/lib/travis/client/weak_entity.rb +6 -3
  105. data/lib/travis/client.rb +4 -1
  106. data/lib/travis/pro/auto_login.rb +2 -0
  107. data/lib/travis/pro.rb +2 -0
  108. data/lib/travis/tools/assets.rb +6 -3
  109. data/lib/travis/tools/completion.rb +10 -6
  110. data/lib/travis/tools/formatter.rb +20 -14
  111. data/lib/travis/tools/github.rb +59 -49
  112. data/lib/travis/tools/notification.rb +18 -13
  113. data/lib/travis/tools/safe_string.rb +4 -1
  114. data/lib/travis/tools/ssl_key.rb +5 -2
  115. data/lib/travis/tools/system.rb +11 -6
  116. data/lib/travis/version.rb +3 -1
  117. data/lib/travis.rb +3 -1
  118. data/spec/cli/api_command_spec.rb +11 -8
  119. data/spec/cli/cancel_spec.rb +2 -4
  120. data/spec/cli/encrypt_file_spec.rb +9 -7
  121. data/spec/cli/encrypt_spec.rb +19 -17
  122. data/spec/cli/endpoint_spec.rb +12 -10
  123. data/spec/cli/help_spec.rb +14 -12
  124. data/spec/cli/history_spec.rb +2 -0
  125. data/spec/cli/init_spec.rb +35 -33
  126. data/spec/cli/logs_spec.rb +2 -0
  127. data/spec/cli/open_spec.rb +6 -4
  128. data/spec/cli/repo_command_spec.rb +8 -4
  129. data/spec/cli/restart_spec.rb +2 -4
  130. data/spec/cli/setup/service_spec.rb +17 -18
  131. data/spec/cli/setup_spec.rb +2 -4
  132. data/spec/cli/show_spec.rb +4 -2
  133. data/spec/cli/status_spec.rb +7 -5
  134. data/spec/cli/token_spec.rb +7 -5
  135. data/spec/cli/version_spec.rb +2 -0
  136. data/spec/cli/whoami_spec.rb +9 -7
  137. data/spec/client/account_spec.rb +28 -20
  138. data/spec/client/auto_login_spec.rb +12 -9
  139. data/spec/client/broadcast_spec.rb +5 -3
  140. data/spec/client/build_spec.rb +28 -24
  141. data/spec/client/commit_spec.rb +17 -14
  142. data/spec/client/job_spec.rb +27 -23
  143. data/spec/client/methods_spec.rb +8 -4
  144. data/spec/client/namespace_spec.rb +8 -4
  145. data/spec/client/repository_spec.rb +33 -30
  146. data/spec/client/session_spec.rb +71 -67
  147. data/spec/client/user_spec.rb +13 -10
  148. data/spec/client_spec.rb +6 -4
  149. data/spec/pro_spec.rb +5 -3
  150. data/spec/spec_helper.rb +3 -1
  151. data/spec/support/fake_api.rb +662 -662
  152. data/spec/support/fake_github.rb +6 -3
  153. data/spec/support/helpers.rb +13 -8
  154. data/spec/travis_spec.rb +5 -3
  155. data/travis.gemspec +400 -399
  156. metadata +30 -50
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'sinatra/base'
2
4
  require 'travis/client/session'
3
5
 
@@ -9,7 +11,7 @@ module Travis
9
11
  class FakeAPI < Sinatra::Base
10
12
  disable :protection
11
13
  enable :raise_errors
12
- set :rails_description, "Ruby on Rails"
14
+ set :rails_description, 'Ruby on Rails'
13
15
 
14
16
  before do
15
17
  content_type :json
@@ -20,663 +22,663 @@ module Travis
20
22
  end
21
23
 
22
24
  get '/' do
23
- "{}"
25
+ '{}'
24
26
  end
25
27
 
26
28
  get '/users/' do
27
29
  halt(403, 'wrong token') unless authorized?
28
- {"user"=>
29
- {"id"=>267,
30
- "name"=>"Konstantin Haase",
31
- "login"=>"rkh",
32
- "email"=>"konstantin.haase@gmail.com",
33
- "gravatar_id"=>"5c2b452f6eea4a6d84c105ebd971d2a4",
34
- "locale"=>"en",
35
- "is_syncing"=>false,
36
- "synced_at"=>"2012-10-27T12:52:25Z",
37
- "correct_scopes"=>true}}.to_json
30
+ { 'user' =>
31
+ { 'id' => 267,
32
+ 'name' => 'Konstantin Haase',
33
+ 'login' => 'rkh',
34
+ 'email' => 'konstantin.haase@gmail.com',
35
+ 'gravatar_id' => '5c2b452f6eea4a6d84c105ebd971d2a4',
36
+ 'locale' => 'en',
37
+ 'is_syncing' => false,
38
+ 'synced_at' => '2012-10-27T12:52:25Z',
39
+ 'correct_scopes' => true } }.to_json
38
40
  end
39
41
 
40
42
  get '/logout' do
41
43
  halt(403, 'wrong token') unless authorized?
42
- {"user"=>
43
- {"id"=>267,
44
- "name"=>"Konstantin Haase",
45
- "login"=>"rkh",
46
- "email"=>"konstantin.haase@gmail.com",
47
- "gravatar_id"=>"5c2b452f6eea4a6d84c105ebd971d2a4",
48
- "locale"=>"en",
49
- "is_syncing"=>false,
50
- "synced_at"=>"2012-10-27T12:52:25Z",
51
- "correct_scopes"=>true}}.to_json
44
+ { 'user' =>
45
+ { 'id' => 267,
46
+ 'name' => 'Konstantin Haase',
47
+ 'login' => 'rkh',
48
+ 'email' => 'konstantin.haase@gmail.com',
49
+ 'gravatar_id' => '5c2b452f6eea4a6d84c105ebd971d2a4',
50
+ 'locale' => 'en',
51
+ 'is_syncing' => false,
52
+ 'synced_at' => '2012-10-27T12:52:25Z',
53
+ 'correct_scopes' => true } }.to_json
52
54
  end
53
55
 
54
56
  get '/jobs/4125097' do
55
- {"job"=>
56
- {"id"=>4125097,
57
- "repository_id"=>891,
58
- "repository_slug"=>"rails/rails",
59
- "build_id"=>4125095,
60
- "commit_id"=>1201631,
61
- "log_id"=>3168319,
62
- "number"=>"6180.2",
63
- "config"=>
64
- {"script"=>"ci/travis.rb",
65
- "before_install"=>["gem install bundler"],
66
- "rvm"=>"1.9.3",
67
- "env"=>"GEM=ap,am,amo,as",
68
- "notifications"=>
69
- {"email"=>false,
70
- "irc"=>
71
- {"on_success"=>"change",
72
- "on_failure"=>"always",
73
- "channels"=>["irc.freenode.org#rails-contrib"]},
74
- "campfire"=>
75
- {"on_success"=>"change",
76
- "on_failure"=>"always",
77
- "rooms"=>
78
- [{"secure"=>
79
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
80
- "bundler_args"=>"--path vendor/bundle",
81
- ".result"=>"configured"},
82
- "state"=>"passed",
83
- "started_at"=>"2013-01-13T15:55:59Z",
84
- "finished_at"=>"2013-01-13T16:11:04Z",
85
- "queue"=>"builds.rails",
86
- "allow_failure"=>false,
87
- "tags"=>""},
88
- "commit"=>
89
- {"id"=>1201631,
90
- "sha"=>"a0265b98f16c6e33be32aa3f57231d1189302400",
91
- "branch"=>"master",
92
- "message"=>"Associaton -> Association",
93
- "committed_at"=>"2013-01-13T15:43:24Z",
94
- "author_name"=>"Steve Klabnik",
95
- "author_email"=>"steve@steveklabnik.com",
96
- "committer_name"=>"Steve Klabnik",
97
- "committer_email"=>"steve@steveklabnik.com",
98
- "compare_url"=>
99
- "https://github.com/rails/rails/compare/6581d798e830...a0265b98f16c"},
100
- }.to_json
57
+ { 'job' =>
58
+ { 'id' => 4_125_097,
59
+ 'repository_id' => 891,
60
+ 'repository_slug' => 'rails/rails',
61
+ 'build_id' => 4_125_095,
62
+ 'commit_id' => 1_201_631,
63
+ 'log_id' => 3_168_319,
64
+ 'number' => '6180.2',
65
+ 'config' =>
66
+ { 'script' => 'ci/travis.rb',
67
+ 'before_install' => ['gem install bundler'],
68
+ 'rvm' => '1.9.3',
69
+ 'env' => 'GEM=ap,am,amo,as',
70
+ 'notifications' =>
71
+ { 'email' => false,
72
+ 'irc' =>
73
+ { 'on_success' => 'change',
74
+ 'on_failure' => 'always',
75
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
76
+ 'campfire' =>
77
+ { 'on_success' => 'change',
78
+ 'on_failure' => 'always',
79
+ 'rooms' =>
80
+ [{ 'secure' =>
81
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
82
+ 'bundler_args' => '--path vendor/bundle',
83
+ '.result' => 'configured' },
84
+ 'state' => 'passed',
85
+ 'started_at' => '2013-01-13T15:55:59Z',
86
+ 'finished_at' => '2013-01-13T16:11:04Z',
87
+ 'queue' => 'builds.rails',
88
+ 'allow_failure' => false,
89
+ 'tags' => '' },
90
+ 'commit' =>
91
+ { 'id' => 1_201_631,
92
+ 'sha' => 'a0265b98f16c6e33be32aa3f57231d1189302400',
93
+ 'branch' => 'master',
94
+ 'message' => 'Associaton -> Association',
95
+ 'committed_at' => '2013-01-13T15:43:24Z',
96
+ 'author_name' => 'Steve Klabnik',
97
+ 'author_email' => 'steve@steveklabnik.com',
98
+ 'committer_name' => 'Steve Klabnik',
99
+ 'committer_email' => 'steve@steveklabnik.com',
100
+ 'compare_url' =>
101
+ 'https://github.com/rails/rails/compare/6581d798e830...a0265b98f16c' } }.to_json
101
102
  end
102
103
 
103
104
  get '/builds/4125095' do
104
- {"build"=>
105
- {"id"=>4125095,
106
- "repository_id"=>891,
107
- "commit_id"=>1201631,
108
- "number"=>"6180",
109
- "pull_request"=>false,
110
- "config"=>
111
- {"script"=>"ci/travis.rb",
112
- "before_install"=>["gem install bundler"],
113
- "rvm"=>["1.9.3", "2.0.0"],
114
- "env"=>
115
- ["GEM=railties",
116
- "GEM=ap,am,amo,as",
117
- "GEM=ar:mysql",
118
- "GEM=ar:mysql2",
119
- "GEM=ar:sqlite3",
120
- "GEM=ar:postgresql"],
121
- "notifications"=>
122
- {"email"=>false,
123
- "irc"=>
124
- {"on_success"=>"change",
125
- "on_failure"=>"always",
126
- "channels"=>["irc.freenode.org#rails-contrib"]},
127
- "campfire"=>
128
- {"on_success"=>"change",
129
- "on_failure"=>"always",
130
- "rooms"=>
131
- [{"secure"=>
132
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
133
- "bundler_args"=>"--path vendor/bundle",
134
- ".result"=>"configured"},
135
- "state"=>"failed",
136
- "started_at"=>"2013-01-13T15:55:17Z",
137
- "finished_at"=>nil,
138
- "duration"=>5019,
139
- "job_ids"=>
140
- [4125096,
141
- 4125097,
142
- 4125098,
143
- 4125099,
144
- 4125100,
145
- 4125101,
146
- 4125102,
147
- 4125103,
148
- 4125104,
149
- 4125105,
150
- 4125106,
151
- 4125107]},
152
- "commit"=>
153
- {"id"=>1201631,
154
- "sha"=>"a0265b98f16c6e33be32aa3f57231d1189302400",
155
- "branch"=>"master",
156
- "message"=>"Associaton -> Association",
157
- "committed_at"=>"2013-01-13T15:43:24Z",
158
- "author_name"=>"Steve Klabnik",
159
- "author_email"=>"steve@steveklabnik.com",
160
- "committer_name"=>"Steve Klabnik",
161
- "committer_email"=>"steve@steveklabnik.com",
162
- "compare_url"=>
163
- "https://github.com/rails/rails/compare/6581d798e830...a0265b98f16c"},
164
- "jobs"=>
165
- [{"id"=>4125096,
166
- "repository_id"=>891,
167
- "build_id"=>4125095,
168
- "commit_id"=>1201631,
169
- "log_id"=>3168318,
170
- "state"=>"failed",
171
- "number"=>"6180.1",
172
- "config"=>
173
- {"script"=>"ci/travis.rb",
174
- "before_install"=>["gem install bundler"],
175
- "rvm"=>"1.9.3",
176
- "env"=>"GEM=railties",
177
- "notifications"=>
178
- {"email"=>false,
179
- "irc"=>
180
- {"on_success"=>"change",
181
- "on_failure"=>"always",
182
- "channels"=>["irc.freenode.org#rails-contrib"]},
183
- "campfire"=>
184
- {"on_success"=>"change",
185
- "on_failure"=>"always",
186
- "rooms"=>
187
- [{"secure"=>
188
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
189
- "bundler_args"=>"--path vendor/bundle",
190
- ".result"=>"configured"},
191
- "started_at"=>"2013-01-13T15:55:59Z",
192
- "finished_at"=>"2013-01-13T16:10:15Z",
193
- "queue"=>"builds.rails",
194
- "allow_failure"=>false,
195
- "tags"=>""},
196
- {"id"=>4125097,
197
- "repository_id"=>891,
198
- "build_id"=>4125095,
199
- "commit_id"=>1201631,
200
- "log_id"=>3168319,
201
- "state"=>"passed",
202
- "number"=>"6180.2",
203
- "config"=>
204
- {"script"=>"ci/travis.rb",
205
- "before_install"=>["gem install bundler"],
206
- "rvm"=>"1.9.3",
207
- "env"=>"GEM=ap,am,amo,as",
208
- "notifications"=>
209
- {"email"=>false,
210
- "irc"=>
211
- {"on_success"=>"change",
212
- "on_failure"=>"always",
213
- "channels"=>["irc.freenode.org#rails-contrib"]},
214
- "campfire"=>
215
- {"on_success"=>"change",
216
- "on_failure"=>"always",
217
- "rooms"=>
218
- [{"secure"=>
219
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
220
- "bundler_args"=>"--path vendor/bundle",
221
- ".result"=>"configured"},
222
- "started_at"=>"2013-01-13T15:55:59Z",
223
- "finished_at"=>"2013-01-13T16:11:04Z",
224
- "queue"=>"builds.rails",
225
- "allow_failure"=>false,
226
- "tags"=>""},
227
- {"id"=>4125098,
228
- "repository_id"=>891,
229
- "build_id"=>4125095,
230
- "commit_id"=>1201631,
231
- "log_id"=>3168320,
232
- "state"=>"passed",
233
- "number"=>"6180.3",
234
- "config"=>
235
- {"script"=>"ci/travis.rb",
236
- "before_install"=>["gem install bundler"],
237
- "rvm"=>"1.9.3",
238
- "env"=>"GEM=ar:mysql",
239
- "notifications"=>
240
- {"email"=>false,
241
- "irc"=>
242
- {"on_success"=>"change",
243
- "on_failure"=>"always",
244
- "channels"=>["irc.freenode.org#rails-contrib"]},
245
- "campfire"=>
246
- {"on_success"=>"change",
247
- "on_failure"=>"always",
248
- "rooms"=>
249
- [{"secure"=>
250
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
251
- "bundler_args"=>"--path vendor/bundle",
252
- ".result"=>"configured"},
253
- "started_at"=>"2013-01-13T15:55:59Z",
254
- "finished_at"=>"2013-01-13T16:08:14Z",
255
- "queue"=>"builds.rails",
256
- "allow_failure"=>false,
257
- "tags"=>""},
258
- {"id"=>4125099,
259
- "repository_id"=>891,
260
- "build_id"=>4125095,
261
- "commit_id"=>1201631,
262
- "log_id"=>3168321,
263
- "state"=>"passed",
264
- "number"=>"6180.4",
265
- "config"=>
266
- {"script"=>"ci/travis.rb",
267
- "before_install"=>["gem install bundler"],
268
- "rvm"=>"1.9.3",
269
- "env"=>"GEM=ar:mysql2",
270
- "notifications"=>
271
- {"email"=>false,
272
- "irc"=>
273
- {"on_success"=>"change",
274
- "on_failure"=>"always",
275
- "channels"=>["irc.freenode.org#rails-contrib"]},
276
- "campfire"=>
277
- {"on_success"=>"change",
278
- "on_failure"=>"always",
279
- "rooms"=>
280
- [{"secure"=>
281
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
282
- "bundler_args"=>"--path vendor/bundle",
283
- ".result"=>"configured"},
284
- "started_at"=>"2013-01-13T15:55:17Z",
285
- "finished_at"=>"2013-01-13T16:06:15Z",
286
- "queue"=>"builds.rails",
287
- "allow_failure"=>false,
288
- "tags"=>""},
289
- {"id"=>4125100,
290
- "repository_id"=>891,
291
- "build_id"=>4125095,
292
- "commit_id"=>1201631,
293
- "log_id"=>3168322,
294
- "state"=>"passed",
295
- "number"=>"6180.5",
296
- "config"=>
297
- {"script"=>"ci/travis.rb",
298
- "before_install"=>["gem install bundler"],
299
- "rvm"=>"1.9.3",
300
- "env"=>"GEM=ar:sqlite3",
301
- "notifications"=>
302
- {"email"=>false,
303
- "irc"=>
304
- {"on_success"=>"change",
305
- "on_failure"=>"always",
306
- "channels"=>["irc.freenode.org#rails-contrib"]},
307
- "campfire"=>
308
- {"on_success"=>"change",
309
- "on_failure"=>"always",
310
- "rooms"=>
311
- [{"secure"=>
312
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
313
- "bundler_args"=>"--path vendor/bundle",
314
- ".result"=>"configured"},
315
- "started_at"=>"2013-01-13T15:55:58Z",
316
- "finished_at"=>"2013-01-13T16:08:07Z",
317
- "queue"=>"builds.rails",
318
- "allow_failure"=>false,
319
- "tags"=>""},
320
- {"id"=>4125101,
321
- "repository_id"=>891,
322
- "build_id"=>4125095,
323
- "commit_id"=>1201631,
324
- "log_id"=>3168323,
325
- "state"=>"passed",
326
- "number"=>"6180.6",
327
- "config"=>
328
- {"script"=>"ci/travis.rb",
329
- "before_install"=>["gem install bundler"],
330
- "rvm"=>"1.9.3",
331
- "env"=>"GEM=ar:postgresql",
332
- "notifications"=>
333
- {"email"=>false,
334
- "irc"=>
335
- {"on_success"=>"change",
336
- "on_failure"=>"always",
337
- "channels"=>["irc.freenode.org#rails-contrib"]},
338
- "campfire"=>
339
- {"on_success"=>"change",
340
- "on_failure"=>"always",
341
- "rooms"=>
342
- [{"secure"=>
343
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
344
- "bundler_args"=>"--path vendor/bundle",
345
- ".result"=>"configured"},
346
- "started_at"=>"2013-01-13T15:55:28Z",
347
- "finished_at"=>"2013-01-13T16:08:41Z",
348
- "queue"=>"builds.rails",
349
- "allow_failure"=>false,
350
- "tags"=>""},
351
- {"id"=>4125102,
352
- "repository_id"=>891,
353
- "build_id"=>4125095,
354
- "commit_id"=>1201631,
355
- "log_id"=>3168324,
356
- "state"=>"failed",
357
- "number"=>"6180.7",
358
- "config"=>
359
- {"script"=>"ci/travis.rb",
360
- "before_install"=>["gem install bundler"],
361
- "rvm"=>"2.0.0",
362
- "env"=>"GEM=railties",
363
- "notifications"=>
364
- {"email"=>false,
365
- "irc"=>
366
- {"on_success"=>"change",
367
- "on_failure"=>"always",
368
- "channels"=>["irc.freenode.org#rails-contrib"]},
369
- "campfire"=>
370
- {"on_success"=>"change",
371
- "on_failure"=>"always",
372
- "rooms"=>
373
- [{"secure"=>
374
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
375
- "bundler_args"=>"--path vendor/bundle",
376
- ".result"=>"configured"},
377
- "started_at"=>"2013-01-13T15:55:17Z",
378
- "finished_at"=>"2013-01-13T15:56:16Z",
379
- "queue"=>"builds.rails",
380
- "allow_failure"=>false,
381
- "tags"=>""},
382
- {"id"=>4125103,
383
- "repository_id"=>891,
384
- "build_id"=>4125095,
385
- "commit_id"=>1201631,
386
- "log_id"=>3168325,
387
- "state"=>"failed",
388
- "number"=>"6180.8",
389
- "config"=>
390
- {"script"=>"ci/travis.rb",
391
- "before_install"=>["gem install bundler"],
392
- "rvm"=>"2.0.0",
393
- "env"=>"GEM=ap,am,amo,as",
394
- "notifications"=>
395
- {"email"=>false,
396
- "irc"=>
397
- {"on_success"=>"change",
398
- "on_failure"=>"always",
399
- "channels"=>["irc.freenode.org#rails-contrib"]},
400
- "campfire"=>
401
- {"on_success"=>"change",
402
- "on_failure"=>"always",
403
- "rooms"=>
404
- [{"secure"=>
405
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
406
- "bundler_args"=>"--path vendor/bundle",
407
- ".result"=>"configured"},
408
- "started_at"=>"2013-01-13T15:55:58Z",
409
- "finished_at"=>"2013-01-13T15:56:57Z",
410
- "queue"=>"builds.rails",
411
- "allow_failure"=>false,
412
- "tags"=>""},
413
- {"id"=>4125104,
414
- "repository_id"=>891,
415
- "build_id"=>4125095,
416
- "commit_id"=>1201631,
417
- "log_id"=>3168326,
418
- "state"=>"failed",
419
- "number"=>"6180.9",
420
- "config"=>
421
- {"script"=>"ci/travis.rb",
422
- "before_install"=>["gem install bundler"],
423
- "rvm"=>"2.0.0",
424
- "env"=>"GEM=ar:mysql",
425
- "notifications"=>
426
- {"email"=>false,
427
- "irc"=>
428
- {"on_success"=>"change",
429
- "on_failure"=>"always",
430
- "channels"=>["irc.freenode.org#rails-contrib"]},
431
- "campfire"=>
432
- {"on_success"=>"change",
433
- "on_failure"=>"always",
434
- "rooms"=>
435
- [{"secure"=>
436
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
437
- "bundler_args"=>"--path vendor/bundle",
438
- ".result"=>"configured"},
439
- "started_at"=>"2013-01-13T15:55:18Z",
440
- "finished_at"=>"2013-01-13T15:56:16Z",
441
- "queue"=>"builds.rails",
442
- "allow_failure"=>false,
443
- "tags"=>""},
444
- {"id"=>4125105,
445
- "repository_id"=>891,
446
- "build_id"=>4125095,
447
- "commit_id"=>1201631,
448
- "log_id"=>3168327,
449
- "state"=>"failed",
450
- "number"=>"6180.10",
451
- "config"=>
452
- {"script"=>"ci/travis.rb",
453
- "before_install"=>["gem install bundler"],
454
- "rvm"=>"2.0.0",
455
- "env"=>"GEM=ar:mysql2",
456
- "notifications"=>
457
- {"email"=>false,
458
- "irc"=>
459
- {"on_success"=>"change",
460
- "on_failure"=>"always",
461
- "channels"=>["irc.freenode.org#rails-contrib"]},
462
- "campfire"=>
463
- {"on_success"=>"change",
464
- "on_failure"=>"always",
465
- "rooms"=>
466
- [{"secure"=>
467
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
468
- "bundler_args"=>"--path vendor/bundle",
469
- ".result"=>"configured"},
470
- "started_at"=>"2013-01-13T15:55:27Z",
471
- "finished_at"=>"2013-01-13T15:56:23Z",
472
- "queue"=>"builds.rails",
473
- "allow_failure"=>false,
474
- "tags"=>""},
475
- {"id"=>4125106,
476
- "repository_id"=>891,
477
- "build_id"=>4125095,
478
- "commit_id"=>1201631,
479
- "log_id"=>3168328,
480
- "state"=>"failed",
481
- "number"=>"6180.11",
482
- "config"=>
483
- {"script"=>"ci/travis.rb",
484
- "before_install"=>["gem install bundler"],
485
- "rvm"=>"2.0.0",
486
- "env"=>"GEM=ar:sqlite3",
487
- "notifications"=>
488
- {"email"=>false,
489
- "irc"=>
490
- {"on_success"=>"change",
491
- "on_failure"=>"always",
492
- "channels"=>["irc.freenode.org#rails-contrib"]},
493
- "campfire"=>
494
- {"on_success"=>"change",
495
- "on_failure"=>"always",
496
- "rooms"=>
497
- [{"secure"=>
498
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
499
- "bundler_args"=>"--path vendor/bundle",
500
- ".result"=>"configured"},
501
- "started_at"=>"2013-01-13T15:56:47Z",
502
- "finished_at"=>"2013-01-13T15:57:43Z",
503
- "queue"=>"builds.rails",
504
- "allow_failure"=>false,
505
- "tags"=>""},
506
- {"id"=>4125107,
507
- "repository_id"=>891,
508
- "build_id"=>4125095,
509
- "commit_id"=>1201631,
510
- "log_id"=>3168329,
511
- "state"=>"failed",
512
- "number"=>"6180.12",
513
- "config"=>
514
- {"script"=>"ci/travis.rb",
515
- "before_install"=>["gem install bundler"],
516
- "rvm"=>"2.0.0",
517
- "env"=>"GEM=ar:postgresql",
518
- "notifications"=>
519
- {"email"=>false,
520
- "irc"=>
521
- {"on_success"=>"change",
522
- "on_failure"=>"always",
523
- "channels"=>["irc.freenode.org#rails-contrib"]},
524
- "campfire"=>
525
- {"on_success"=>"change",
526
- "on_failure"=>"always",
527
- "rooms"=>
528
- [{"secure"=>
529
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
530
- "bundler_args"=>"--path vendor/bundle",
531
- ".result"=>"configured"},
532
- "started_at"=>"2013-01-13T15:56:54Z",
533
- "finished_at"=>"2013-01-13T15:57:49Z",
534
- "queue"=>"builds.rails",
535
- "allow_failure"=>false,
536
- "tags"=>""}]}.to_json
105
+ { 'build' =>
106
+ { 'id' => 4_125_095,
107
+ 'repository_id' => 891,
108
+ 'commit_id' => 1_201_631,
109
+ 'number' => '6180',
110
+ 'pull_request' => false,
111
+ 'config' =>
112
+ { 'script' => 'ci/travis.rb',
113
+ 'before_install' => ['gem install bundler'],
114
+ 'rvm' => ['1.9.3', '2.0.0'],
115
+ 'env' =>
116
+ ['GEM=railties',
117
+ 'GEM=ap,am,amo,as',
118
+ 'GEM=ar:mysql',
119
+ 'GEM=ar:mysql2',
120
+ 'GEM=ar:sqlite3',
121
+ 'GEM=ar:postgresql'],
122
+ 'notifications' =>
123
+ { 'email' => false,
124
+ 'irc' =>
125
+ { 'on_success' => 'change',
126
+ 'on_failure' => 'always',
127
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
128
+ 'campfire' =>
129
+ { 'on_success' => 'change',
130
+ 'on_failure' => 'always',
131
+ 'rooms' =>
132
+ [{ 'secure' =>
133
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
134
+ 'bundler_args' => '--path vendor/bundle',
135
+ '.result' => 'configured' },
136
+ 'state' => 'failed',
137
+ 'started_at' => '2013-01-13T15:55:17Z',
138
+ 'finished_at' => nil,
139
+ 'duration' => 5019,
140
+ 'job_ids' =>
141
+ [4_125_096,
142
+ 4_125_097,
143
+ 4_125_098,
144
+ 4_125_099,
145
+ 4_125_100,
146
+ 4_125_101,
147
+ 4_125_102,
148
+ 4_125_103,
149
+ 4_125_104,
150
+ 4_125_105,
151
+ 4_125_106,
152
+ 4_125_107] },
153
+ 'commit' =>
154
+ { 'id' => 1_201_631,
155
+ 'sha' => 'a0265b98f16c6e33be32aa3f57231d1189302400',
156
+ 'branch' => 'master',
157
+ 'message' => 'Associaton -> Association',
158
+ 'committed_at' => '2013-01-13T15:43:24Z',
159
+ 'author_name' => 'Steve Klabnik',
160
+ 'author_email' => 'steve@steveklabnik.com',
161
+ 'committer_name' => 'Steve Klabnik',
162
+ 'committer_email' => 'steve@steveklabnik.com',
163
+ 'compare_url' =>
164
+ 'https://github.com/rails/rails/compare/6581d798e830...a0265b98f16c' },
165
+ 'jobs' =>
166
+ [{ 'id' => 4_125_096,
167
+ 'repository_id' => 891,
168
+ 'build_id' => 4_125_095,
169
+ 'commit_id' => 1_201_631,
170
+ 'log_id' => 3_168_318,
171
+ 'state' => 'failed',
172
+ 'number' => '6180.1',
173
+ 'config' =>
174
+ { 'script' => 'ci/travis.rb',
175
+ 'before_install' => ['gem install bundler'],
176
+ 'rvm' => '1.9.3',
177
+ 'env' => 'GEM=railties',
178
+ 'notifications' =>
179
+ { 'email' => false,
180
+ 'irc' =>
181
+ { 'on_success' => 'change',
182
+ 'on_failure' => 'always',
183
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
184
+ 'campfire' =>
185
+ { 'on_success' => 'change',
186
+ 'on_failure' => 'always',
187
+ 'rooms' =>
188
+ [{ 'secure' =>
189
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
190
+ 'bundler_args' => '--path vendor/bundle',
191
+ '.result' => 'configured' },
192
+ 'started_at' => '2013-01-13T15:55:59Z',
193
+ 'finished_at' => '2013-01-13T16:10:15Z',
194
+ 'queue' => 'builds.rails',
195
+ 'allow_failure' => false,
196
+ 'tags' => '' },
197
+ { 'id' => 4_125_097,
198
+ 'repository_id' => 891,
199
+ 'build_id' => 4_125_095,
200
+ 'commit_id' => 1_201_631,
201
+ 'log_id' => 3_168_319,
202
+ 'state' => 'passed',
203
+ 'number' => '6180.2',
204
+ 'config' =>
205
+ { 'script' => 'ci/travis.rb',
206
+ 'before_install' => ['gem install bundler'],
207
+ 'rvm' => '1.9.3',
208
+ 'env' => 'GEM=ap,am,amo,as',
209
+ 'notifications' =>
210
+ { 'email' => false,
211
+ 'irc' =>
212
+ { 'on_success' => 'change',
213
+ 'on_failure' => 'always',
214
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
215
+ 'campfire' =>
216
+ { 'on_success' => 'change',
217
+ 'on_failure' => 'always',
218
+ 'rooms' =>
219
+ [{ 'secure' =>
220
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
221
+ 'bundler_args' => '--path vendor/bundle',
222
+ '.result' => 'configured' },
223
+ 'started_at' => '2013-01-13T15:55:59Z',
224
+ 'finished_at' => '2013-01-13T16:11:04Z',
225
+ 'queue' => 'builds.rails',
226
+ 'allow_failure' => false,
227
+ 'tags' => '' },
228
+ { 'id' => 4_125_098,
229
+ 'repository_id' => 891,
230
+ 'build_id' => 4_125_095,
231
+ 'commit_id' => 1_201_631,
232
+ 'log_id' => 3_168_320,
233
+ 'state' => 'passed',
234
+ 'number' => '6180.3',
235
+ 'config' =>
236
+ { 'script' => 'ci/travis.rb',
237
+ 'before_install' => ['gem install bundler'],
238
+ 'rvm' => '1.9.3',
239
+ 'env' => 'GEM=ar:mysql',
240
+ 'notifications' =>
241
+ { 'email' => false,
242
+ 'irc' =>
243
+ { 'on_success' => 'change',
244
+ 'on_failure' => 'always',
245
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
246
+ 'campfire' =>
247
+ { 'on_success' => 'change',
248
+ 'on_failure' => 'always',
249
+ 'rooms' =>
250
+ [{ 'secure' =>
251
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
252
+ 'bundler_args' => '--path vendor/bundle',
253
+ '.result' => 'configured' },
254
+ 'started_at' => '2013-01-13T15:55:59Z',
255
+ 'finished_at' => '2013-01-13T16:08:14Z',
256
+ 'queue' => 'builds.rails',
257
+ 'allow_failure' => false,
258
+ 'tags' => '' },
259
+ { 'id' => 4_125_099,
260
+ 'repository_id' => 891,
261
+ 'build_id' => 4_125_095,
262
+ 'commit_id' => 1_201_631,
263
+ 'log_id' => 3_168_321,
264
+ 'state' => 'passed',
265
+ 'number' => '6180.4',
266
+ 'config' =>
267
+ { 'script' => 'ci/travis.rb',
268
+ 'before_install' => ['gem install bundler'],
269
+ 'rvm' => '1.9.3',
270
+ 'env' => 'GEM=ar:mysql2',
271
+ 'notifications' =>
272
+ { 'email' => false,
273
+ 'irc' =>
274
+ { 'on_success' => 'change',
275
+ 'on_failure' => 'always',
276
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
277
+ 'campfire' =>
278
+ { 'on_success' => 'change',
279
+ 'on_failure' => 'always',
280
+ 'rooms' =>
281
+ [{ 'secure' =>
282
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
283
+ 'bundler_args' => '--path vendor/bundle',
284
+ '.result' => 'configured' },
285
+ 'started_at' => '2013-01-13T15:55:17Z',
286
+ 'finished_at' => '2013-01-13T16:06:15Z',
287
+ 'queue' => 'builds.rails',
288
+ 'allow_failure' => false,
289
+ 'tags' => '' },
290
+ { 'id' => 4_125_100,
291
+ 'repository_id' => 891,
292
+ 'build_id' => 4_125_095,
293
+ 'commit_id' => 1_201_631,
294
+ 'log_id' => 3_168_322,
295
+ 'state' => 'passed',
296
+ 'number' => '6180.5',
297
+ 'config' =>
298
+ { 'script' => 'ci/travis.rb',
299
+ 'before_install' => ['gem install bundler'],
300
+ 'rvm' => '1.9.3',
301
+ 'env' => 'GEM=ar:sqlite3',
302
+ 'notifications' =>
303
+ { 'email' => false,
304
+ 'irc' =>
305
+ { 'on_success' => 'change',
306
+ 'on_failure' => 'always',
307
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
308
+ 'campfire' =>
309
+ { 'on_success' => 'change',
310
+ 'on_failure' => 'always',
311
+ 'rooms' =>
312
+ [{ 'secure' =>
313
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
314
+ 'bundler_args' => '--path vendor/bundle',
315
+ '.result' => 'configured' },
316
+ 'started_at' => '2013-01-13T15:55:58Z',
317
+ 'finished_at' => '2013-01-13T16:08:07Z',
318
+ 'queue' => 'builds.rails',
319
+ 'allow_failure' => false,
320
+ 'tags' => '' },
321
+ { 'id' => 4_125_101,
322
+ 'repository_id' => 891,
323
+ 'build_id' => 4_125_095,
324
+ 'commit_id' => 1_201_631,
325
+ 'log_id' => 3_168_323,
326
+ 'state' => 'passed',
327
+ 'number' => '6180.6',
328
+ 'config' =>
329
+ { 'script' => 'ci/travis.rb',
330
+ 'before_install' => ['gem install bundler'],
331
+ 'rvm' => '1.9.3',
332
+ 'env' => 'GEM=ar:postgresql',
333
+ 'notifications' =>
334
+ { 'email' => false,
335
+ 'irc' =>
336
+ { 'on_success' => 'change',
337
+ 'on_failure' => 'always',
338
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
339
+ 'campfire' =>
340
+ { 'on_success' => 'change',
341
+ 'on_failure' => 'always',
342
+ 'rooms' =>
343
+ [{ 'secure' =>
344
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
345
+ 'bundler_args' => '--path vendor/bundle',
346
+ '.result' => 'configured' },
347
+ 'started_at' => '2013-01-13T15:55:28Z',
348
+ 'finished_at' => '2013-01-13T16:08:41Z',
349
+ 'queue' => 'builds.rails',
350
+ 'allow_failure' => false,
351
+ 'tags' => '' },
352
+ { 'id' => 4_125_102,
353
+ 'repository_id' => 891,
354
+ 'build_id' => 4_125_095,
355
+ 'commit_id' => 1_201_631,
356
+ 'log_id' => 3_168_324,
357
+ 'state' => 'failed',
358
+ 'number' => '6180.7',
359
+ 'config' =>
360
+ { 'script' => 'ci/travis.rb',
361
+ 'before_install' => ['gem install bundler'],
362
+ 'rvm' => '2.0.0',
363
+ 'env' => 'GEM=railties',
364
+ 'notifications' =>
365
+ { 'email' => false,
366
+ 'irc' =>
367
+ { 'on_success' => 'change',
368
+ 'on_failure' => 'always',
369
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
370
+ 'campfire' =>
371
+ { 'on_success' => 'change',
372
+ 'on_failure' => 'always',
373
+ 'rooms' =>
374
+ [{ 'secure' =>
375
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
376
+ 'bundler_args' => '--path vendor/bundle',
377
+ '.result' => 'configured' },
378
+ 'started_at' => '2013-01-13T15:55:17Z',
379
+ 'finished_at' => '2013-01-13T15:56:16Z',
380
+ 'queue' => 'builds.rails',
381
+ 'allow_failure' => false,
382
+ 'tags' => '' },
383
+ { 'id' => 4_125_103,
384
+ 'repository_id' => 891,
385
+ 'build_id' => 4_125_095,
386
+ 'commit_id' => 1_201_631,
387
+ 'log_id' => 3_168_325,
388
+ 'state' => 'failed',
389
+ 'number' => '6180.8',
390
+ 'config' =>
391
+ { 'script' => 'ci/travis.rb',
392
+ 'before_install' => ['gem install bundler'],
393
+ 'rvm' => '2.0.0',
394
+ 'env' => 'GEM=ap,am,amo,as',
395
+ 'notifications' =>
396
+ { 'email' => false,
397
+ 'irc' =>
398
+ { 'on_success' => 'change',
399
+ 'on_failure' => 'always',
400
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
401
+ 'campfire' =>
402
+ { 'on_success' => 'change',
403
+ 'on_failure' => 'always',
404
+ 'rooms' =>
405
+ [{ 'secure' =>
406
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
407
+ 'bundler_args' => '--path vendor/bundle',
408
+ '.result' => 'configured' },
409
+ 'started_at' => '2013-01-13T15:55:58Z',
410
+ 'finished_at' => '2013-01-13T15:56:57Z',
411
+ 'queue' => 'builds.rails',
412
+ 'allow_failure' => false,
413
+ 'tags' => '' },
414
+ { 'id' => 4_125_104,
415
+ 'repository_id' => 891,
416
+ 'build_id' => 4_125_095,
417
+ 'commit_id' => 1_201_631,
418
+ 'log_id' => 3_168_326,
419
+ 'state' => 'failed',
420
+ 'number' => '6180.9',
421
+ 'config' =>
422
+ { 'script' => 'ci/travis.rb',
423
+ 'before_install' => ['gem install bundler'],
424
+ 'rvm' => '2.0.0',
425
+ 'env' => 'GEM=ar:mysql',
426
+ 'notifications' =>
427
+ { 'email' => false,
428
+ 'irc' =>
429
+ { 'on_success' => 'change',
430
+ 'on_failure' => 'always',
431
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
432
+ 'campfire' =>
433
+ { 'on_success' => 'change',
434
+ 'on_failure' => 'always',
435
+ 'rooms' =>
436
+ [{ 'secure' =>
437
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
438
+ 'bundler_args' => '--path vendor/bundle',
439
+ '.result' => 'configured' },
440
+ 'started_at' => '2013-01-13T15:55:18Z',
441
+ 'finished_at' => '2013-01-13T15:56:16Z',
442
+ 'queue' => 'builds.rails',
443
+ 'allow_failure' => false,
444
+ 'tags' => '' },
445
+ { 'id' => 4_125_105,
446
+ 'repository_id' => 891,
447
+ 'build_id' => 4_125_095,
448
+ 'commit_id' => 1_201_631,
449
+ 'log_id' => 3_168_327,
450
+ 'state' => 'failed',
451
+ 'number' => '6180.10',
452
+ 'config' =>
453
+ { 'script' => 'ci/travis.rb',
454
+ 'before_install' => ['gem install bundler'],
455
+ 'rvm' => '2.0.0',
456
+ 'env' => 'GEM=ar:mysql2',
457
+ 'notifications' =>
458
+ { 'email' => false,
459
+ 'irc' =>
460
+ { 'on_success' => 'change',
461
+ 'on_failure' => 'always',
462
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
463
+ 'campfire' =>
464
+ { 'on_success' => 'change',
465
+ 'on_failure' => 'always',
466
+ 'rooms' =>
467
+ [{ 'secure' =>
468
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
469
+ 'bundler_args' => '--path vendor/bundle',
470
+ '.result' => 'configured' },
471
+ 'started_at' => '2013-01-13T15:55:27Z',
472
+ 'finished_at' => '2013-01-13T15:56:23Z',
473
+ 'queue' => 'builds.rails',
474
+ 'allow_failure' => false,
475
+ 'tags' => '' },
476
+ { 'id' => 4_125_106,
477
+ 'repository_id' => 891,
478
+ 'build_id' => 4_125_095,
479
+ 'commit_id' => 1_201_631,
480
+ 'log_id' => 3_168_328,
481
+ 'state' => 'failed',
482
+ 'number' => '6180.11',
483
+ 'config' =>
484
+ { 'script' => 'ci/travis.rb',
485
+ 'before_install' => ['gem install bundler'],
486
+ 'rvm' => '2.0.0',
487
+ 'env' => 'GEM=ar:sqlite3',
488
+ 'notifications' =>
489
+ { 'email' => false,
490
+ 'irc' =>
491
+ { 'on_success' => 'change',
492
+ 'on_failure' => 'always',
493
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
494
+ 'campfire' =>
495
+ { 'on_success' => 'change',
496
+ 'on_failure' => 'always',
497
+ 'rooms' =>
498
+ [{ 'secure' =>
499
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
500
+ 'bundler_args' => '--path vendor/bundle',
501
+ '.result' => 'configured' },
502
+ 'started_at' => '2013-01-13T15:56:47Z',
503
+ 'finished_at' => '2013-01-13T15:57:43Z',
504
+ 'queue' => 'builds.rails',
505
+ 'allow_failure' => false,
506
+ 'tags' => '' },
507
+ { 'id' => 4_125_107,
508
+ 'repository_id' => 891,
509
+ 'build_id' => 4_125_095,
510
+ 'commit_id' => 1_201_631,
511
+ 'log_id' => 3_168_329,
512
+ 'state' => 'failed',
513
+ 'number' => '6180.12',
514
+ 'config' =>
515
+ { 'script' => 'ci/travis.rb',
516
+ 'before_install' => ['gem install bundler'],
517
+ 'rvm' => '2.0.0',
518
+ 'env' => 'GEM=ar:postgresql',
519
+ 'notifications' =>
520
+ { 'email' => false,
521
+ 'irc' =>
522
+ { 'on_success' => 'change',
523
+ 'on_failure' => 'always',
524
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
525
+ 'campfire' =>
526
+ { 'on_success' => 'change',
527
+ 'on_failure' => 'always',
528
+ 'rooms' =>
529
+ [{ 'secure' =>
530
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
531
+ 'bundler_args' => '--path vendor/bundle',
532
+ '.result' => 'configured' },
533
+ 'started_at' => '2013-01-13T15:56:54Z',
534
+ 'finished_at' => '2013-01-13T15:57:49Z',
535
+ 'queue' => 'builds.rails',
536
+ 'allow_failure' => false,
537
+ 'tags' => '' }] }.to_json
537
538
  end
538
539
 
539
540
  get '/builds/' do
540
- return {"builds"=>[]}.to_json if params[:after_number]
541
- {"builds"=>
542
- [{"id"=>4125095,
543
- "repository_id"=>891,
544
- "commit_id"=>1201631,
545
- "number"=>"6180",
546
- "pull_request"=>false,
547
- "config"=>
548
- {"script"=>"ci/travis.rb",
549
- "before_install"=>["gem install bundler"],
550
- "rvm"=>["1.9.3", "2.0.0"],
551
- "env"=>
552
- ["GEM=railties",
553
- "GEM=ap,am,amo,as",
554
- "GEM=ar:mysql",
555
- "GEM=ar:mysql2",
556
- "GEM=ar:sqlite3",
557
- "GEM=ar:postgresql"],
558
- "notifications"=>
559
- {"email"=>false,
560
- "irc"=>
561
- {"on_success"=>"change",
562
- "on_failure"=>"always",
563
- "channels"=>["irc.freenode.org#rails-contrib"]},
564
- "campfire"=>
565
- {"on_success"=>"change",
566
- "on_failure"=>"always",
567
- "rooms"=>
568
- [{"secure"=>
569
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
570
- "bundler_args"=>"--path vendor/bundle",
571
- ".result"=>"configured"},
572
- "state"=>"failed",
573
- "started_at"=>"2013-01-13T15:55:17Z",
574
- "finished_at"=>nil,
575
- "duration"=>5019,
576
- "job_ids"=>
577
- [4125096,
578
- 4125097,
579
- 4125098,
580
- 4125099,
581
- 4125100,
582
- 4125101,
583
- 4125102,
584
- 4125103,
585
- 4125104,
586
- 4125105,
587
- 4125106,
588
- 4125107]}],
589
- "commits"=>
590
- [{"id"=>1201631,
591
- "sha"=>"a0265b98f16c6e33be32aa3f57231d1189302400",
592
- "branch"=>"master",
593
- "message"=>"Associaton -> Association",
594
- "committed_at"=>"2013-01-13T15:43:24Z",
595
- "author_name"=>"Steve Klabnik",
596
- "author_email"=>"steve@steveklabnik.com",
597
- "committer_name"=>"Steve Klabnik",
598
- "committer_email"=>"steve@steveklabnik.com",
599
- "compare_url"=>
600
- "https://github.com/rails/rails/compare/6581d798e830...a0265b98f16c"}]}.to_json
541
+ return { 'builds' => [] }.to_json if params[:after_number]
542
+
543
+ { 'builds' =>
544
+ [{ 'id' => 4_125_095,
545
+ 'repository_id' => 891,
546
+ 'commit_id' => 1_201_631,
547
+ 'number' => '6180',
548
+ 'pull_request' => false,
549
+ 'config' =>
550
+ { 'script' => 'ci/travis.rb',
551
+ 'before_install' => ['gem install bundler'],
552
+ 'rvm' => ['1.9.3', '2.0.0'],
553
+ 'env' =>
554
+ ['GEM=railties',
555
+ 'GEM=ap,am,amo,as',
556
+ 'GEM=ar:mysql',
557
+ 'GEM=ar:mysql2',
558
+ 'GEM=ar:sqlite3',
559
+ 'GEM=ar:postgresql'],
560
+ 'notifications' =>
561
+ { 'email' => false,
562
+ 'irc' =>
563
+ { 'on_success' => 'change',
564
+ 'on_failure' => 'always',
565
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
566
+ 'campfire' =>
567
+ { 'on_success' => 'change',
568
+ 'on_failure' => 'always',
569
+ 'rooms' =>
570
+ [{ 'secure' =>
571
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
572
+ 'bundler_args' => '--path vendor/bundle',
573
+ '.result' => 'configured' },
574
+ 'state' => 'failed',
575
+ 'started_at' => '2013-01-13T15:55:17Z',
576
+ 'finished_at' => nil,
577
+ 'duration' => 5019,
578
+ 'job_ids' =>
579
+ [4_125_096,
580
+ 4_125_097,
581
+ 4_125_098,
582
+ 4_125_099,
583
+ 4_125_100,
584
+ 4_125_101,
585
+ 4_125_102,
586
+ 4_125_103,
587
+ 4_125_104,
588
+ 4_125_105,
589
+ 4_125_106,
590
+ 4_125_107] }],
591
+ 'commits' =>
592
+ [{ 'id' => 1_201_631,
593
+ 'sha' => 'a0265b98f16c6e33be32aa3f57231d1189302400',
594
+ 'branch' => 'master',
595
+ 'message' => 'Associaton -> Association',
596
+ 'committed_at' => '2013-01-13T15:43:24Z',
597
+ 'author_name' => 'Steve Klabnik',
598
+ 'author_email' => 'steve@steveklabnik.com',
599
+ 'committer_name' => 'Steve Klabnik',
600
+ 'committer_email' => 'steve@steveklabnik.com',
601
+ 'compare_url' =>
602
+ 'https://github.com/rails/rails/compare/6581d798e830...a0265b98f16c' }] }.to_json
601
603
  end
602
604
 
603
605
  get '/jobs/4125096' do
604
- {"job"=>
605
- {"id"=>4125096,
606
- "repository_id"=>891,
607
- "repository_slug"=>"rails/rails",
608
- "build_id"=>4125095,
609
- "commit_id"=>1201631,
610
- "log_id"=>3168318,
611
- "number"=>"6180.1",
612
- "config"=>
613
- {"script"=>"ci/travis.rb",
614
- "before_install"=>["gem install bundler"],
615
- "rvm"=>"1.9.3",
616
- "env"=>"GEM=railties",
617
- "notifications"=>
618
- {"email"=>false,
619
- "irc"=>
620
- {"on_success"=>"change",
621
- "on_failure"=>"always",
622
- "channels"=>["irc.freenode.org#rails-contrib"]},
623
- "campfire"=>
624
- {"on_success"=>"change",
625
- "on_failure"=>"always",
626
- "rooms"=>
627
- [{"secure"=>
628
- "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},
629
- "bundler_args"=>"--path vendor/bundle",
630
- ".result"=>"configured"},
631
- "state"=>"failed",
632
- "started_at"=>"2013-01-13T15:55:59Z",
633
- "finished_at"=>"2013-01-13T16:10:15Z",
634
- "queue"=>"builds.rails",
635
- "allow_failure"=>false,
636
- "tags"=>""},
637
- "commit"=>
638
- {"id"=>1201631,
639
- "sha"=>"a0265b98f16c6e33be32aa3f57231d1189302400",
640
- "branch"=>"master",
641
- "message"=>"Associaton -> Association",
642
- "committed_at"=>"2013-01-13T15:43:24Z",
643
- "author_name"=>"Steve Klabnik",
644
- "author_email"=>"steve@steveklabnik.com",
645
- "committer_name"=>"Steve Klabnik",
646
- "committer_email"=>"steve@steveklabnik.com",
647
- "compare_url"=>
648
- "https://github.com/rails/rails/compare/6581d798e830...a0265b98f16c"}}.to_json
606
+ { 'job' =>
607
+ { 'id' => 4_125_096,
608
+ 'repository_id' => 891,
609
+ 'repository_slug' => 'rails/rails',
610
+ 'build_id' => 4_125_095,
611
+ 'commit_id' => 1_201_631,
612
+ 'log_id' => 3_168_318,
613
+ 'number' => '6180.1',
614
+ 'config' =>
615
+ { 'script' => 'ci/travis.rb',
616
+ 'before_install' => ['gem install bundler'],
617
+ 'rvm' => '1.9.3',
618
+ 'env' => 'GEM=railties',
619
+ 'notifications' =>
620
+ { 'email' => false,
621
+ 'irc' =>
622
+ { 'on_success' => 'change',
623
+ 'on_failure' => 'always',
624
+ 'channels' => ['irc.freenode.org#rails-contrib'] },
625
+ 'campfire' =>
626
+ { 'on_success' => 'change',
627
+ 'on_failure' => 'always',
628
+ 'rooms' =>
629
+ [{ 'secure' =>
630
+ "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI=" }] } },
631
+ 'bundler_args' => '--path vendor/bundle',
632
+ '.result' => 'configured' },
633
+ 'state' => 'failed',
634
+ 'started_at' => '2013-01-13T15:55:59Z',
635
+ 'finished_at' => '2013-01-13T16:10:15Z',
636
+ 'queue' => 'builds.rails',
637
+ 'allow_failure' => false,
638
+ 'tags' => '' },
639
+ 'commit' =>
640
+ { 'id' => 1_201_631,
641
+ 'sha' => 'a0265b98f16c6e33be32aa3f57231d1189302400',
642
+ 'branch' => 'master',
643
+ 'message' => 'Associaton -> Association',
644
+ 'committed_at' => '2013-01-13T15:43:24Z',
645
+ 'author_name' => 'Steve Klabnik',
646
+ 'author_email' => 'steve@steveklabnik.com',
647
+ 'committer_name' => 'Steve Klabnik',
648
+ 'committer_email' => 'steve@steveklabnik.com',
649
+ 'compare_url' =>
650
+ 'https://github.com/rails/rails/compare/6581d798e830...a0265b98f16c' } }.to_json
649
651
  end
650
652
 
651
653
  get '/repos/' do
652
- {"repos"=>
653
- [{"id"=>107495,
654
- "slug"=>"pypug/django-mango",
655
- "description"=>"More Mango, less Django!",
656
- "last_build_id"=>4125823,
657
- "last_build_number"=>"39",
658
- "last_build_state"=>"failed",
659
- "last_build_duration"=>31,
660
- "last_build_language"=>nil,
661
- "last_build_started_at"=>"2013-01-13T16:58:43Z",
662
- "last_build_finished_at"=>"2013-01-13T16:55:08Z"}]}.to_json
654
+ { 'repos' =>
655
+ [{ 'id' => 107_495,
656
+ 'slug' => 'pypug/django-mango',
657
+ 'description' => 'More Mango, less Django!',
658
+ 'last_build_id' => 4_125_823,
659
+ 'last_build_number' => '39',
660
+ 'last_build_state' => 'failed',
661
+ 'last_build_duration' => 31,
662
+ 'last_build_language' => nil,
663
+ 'last_build_started_at' => '2013-01-13T16:58:43Z',
664
+ 'last_build_finished_at' => '2013-01-13T16:55:08Z' }] }.to_json
663
665
  end
664
666
 
665
667
  get '/config' do
666
- {"config" => {"host" => "travis-ci.org"}}.to_json
668
+ { 'config' => { 'host' => 'travis-ci.org' } }.to_json
667
669
  end
668
670
 
669
671
  get '/logs/3168318' do
670
- {"log"=>
671
- {"id"=>3168318,
672
- "job_id"=>4125096,
673
- "type"=>"Log",
674
- "body"=>
675
- "$ export GEM=railties\n"}}.to_json
672
+ { 'log' =>
673
+ { 'id' => 3_168_318,
674
+ 'job_id' => 4_125_096,
675
+ 'type' => 'Log',
676
+ 'body' =>
677
+ "$ export GEM=railties\n" } }.to_json
676
678
  end
677
679
 
678
680
  get '/repos/*/travis.rb' do
679
- # hack hack
681
+ # HACK: hack
680
682
  request.path_info = '/repos/rails/rails'
681
683
  pass
682
684
  end
@@ -687,38 +689,36 @@ module Travis
687
689
  end
688
690
 
689
691
  get '/repos/rails/rails' do
690
- {"repo"=>
691
- {"id"=>891,
692
- "slug"=>"rails/rails",
693
- "description"=>settings.rails_description,
694
- "last_build_id"=>4125095,
695
- "last_build_number"=>"6180",
696
- "last_build_state"=>"failed",
697
- "last_build_duration"=>5019,
698
- "last_build_language"=>nil,
699
- "last_build_started_at"=>"2013-01-13T15:55:17Z",
700
- "last_build_finished_at"=>nil,
701
- "github_language"=>"Ruby"}}.to_json
692
+ { 'repo' =>
693
+ { 'id' => 891,
694
+ 'slug' => 'rails/rails',
695
+ 'description' => settings.rails_description,
696
+ 'last_build_id' => 4_125_095,
697
+ 'last_build_number' => '6180',
698
+ 'last_build_state' => 'failed',
699
+ 'last_build_duration' => 5019,
700
+ 'last_build_language' => nil,
701
+ 'last_build_started_at' => '2013-01-13T15:55:17Z',
702
+ 'last_build_finished_at' => nil,
703
+ 'github_language' => 'Ruby' } }.to_json
702
704
  end
703
705
 
704
706
  get '/repos/891/key' do
705
- {"key"=>RAILS_KEY, "fingerprint"=>"foobar"}.to_json
707
+ { 'key' => RAILS_KEY, 'fingerprint' => 'foobar' }.to_json
706
708
  end
707
709
 
708
710
  get '/accounts/' do
709
- {"accounts"=>
710
- [{'name' => "Konstantin Haase",
711
- 'login' => 'rkh',
712
- 'type' => 'user',
713
- 'repos_count' => 200
714
- }]}.to_json
711
+ { 'accounts' =>
712
+ [{ 'name' => 'Konstantin Haase',
713
+ 'login' => 'rkh',
714
+ 'type' => 'user',
715
+ 'repos_count' => 200 }] }.to_json
715
716
  end
716
717
 
717
718
  get '/broadcasts/' do
718
- {"broadcasts"=>
719
- [{'id' => 1,
720
- 'message' => 'Hello!'
721
- }]}.to_json
719
+ { 'broadcasts' =>
720
+ [{ 'id' => 1,
721
+ 'message' => 'Hello!' }] }.to_json
722
722
  end
723
723
 
724
724
  #### for encrypt_file spec
@@ -726,18 +726,18 @@ module Travis
726
726
  # p params
727
727
  $params = params
728
728
  {
729
- "env_vars":[
729
+ "env_vars": [
730
730
  {
731
- "id": "8aa1c74d-dcc4-4e41-9087-1326b7c68abd",
732
- "name": "encrypted_randomhex_key",
733
- "value": "super_secret_key",
731
+ "id": '8aa1c74d-dcc4-4e41-9087-1326b7c68abd',
732
+ "name": 'encrypted_randomhex_key',
733
+ "value": 'super_secret_key',
734
734
  "public": false,
735
735
  "repository_id": 891
736
736
  },
737
737
  {
738
- "id": "b2ed30b9-622d-4bd7-928b-ba5aad7ba6a1",
739
- "name": "encrypted_randomhex_iv",
740
- "value": "super_secret_iv",
738
+ "id": 'b2ed30b9-622d-4bd7-928b-ba5aad7ba6a1',
739
+ "name": 'encrypted_randomhex_iv',
740
+ "value": 'super_secret_iv',
741
741
  "public": false,
742
742
  "repository_id": 891
743
743
  }
@@ -749,9 +749,9 @@ module Travis
749
749
  $params = params
750
750
  {
751
751
  "env_var": {
752
- "id": "8aa1c74d-dcc4-4e41-9087-1326b7c68abd",
753
- "name": "encrypted_randomhex_key",
754
- "value": "new_super_secret_key",
752
+ "id": '8aa1c74d-dcc4-4e41-9087-1326b7c68abd',
753
+ "name": 'encrypted_randomhex_key',
754
+ "value": 'new_super_secret_key',
755
755
  "public": false,
756
756
  "repository_id": 891
757
757
  }
@@ -762,9 +762,9 @@ module Travis
762
762
  $params = params
763
763
  {
764
764
  "env_var": {
765
- "id": "b2ed30b9-622d-4bd7-928b-ba5aad7ba6a1",
766
- "name": "encrypted_randomhex_iv",
767
- "value": "new_super_secret_iv",
765
+ "id": 'b2ed30b9-622d-4bd7-928b-ba5aad7ba6a1',
766
+ "name": 'encrypted_randomhex_iv',
767
+ "value": 'new_super_secret_iv',
768
768
  "public": false,
769
769
  "repository_id": 891
770
770
  }