rhomobile-cijoe 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,6 +28,8 @@ class CIJoe
28
28
 
29
29
  get '/status' do
30
30
 
31
+ # If joe is building, render the statusTemplate with the currentBuild
32
+ # Otherwise, render it with old_builds[0]
31
33
  erb(:statusTemplate, {}, :joe => @joe, :build => (@joe.building? ? @joe.current_build : @joe.old_builds[0]) )
32
34
 
33
35
  end
@@ -1,3 +1,3 @@
1
1
  class CIJoe
2
- Version = "0.2.8"
2
+ Version = "0.2.9"
3
3
  end
@@ -1,16 +1,16 @@
1
1
  <%
2
2
  if build.failed?
3
- @image = "/red_bl.gif"
3
+ @image = request.path + "/../red_bl.gif"
4
4
  @time = pretty_time(build.finished_at)
5
5
  @duration = "in %.2f" % (build.finished_at.to_f - build.started_at.to_f)
6
6
 
7
7
  elsif build.worked?
8
- @image = "/green.gif"
8
+ @image = request.path + "/../green.gif"
9
9
  @time = pretty_time(build.finished_at)
10
10
  @duration = "in %.2f" % (build.finished_at.to_f - build.started_at.to_f)
11
11
 
12
12
  else
13
- @image = "/green_off.gif"
13
+ @image = request.path + "/../green_off.gif"
14
14
  @time = pretty_time(build.started_at)
15
15
  @duration = "for %.2f" % (Time.now - build.started_at.to_f)
16
16
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhomobile-cijoe
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 8
10
- version: 0.2.8
9
+ - 9
10
+ version: 0.2.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Wanstrath
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-07-15 00:00:00 -07:00
20
+ date: 2010-07-18 00:00:00 -07:00
21
21
  default_executable: cijoe
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -88,6 +88,7 @@ files:
88
88
  - lib/cijoe/email.rb
89
89
  - lib/cijoe/public/favicon.ico
90
90
  - lib/cijoe/public/green.gif
91
+ - lib/cijoe/public/green_off.gif
91
92
  - lib/cijoe/public/octocat.png
92
93
  - lib/cijoe/public/red_bl.gif
93
94
  - lib/cijoe/public/screen.css