rhomobile-cijoe 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cijoe/server.rb +1 -1
- data/lib/cijoe/version.rb +1 -1
- data/lib/cijoe/views/statusTemplate.erb +30 -12
- metadata +4 -4
data/lib/cijoe/server.rb
CHANGED
data/lib/cijoe/version.rb
CHANGED
@@ -1,12 +1,30 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
<%
|
2
|
+
if build.failed?
|
3
|
+
@image = "/red_bl.gif"
|
4
|
+
@time = pretty_time(build.finished_at)
|
5
|
+
@duration = "in %.2f" % (build.finished_at.to_f - build.started_at.to_f)
|
6
|
+
|
7
|
+
elsif build.worked?
|
8
|
+
@image = "/green.gif"
|
9
|
+
@time = pretty_time(build.finished_at)
|
10
|
+
@duration = "in %.2f" % (build.finished_at.to_f - build.started_at.to_f)
|
11
|
+
|
12
|
+
else
|
13
|
+
@image = "/green_off.gif"
|
14
|
+
@time = pretty_time(build.started_at)
|
15
|
+
@duration = "for %.2f" % (Time.now - build.started_at.to_f)
|
16
|
+
|
17
|
+
end
|
18
|
+
%>
|
19
|
+
|
20
|
+
<img src="<%= @image %>" style="height:16px; position:relative; top:3px">
|
21
|
+
<span class="date"><%= @time %></span> » Build <a href="<%= joe.url %>/commit/<%= build.sha %>"><%= build.short_sha %></a>
|
22
|
+
<span class="<%= build.status %>">(<%= build.status %>)</span><span> <%= @duration %> seconds</span>
|
23
|
+
|
24
|
+
<% if build.failed? or build.worked? %>
|
25
|
+
<span>(</span>
|
26
|
+
<span class="total"> <%= "#{build.total}" %> : </span>
|
27
|
+
<span class="pass"> <%= "#{build.passes}" %> : </span>
|
28
|
+
<span class="fail"> <%= "#{build.fails}" %> </span>
|
29
|
+
<span>)</span>
|
30
|
+
<% end %>
|
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: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 7
|
10
|
+
version: 0.2.7
|
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-
|
20
|
+
date: 2010-07-13 00:00:00 -07:00
|
21
21
|
default_executable: cijoe
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|