rrrspec-web 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +2 -0
  3. data/Gemfile +5 -0
  4. data/Guardfile +4 -0
  5. data/Rakefile +2 -0
  6. data/app/css/application.sass +124 -0
  7. data/app/css/vendor/bootstrap-theme.css +384 -0
  8. data/app/css/vendor/bootstrap-theme.min.css +1 -0
  9. data/app/css/vendor/bootstrap.css +6805 -0
  10. data/app/css/vendor/bootstrap.min.css +9 -0
  11. data/app/js/index.coffee +51 -0
  12. data/app/js/models.coffee +177 -0
  13. data/app/js/tasksets.coffee +305 -0
  14. data/app/js/vendor/backbone-min.js +2 -0
  15. data/app/js/vendor/backbone-min.map +1 -0
  16. data/app/js/vendor/backbone.js +1581 -0
  17. data/app/js/vendor/bootstrap.js +1999 -0
  18. data/app/js/vendor/bootstrap.min.js +6 -0
  19. data/app/js/vendor/jquery-1.10.2.js +9789 -0
  20. data/app/js/vendor/jquery-1.10.2.min.js +6 -0
  21. data/app/js/vendor/jquery-1.10.2.min.map +1 -0
  22. data/app/js/vendor/moment.min.js +6 -0
  23. data/app/js/vendor/mustache.js +551 -0
  24. data/app/js/vendor/underscore-min.js +6 -0
  25. data/app/js/vendor/underscore-min.map +1 -0
  26. data/app/js/vendor/underscore.js +1276 -0
  27. data/compass.config +2 -0
  28. data/lib/rrrspec/web.rb +22 -0
  29. data/lib/rrrspec/web/api.rb +55 -0
  30. data/lib/rrrspec/web/app.rb +48 -0
  31. data/lib/rrrspec/web/configuration.rb +12 -0
  32. data/lib/rrrspec/web/persistent_models.rb +16 -0
  33. data/lib/rrrspec/web/version.rb +5 -0
  34. data/rrrspec-web.gemspec +47 -0
  35. data/spec/rrrspec/web/api_spec.rb +118 -0
  36. data/spec/spec_helper.rb +77 -0
  37. data/tasks/assets.rake +6 -0
  38. data/views/index.haml +46 -0
  39. data/views/taskset.haml +161 -0
  40. data/views/user.haml +33 -0
  41. metadata +379 -0
@@ -0,0 +1,161 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %meta{charset: 'utf-8', 'http-equiv' => 'Content-Type', content: 'text/html'}
5
+ %title Taskset - RRRSpec
6
+ != css :application
7
+ != js :tasksets
8
+ %body
9
+ #notfound-modal.modal.fade
10
+ .modal-dialog
11
+ .modal-content
12
+ .modal-body
13
+ Not found
14
+
15
+ .taskset.container.hidden
16
+ .head.panel.panel-default
17
+
18
+ .progressbars
19
+ %h5 FILES
20
+ .progress.spec-progress
21
+ .progress-bar.spec-progress-bar
22
+ .progress-bar.progress-bar-success.passed-spec-bar
23
+ .progress-bar.progress-bar-warning.pending-spec-bar
24
+ .progress-bar.progress-bar-danger.failed-spec-bar
25
+
26
+ %h5 EXAMPLES
27
+ .progress.example-progress
28
+ .progress-bar.progress-bar-success.passed-example-bar
29
+ .progress-bar.progress-bar-warning.pending-example-bar
30
+ .progress-bar.progress-bar-danger.failed-example-bar
31
+
32
+ .panel.panel-default.tasklist
33
+ .panel-heading FAILED TASKS
34
+ %ul.list-group.tasklist-list
35
+ %li.list-group-item
36
+ %ul.tasklist-header
37
+ %li.taskstatus Status
38
+ %li.file File
39
+ %li.pull-right.trial-count Trials
40
+ %li.pull-right.estimate-sec Avg.
41
+
42
+ .panel.panel-default.worker-logs
43
+ .panel-heading WORKERS
44
+ %ul.list-group.worker-logs-list
45
+
46
+ .panel.panel-default.slaves
47
+ .panel-heading SLAVES
48
+ %ul.list-group.slaves-list
49
+
50
+ %script#head-template{type: 'text/template'}
51
+ .panel-heading.clearfix
52
+ %h4.panel-title
53
+ %a.name{data: {toggle: 'collapse'}, href: '#taskset-info'} {{key}}
54
+ %span.label.status {{status}}
55
+ #taskset-info.panel-collapse.collapse
56
+ .panel-body
57
+ %dl.dl-horizontal
58
+ %dt Name
59
+ %dd.name {{key}}
60
+ %dt Status
61
+ %dd.status {{status}}
62
+ %dt Created
63
+ %dd.created-at {{created_at}}
64
+ %dt Finished
65
+ %dd.finished-at {{finished_at}} ({{duration}})
66
+ %dt RSync Name
67
+ %dd.rsync-name {{rsync_name}}
68
+ %dt Max Trials
69
+ %dd.max-trials {{max_trials}}
70
+ %dt Max Workers
71
+ %dd.max-workers {{max_workers}}
72
+ %dt Unknown spec timeout sec
73
+ %dd.unknown-spec-timeout-sec {{unknown_spec_timeout_sec}}
74
+ %dt Least timeout sec
75
+ %dd.least-timeout-sec {{least_timeout_sec}}
76
+ %dt Taskset class
77
+ %dd.taskset-class {{taskset_class}}
78
+ %dt Worker type
79
+ %dd.worker-type {{worker_type}}
80
+
81
+ %h5 SETUP COMMAND
82
+ %pre.setup-command {{setup_command}}
83
+
84
+ %h5 SLAVE COMMAND
85
+ %pre.slave-command {{slave_command}}
86
+
87
+ %h5 LOG
88
+ %pre.log.pre-scrollable {{log}}
89
+
90
+ %script#tasklist-template{type: 'text/template'}
91
+ %ul.tasklist-item.header
92
+ %li.taskstatus {{status}}
93
+ %li.file {{spec_file}}
94
+ %li.pull-right.trial-count {{trials.length}}
95
+ %li.pull-right.estimate-sec {{estimate_sec}}
96
+ .body.collapse.trials
97
+
98
+ %script#trial-template{type: 'text/template'}
99
+ .panel-heading
100
+ .panel-title {{key}}
101
+ %dl.dl-horizontal
102
+ %dt Status
103
+ %dd {{status}}
104
+ %dt Started
105
+ %dd {{#started_at}}{{started_at}}{{/started_at}}
106
+ %dt Finished
107
+ %dd {{#finished_at}}{{finished_at}} ({{duration}}){{/finished_at}}
108
+ %dt Slave
109
+ %dd
110
+ %a{href: "#slave/{{slave.key}}"} {{slave.key}}
111
+ %dt Passed
112
+ %dd {{passed}}
113
+ %dt Pending
114
+ %dd {{pending}}
115
+ %dt Failed
116
+ %dd {{failed}}
117
+
118
+ %h5 STDOUT
119
+ %pre.log.pre-scrollable
120
+ {{stdout}}
121
+
122
+ %h5 STDERR
123
+ %pre.log.pre-scrollable
124
+ {{stderr}}
125
+
126
+
127
+ %script#worker-log-template{type: 'text/template'}
128
+ .header {{ key }}
129
+ .body.collapse
130
+ %dl.dl-horizontal
131
+ %dt Name
132
+ %dd {{key}}
133
+ %dt Started
134
+ %dd {{started_at}}
135
+ %dt RSync Finished
136
+ %dd {{#rsync_finished_at}}{{rsync_finished_at}} ({{rsync_duration}}){{/rsync_finished_at}}
137
+ %dt Setup Finished
138
+ %dd {{#setup_finished_at}}{{setup_finished_at}} ({{setup_duration}}){{/setup_finished_at}}
139
+ %dt Finished
140
+ %dd {{#finished_at}}{{finished_at}} ({{test_duration}}){{/finished_at}}
141
+
142
+ %h5 LOG
143
+ %pre.log.pre-scrollable
144
+ {{log}}
145
+
146
+ %script#slave-template{type: 'text/template'}
147
+ .header
148
+ {{key}}
149
+ .exit-status.pull-right
150
+ {{status}}
151
+ .body.collapse
152
+ %h5 TRIALS
153
+ %ol
154
+ {{#trials}}
155
+ %li
156
+ %a{href: "#trial/{{encoded_key}}"} {{key}}
157
+ {{/trials}}
158
+
159
+ %h5 LOG
160
+ %pre.log.pre-scrollable
161
+ {{log}}
@@ -0,0 +1,33 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %meta{charset: 'utf-8', 'http-equiv' => 'Content-Type', content: 'text/html'}
5
+ %title User - RRRSpec
6
+ %script{src: '//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js', type: 'text/javascript'}
7
+ != css :application, :media => 'screen'
8
+ != js :user
9
+ %body
10
+ :javascript
11
+ SERVER_ADDR = "#{webdis_addr}"
12
+
13
+ %nav.navbar.navbar-inverse.navbar-fixed-top#navbar
14
+ .container
15
+ .navbar-header
16
+ %a.navbar-brand{href: '/'}
17
+ RRRSpec
18
+
19
+ .container
20
+ %h2 Tasksets
21
+ %table.table#tasksets
22
+ %thead
23
+ %tr
24
+ %th Name
25
+ %th Status
26
+ %th Succeeded
27
+ %th Failed
28
+ %th Created
29
+ %th Machine
30
+ %th RSync
31
+ %th Setup
32
+ %th RSpec
33
+ %th Total
metadata ADDED
@@ -0,0 +1,379 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rrrspec-web
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Masaya Suzuki
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-02-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.4'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rack-test
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: database_cleaner
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 1.2.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 1.2.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: mysql2
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: guard-livereload
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rack-livereload
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: activerecord
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ~>
144
+ - !ruby/object:Gem::Version
145
+ version: '3.0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ version: '3.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: activesupport
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: api-pagination
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: coffee-script
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ~>
186
+ - !ruby/object:Gem::Version
187
+ version: 2.2.0
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ~>
193
+ - !ruby/object:Gem::Version
194
+ version: 2.2.0
195
+ - !ruby/object:Gem::Dependency
196
+ name: grape
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - '>='
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - '>='
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: haml
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ~>
214
+ - !ruby/object:Gem::Version
215
+ version: 4.0.3
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ~>
221
+ - !ruby/object:Gem::Version
222
+ version: 4.0.3
223
+ - !ruby/object:Gem::Dependency
224
+ name: kaminari
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ~>
228
+ - !ruby/object:Gem::Version
229
+ version: 0.15.0
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ~>
235
+ - !ruby/object:Gem::Version
236
+ version: 0.15.0
237
+ - !ruby/object:Gem::Dependency
238
+ name: rrrspec-client
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - '>='
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - '>='
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: rrrspec-server
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - '>='
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :runtime
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - '>='
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: sass
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - '>='
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :runtime
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - '>='
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
279
+ - !ruby/object:Gem::Dependency
280
+ name: sinatra
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - ~>
284
+ - !ruby/object:Gem::Version
285
+ version: 1.4.3
286
+ type: :runtime
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ~>
291
+ - !ruby/object:Gem::Version
292
+ version: 1.4.3
293
+ - !ruby/object:Gem::Dependency
294
+ name: sinatra-assetpack
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - '>='
298
+ - !ruby/object:Gem::Version
299
+ version: '0'
300
+ type: :runtime
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - '>='
305
+ - !ruby/object:Gem::Version
306
+ version: '0'
307
+ description: Execute RSpec in a distributed manner
308
+ email:
309
+ - draftcode@gmail.com
310
+ executables: []
311
+ extensions: []
312
+ extra_rdoc_files: []
313
+ files:
314
+ - .rspec
315
+ - Gemfile
316
+ - Guardfile
317
+ - Rakefile
318
+ - app/css/application.sass
319
+ - app/css/vendor/bootstrap-theme.css
320
+ - app/css/vendor/bootstrap-theme.min.css
321
+ - app/css/vendor/bootstrap.css
322
+ - app/css/vendor/bootstrap.min.css
323
+ - app/js/index.coffee
324
+ - app/js/models.coffee
325
+ - app/js/tasksets.coffee
326
+ - app/js/vendor/backbone-min.js
327
+ - app/js/vendor/backbone-min.map
328
+ - app/js/vendor/backbone.js
329
+ - app/js/vendor/bootstrap.js
330
+ - app/js/vendor/bootstrap.min.js
331
+ - app/js/vendor/jquery-1.10.2.js
332
+ - app/js/vendor/jquery-1.10.2.min.js
333
+ - app/js/vendor/jquery-1.10.2.min.map
334
+ - app/js/vendor/moment.min.js
335
+ - app/js/vendor/mustache.js
336
+ - app/js/vendor/underscore-min.js
337
+ - app/js/vendor/underscore-min.map
338
+ - app/js/vendor/underscore.js
339
+ - compass.config
340
+ - lib/rrrspec/web.rb
341
+ - lib/rrrspec/web/api.rb
342
+ - lib/rrrspec/web/app.rb
343
+ - lib/rrrspec/web/configuration.rb
344
+ - lib/rrrspec/web/persistent_models.rb
345
+ - lib/rrrspec/web/version.rb
346
+ - rrrspec-web.gemspec
347
+ - spec/rrrspec/web/api_spec.rb
348
+ - spec/spec_helper.rb
349
+ - tasks/assets.rake
350
+ - views/index.haml
351
+ - views/taskset.haml
352
+ - views/user.haml
353
+ homepage: ''
354
+ licenses:
355
+ - MIT
356
+ metadata: {}
357
+ post_install_message:
358
+ rdoc_options: []
359
+ require_paths:
360
+ - lib
361
+ required_ruby_version: !ruby/object:Gem::Requirement
362
+ requirements:
363
+ - - '>='
364
+ - !ruby/object:Gem::Version
365
+ version: '0'
366
+ required_rubygems_version: !ruby/object:Gem::Requirement
367
+ requirements:
368
+ - - '>='
369
+ - !ruby/object:Gem::Version
370
+ version: '0'
371
+ requirements: []
372
+ rubyforge_project:
373
+ rubygems_version: 2.0.3
374
+ signing_key:
375
+ specification_version: 4
376
+ summary: Execute RSpec in a distributed manner
377
+ test_files:
378
+ - spec/rrrspec/web/api_spec.rb
379
+ - spec/spec_helper.rb