integritray 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/CHANGELOG +0 -4
- data/README.rdoc +6 -0
- data/VERSION +1 -1
- data/integritray.gemspec +3 -3
- data/lib/integrity/integritray.rb +19 -9
- metadata +2 -2
data/.gitignore
CHANGED
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -9,6 +9,12 @@ Install the integritray gem:
|
|
9
9
|
|
10
10
|
Require in your Integrity application's config.ru:
|
11
11
|
require 'integrity/integritray'
|
12
|
+
|
13
|
+
Add rack end point in your config.ru
|
14
|
+
|
15
|
+
map "/" do
|
16
|
+
run Integrity::Integritray::App
|
17
|
+
end
|
12
18
|
|
13
19
|
Point CCMenu or your tray item of choice to the feed URL:
|
14
20
|
http://my.integration.server/projects.xml
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/integritray.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{integritray}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Josh French", "Justin Smestad"]
|
12
|
-
s.date = %q{2010-
|
11
|
+
s.authors = ["Josh French", "Justin Smestad", "Gabe Varela"]
|
12
|
+
s.date = %q{2010-02-17}
|
13
13
|
s.email = %q{josh@digitalpulp.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'integrity'
|
1
2
|
|
2
3
|
module Integrity
|
3
4
|
module Integritray
|
@@ -19,27 +20,36 @@ module Integrity
|
|
19
20
|
|
20
21
|
def activity(status)
|
21
22
|
case status
|
22
|
-
|
23
|
-
|
24
|
-
|
23
|
+
when :success, :failed then
|
24
|
+
'Sleeping'
|
25
|
+
when :pending then
|
26
|
+
'Building'
|
27
|
+
else
|
28
|
+
'Sleeping'
|
25
29
|
end
|
26
30
|
end
|
27
31
|
|
28
32
|
def build_status(status)
|
29
33
|
case status
|
30
|
-
|
31
|
-
|
32
|
-
|
34
|
+
when :success, :pending then
|
35
|
+
'Success'
|
36
|
+
when :failed then
|
37
|
+
'Failure'
|
38
|
+
else
|
39
|
+
'Unknown'
|
33
40
|
end
|
34
41
|
end
|
35
42
|
|
36
43
|
end
|
37
44
|
|
45
|
+
class App < Sinatra::Base
|
38
46
|
|
39
|
-
|
40
|
-
|
47
|
+
set :raise_errors, true
|
48
|
+
enable :methodoverride, :static, :sessions
|
41
49
|
|
42
|
-
|
50
|
+
helpers Sinatra::UrlForHelper, Integrity::Helpers, Integritray::Helpers
|
51
|
+
|
52
|
+
get '/projects.xml' do
|
43
53
|
login_required if params["private"]
|
44
54
|
builder do |xml|
|
45
55
|
@projects = authorized? ? Project.all : Project.all(:public => true)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: integritray
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh French
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2010-
|
14
|
+
date: 2010-02-17 00:00:00 -07:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|