rhomobile-cijoe 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cijoe/server.rb +1 -2
- data/lib/cijoe/version.rb +1 -1
- data/lib/cijoe/views/statusTemplate.erb +3 -3
- metadata +3 -3
data/lib/cijoe/server.rb
CHANGED
@@ -32,8 +32,7 @@ class CIJoe
|
|
32
32
|
# Otherwise, render it with old_builds[0]
|
33
33
|
erb(:statusTemplate, {},
|
34
34
|
:joe => @joe,
|
35
|
-
:build => (@joe.building? ? @joe.current_build : @joe.old_builds[0])
|
36
|
-
:url => CIJoe::Server.host.to_s + ":" + CIJoe::Server.port.to_s )
|
35
|
+
:build => (@joe.building? ? @joe.current_build : @joe.old_builds[0]) )
|
37
36
|
|
38
37
|
end
|
39
38
|
|
data/lib/cijoe/version.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
<%
|
2
2
|
if build.failed?
|
3
|
-
@image = "http://" +
|
3
|
+
@image = "http://" + request.env["HTTP_HOST"] + "/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 = "http://" +
|
8
|
+
@image = "http://" + request.env["HTTP_HOST"] + "/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 = "http://" +
|
13
|
+
@image = "http://" + request.env["HTTP_HOST"] + "/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:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 11
|
10
|
+
version: 0.2.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Wanstrath
|