ginst 2.0.1 → 2009.11.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/Rakefile +20 -21
  2. data/VERSION +1 -1
  3. data/app/controllers/application_controller.rb +1 -1
  4. data/app/controllers/status_controller.rb +10 -0
  5. data/app/controllers/tasks_controller.rb +9 -7
  6. data/app/helpers/projects_helper.rb +9 -4
  7. data/app/models/project.rb +38 -15
  8. data/app/models/task.rb +15 -3
  9. data/app/views/grit/commits/_commit.html.erb +3 -12
  10. data/app/views/layouts/projects.html.erb +1 -1
  11. data/app/views/status/show.html.erb +6 -1
  12. data/app/views/tasks/_task.html.erb +43 -26
  13. data/app/views/tasks/_task_item.html.erb +22 -0
  14. data/app/views/tasks/index.html.erb +3 -2
  15. data/app/views/tasks/show.html.erb +1 -46
  16. data/config/database.yml +4 -1
  17. data/config/environment.rb +4 -4
  18. data/config/routes.rb +1 -5
  19. data/ginst.gemspec +17 -18
  20. data/lib/ginst.rb +5 -2
  21. data/lib/ginst/builder.rb +2 -0
  22. data/lib/ginst/cli.rb +21 -44
  23. data/lib/ginst/console.rb +9 -0
  24. data/lib/ginst/ginst_template/webserver.ymlt +2 -0
  25. data/lib/ginst/logger.rb +31 -0
  26. data/lib/ginst/template.rb +1 -0
  27. data/lib/ginst/web_server.rb +28 -6
  28. data/log/development.log +49 -0
  29. data/public/stylesheets/screen.css +73 -38
  30. data/script/builder.rb +6 -1
  31. data/{features/step_definitions/ginst_steps.rb → tmp/.gittouch} +0 -0
  32. data/tmp/cache/.gittouch +0 -0
  33. data/tmp/pids/.gittouch +0 -0
  34. data/tmp/sessions/.gittouch +0 -0
  35. data/tmp/sockets/.gittouch +0 -0
  36. metadata +19 -17
  37. data/features/ginst.feature +0 -9
  38. data/features/support/env.rb +0 -4
  39. data/spec/ginst_spec.rb +0 -7
  40. data/spec/spec.opts +0 -1
  41. data/spec/spec_helper.rb +0 -9
@@ -0,0 +1,49 @@
1
+ SQL (0.3ms) SET NAMES 'utf8'
2
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
3
+ SQL (3.0ms) SHOW TABLES
4
+ SQL (1.6ms) SELECT version FROM schema_migrations
5
+ SQL (0.2ms) SET NAMES 'utf8'
6
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
7
+ SQL (0.5ms) SHOW TABLES
8
+ SQL (0.2ms) SELECT version FROM schema_migrations
9
+ SQL (0.3ms) SET NAMES 'utf8'
10
+ SQL (0.3ms) SET SQL_AUTO_IS_NULL=0
11
+ SQL (52.2ms) SHOW TABLES
12
+ SQL (0.3ms) SELECT version FROM schema_migrations
13
+ SQL (0.2ms) SET NAMES 'utf8'
14
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
15
+ SQL (0.5ms) SHOW TABLES
16
+ SQL (0.2ms) SELECT version FROM schema_migrations
17
+ SQL (0.2ms) SET NAMES 'utf8'
18
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
19
+ SQL (0.5ms) SHOW TABLES
20
+ SQL (0.2ms) SELECT version FROM schema_migrations
21
+ SQL (0.1ms) SET NAMES 'utf8'
22
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
23
+ SQL (0.4ms) SHOW TABLES
24
+ SQL (0.2ms) SELECT version FROM schema_migrations
25
+ SQL (0.2ms) SET NAMES 'utf8'
26
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
27
+ SQL (0.5ms) SHOW TABLES
28
+ SQL (0.2ms) SELECT version FROM schema_migrations
29
+ SQL (0.2ms) SET NAMES 'utf8'
30
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
31
+ SQL (0.5ms) SHOW TABLES
32
+ SQL (0.2ms) SELECT version FROM schema_migrations
33
+ SQL (0.2ms) SET NAMES 'utf8'
34
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
35
+ SQL (0.4ms) SHOW TABLES
36
+ SQL (0.2ms) SELECT version FROM schema_migrations
37
+ SQL (0.2ms) SET NAMES 'utf8'
38
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
39
+ SQL (8.4ms) SHOW TABLES
40
+ SQL (0.3ms) SELECT version FROM schema_migrations
41
+ SQL (0.2ms) SET NAMES 'utf8'
42
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
43
+ SQL (7.2ms) SHOW TABLES
44
+ SQL (0.2ms) SELECT version FROM schema_migrations
45
+ SQL (0.4ms) SET NAMES 'utf8'
46
+ SQL (0.4ms) SET SQL_AUTO_IS_NULL=0
47
+ SQL (55.9ms) SHOW TABLES
48
+ SQL (0.5ms) SELECT version FROM schema_migrations
49
+ Starting builder daemon
@@ -1,6 +1,8 @@
1
1
  /* @override
2
2
  http://localhost:3000/stylesheets/screen.css
3
3
  http://dev.jobandtalent.com/stylesheets/screen.css
4
+ http://dev.jobandtalent.com:9999/stylesheets/screen.css
5
+ http://ci.jobandtalent.com/stylesheets/screen.css
4
6
  */
5
7
 
6
8
  /* @group Reset */
@@ -23,24 +25,6 @@ body {
23
25
 
24
26
  /* @group Site */
25
27
 
26
- ul.tabs {
27
- margin: 0;
28
- padding: 0;
29
- overflow: hidden;
30
- }
31
-
32
- ul.tabs li {
33
- float: left;
34
- list-style: none;
35
- margin: 0 5px;
36
- padding: 0;
37
- }
38
-
39
- ul.tabs li a {
40
- float: left;
41
- display: block;
42
- }
43
-
44
28
  #page {
45
29
  margin: 0 auto;
46
30
  width: 95em;
@@ -55,20 +39,35 @@ ul.tabs li a {
55
39
 
56
40
  /* @group Header */
57
41
 
42
+
58
43
  #header {
59
44
  margin-top: 20px;
60
45
  }
61
46
 
62
- #header .tabs {
47
+ #header h1 {
48
+ font-size: 10em;
49
+ overflow: hidden;
50
+ line-height: 1em;
51
+ }
52
+
53
+ #header ul.tabs {
63
54
  border-bottom: 1px solid #ddd;
55
+ overflow: hidden;
56
+
64
57
  }
65
58
 
66
- #header .tabs li {
59
+ #header ul.tabs li {
60
+ float: left;
61
+ list-style: none;
62
+ margin: 0 1em;
63
+ padding: 0;
67
64
  margin-right: 1px;
68
65
  font-size: 1.2em;
69
66
  }
70
67
 
71
- #header .tabs a {
68
+ #header ul.tabs a {
69
+ float: left;
70
+ display: block;
72
71
  padding: 5px 15px;
73
72
  background: #ddd;
74
73
  color: #666;
@@ -80,17 +79,44 @@ ul.tabs li a {
80
79
  font-size: 1.2em;
81
80
  }
82
81
 
83
- #header h1 {
84
- font-size: 10em;
85
- overflow: hidden;
86
- line-height: 1em;
87
- }
88
82
 
89
83
  /*
90
84
 
91
85
  @end */
92
86
 
93
- /* @group My Group */
87
+ /* @group Submenu */
88
+
89
+ ul.submenu {
90
+ list-style: none;
91
+ font-weight: bolder;
92
+ margin: 1em;
93
+ width: 95em;
94
+ overflow: hidden;
95
+ }
96
+
97
+ ul.submenu li{
98
+ float: left;
99
+ margin: 0.2em 2em 0.2em 0;
100
+ -moz-border-radius: 0.5em;
101
+ -webkit-border-radius: 0.5em;
102
+ background: #ddd ;
103
+ padding: 0.2em 0.8em;
104
+ }
105
+
106
+ ul.submenu li a{
107
+ display: block;
108
+ text-decoration: none;
109
+ }
110
+
111
+
112
+ /* @end */
113
+
114
+
115
+
116
+
117
+
118
+
119
+ /* @group Undefined */
94
120
 
95
121
  #body {
96
122
  margin-top: 20px;
@@ -129,10 +155,6 @@ pre {
129
155
  word-wrap: break-word;
130
156
  }
131
157
 
132
- dl, dl dt, dl dd {
133
- overflow: show;
134
- width: 100%;
135
- }
136
158
 
137
159
  dl dt {
138
160
  font-weight: bold;
@@ -177,7 +199,7 @@ fieldset dd{
177
199
 
178
200
  /* @group Item list */
179
201
 
180
- ul li {
202
+ #body ul li {
181
203
  -moz-border-radius: 0.5em;
182
204
  -webkit-border-radius: 0.5em;
183
205
  margin-bottom: 0.5em;
@@ -254,9 +276,18 @@ ul li {
254
276
  float: left;
255
277
  padding: 0.2em;
256
278
  background: white;
279
+ }
280
+
281
+ .grit_commit img.avatar_30 {
257
282
  width: 30px;
258
283
  height: 30px;
259
284
  }
285
+ .grit_commit img.avatar_20 {
286
+ width: 20px;
287
+ height: 20px;
288
+ }
289
+
290
+
260
291
 
261
292
  .grit_commit p a.prepared {
262
293
  background: url('/images/task_prepared_small.png');
@@ -354,6 +385,10 @@ div.task h1 {
354
385
  color: white;
355
386
  background: black;
356
387
  padding: 1em;
388
+ font-family: fixed;
389
+ letter-spacing: -0.2em;
390
+ font-size: 12px;
391
+ line-height: 12px;
357
392
  }
358
393
 
359
394
  .task_description a.raw_link {
@@ -362,13 +397,13 @@ div.task h1 {
362
397
  padding-right: 0.5em;
363
398
  }
364
399
 
365
- .task p.status {
400
+ p.status {
366
401
  position: absolute;
367
402
  top: 0.5em;
368
403
  right: 0.5em;
369
404
  }
370
405
 
371
- .task p.status.prepared {
406
+ p.status.prepared {
372
407
  background: url('/images/task_prepared.png');
373
408
  width: 24px;
374
409
  height: 24px;
@@ -378,7 +413,7 @@ div.task h1 {
378
413
  line-height: 2.4em;
379
414
  }
380
415
 
381
- .task p.status.success {
416
+ p.status.success {
382
417
  background: url('/images/task_win.png');
383
418
  width: 24px;
384
419
  height: 24px;
@@ -388,7 +423,7 @@ div.task h1 {
388
423
  line-height: 2.4em;
389
424
  }
390
425
 
391
- .task p.status.building {
426
+ p.status.building {
392
427
  background: url('/images/ajax-loader.gif');
393
428
  width: 32px;
394
429
  height: 32px;
@@ -398,11 +433,11 @@ div.task h1 {
398
433
  line-height: 2.4em;
399
434
  }
400
435
 
401
- .task p.status.fail {
436
+ p.status.fail {
402
437
  background: url('/images/task_fail.gif');
403
438
  width: 24px;
404
439
  height: 24px;
405
- display: inline-block;
440
+ display: block;
406
441
  overflow: hidden;
407
442
  text-indent: 2.4em;
408
443
  line-height: 2.4em;
@@ -2,12 +2,17 @@
2
2
  require File.dirname(__FILE__) + '/../config/environment'
3
3
 
4
4
  loop do
5
+
5
6
  Project.all.each do |project|
6
7
  begin
7
8
  ENV.delete 'RAILS_ENV'
8
9
  project.run_tasks! unless project.building?
9
- rescue ProjectLockedException
10
+ rescue Project::ProjectLockedException
10
11
  puts "#{project.name} is building"
12
+ rescue => e
13
+ puts e.inspect
14
+ puts e.backtrace*"\n"
15
+
11
16
  end
12
17
  end
13
18
 
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ginst
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2009.11.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Guillermo \xC3\x81lvarez Fern\xC3\xA1ndez"
@@ -9,22 +9,22 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-10 00:00:00 +01:00
12
+ date: 2009-11-24 00:00:00 +01:00
13
13
  default_executable: ginst
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rspec
17
- type: :development
16
+ name: sys-proctable
17
+ type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.2.9
23
+ version: "0"
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
- name: cucumber
27
- type: :development
26
+ name: mime-types
27
+ type: :runtime
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: "0"
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
- name: sys-proctable
36
+ name: mongrel
37
37
  type: :runtime
38
38
  version_requirement:
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -91,6 +91,7 @@ files:
91
91
  - app/views/status/show.html.erb
92
92
  - app/views/tasks/_task.html.erb
93
93
  - app/views/tasks/_task_command.html.erb
94
+ - app/views/tasks/_task_item.html.erb
94
95
  - app/views/tasks/building.html.erb
95
96
  - app/views/tasks/index.html.erb
96
97
  - app/views/tasks/show.html.erb
@@ -119,14 +120,12 @@ files:
119
120
  - db/migrate/20091025165305_create_tasks.rb
120
121
  - db/migrate/20091025165330_create_commands.rb
121
122
  - db/schema.rb
122
- - features/ginst.feature
123
- - features/step_definitions/ginst_steps.rb
124
- - features/support/env.rb
125
123
  - ginst.gemspec
126
124
  - lib/ginst.rb
127
125
  - lib/ginst/builder.rb
128
126
  - lib/ginst/cli.rb
129
127
  - lib/ginst/configuration.rb
128
+ - lib/ginst/console.rb
130
129
  - lib/ginst/console_to_html.rb
131
130
  - lib/ginst/ginst_template/database.ymlt
132
131
  - lib/ginst/ginst_template/plugins/simple_build/app/controllers/simple_builds_controller.rb
@@ -140,6 +139,8 @@ files:
140
139
  - lib/ginst/ginst_template/plugins/simple_build/config/build.yml
141
140
  - lib/ginst/ginst_template/plugins/simple_build/config/routes.rb
142
141
  - lib/ginst/ginst_template/plugins/simple_build/init.rb
142
+ - lib/ginst/ginst_template/webserver.ymlt
143
+ - lib/ginst/logger.rb
143
144
  - lib/ginst/plugin.rb
144
145
  - lib/ginst/ssh.rb
145
146
  - lib/ginst/template.rb
@@ -195,9 +196,11 @@ files:
195
196
  - script/process/spawner
196
197
  - script/runner
197
198
  - script/server
198
- - spec/ginst_spec.rb
199
- - spec/spec.opts
200
- - spec/spec_helper.rb
199
+ - tmp/.gittouch
200
+ - tmp/cache/.gittouch
201
+ - tmp/pids/.gittouch
202
+ - tmp/sessions/.gittouch
203
+ - tmp/sockets/.gittouch
201
204
  - vendor/gems/daemons-1.0.10/.specification
202
205
  - vendor/gems/daemons-1.0.10/LICENSE
203
206
  - vendor/gems/daemons-1.0.10/README
@@ -4279,6 +4282,5 @@ rubygems_version: 1.3.5
4279
4282
  signing_key:
4280
4283
  specification_version: 3
4281
4284
  summary: Git Integration System
4282
- test_files:
4283
- - spec/ginst_spec.rb
4284
- - spec/spec_helper.rb
4285
+ test_files: []
4286
+
@@ -1,9 +0,0 @@
1
- Feature: something something
2
- In order to something something
3
- A user something something
4
- something something something
5
-
6
- Scenario: something something
7
- Given inspiration
8
- When I create a sweet new gem
9
- Then everyone should see how awesome I am
@@ -1,4 +0,0 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
2
- require 'ginst'
3
-
4
- require 'spec/expectations'
@@ -1,7 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
-
3
- describe "Ginst" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
6
- end
7
- end
@@ -1 +0,0 @@
1
- --color
@@ -1,9 +0,0 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__))
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
- require 'ginst'
4
- require 'spec'
5
- require 'spec/autorun'
6
-
7
- Spec::Runner.configure do |config|
8
-
9
- end