rhomobile-cijoe 0.2.10 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  class CIJoe
2
- Version = "0.2.10"
2
+ Version = "0.2.11"
3
3
  end
@@ -1,16 +1,16 @@
1
1
  <%
2
2
  if build.failed?
3
- @image = "http://" + url + "/red_bl.gif"
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://" + url + "/green.gif"
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://" + url + "/green_off.gif"
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: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 10
10
- version: 0.2.10
9
+ - 11
10
+ version: 0.2.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Wanstrath