integritray 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/integritray.gemspec +5 -5
- data/lib/integrity/integritray.rb +24 -1
- metadata +7 -7
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
gem.homepage = "http://github.com/jfrench/integritray"
|
11
11
|
gem.authors = ["Josh French", "Justin Smestad", "Gabe Varela"]
|
12
12
|
|
13
|
-
gem.add_dependency 'sinatra', '>= 0.
|
13
|
+
gem.add_dependency 'sinatra', '>= 1.0.0'
|
14
14
|
end
|
15
15
|
Jeweler::GemcutterTasks.new
|
16
16
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.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.5.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Josh French", "Justin Smestad", "Gabe Varela"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-21}
|
13
13
|
s.email = %q{josh@digitalpulp.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
@@ -43,12 +43,12 @@ Gem::Specification.new do |s|
|
|
43
43
|
s.specification_version = 3
|
44
44
|
|
45
45
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
46
|
-
s.add_runtime_dependency(%q<sinatra>, [">= 0.
|
46
|
+
s.add_runtime_dependency(%q<sinatra>, [">= 1.0.0"])
|
47
47
|
else
|
48
|
-
s.add_dependency(%q<sinatra>, [">= 0.
|
48
|
+
s.add_dependency(%q<sinatra>, [">= 1.0.0"])
|
49
49
|
end
|
50
50
|
else
|
51
|
-
s.add_dependency(%q<sinatra>, [">= 0.
|
51
|
+
s.add_dependency(%q<sinatra>, [">= 1.0.0"])
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
@@ -50,7 +50,7 @@ module Integrity
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def protect?
|
53
|
-
|
53
|
+
Integrity.app.respond_to?(:user) && Integrity.app.respond_to?(:pass)
|
54
54
|
end
|
55
55
|
|
56
56
|
end
|
@@ -69,6 +69,29 @@ module Integrity
|
|
69
69
|
login_required if session[:user]
|
70
70
|
end
|
71
71
|
|
72
|
+
|
73
|
+
# RSS per project for Pivotal Pulse
|
74
|
+
get "/:project.rss" do
|
75
|
+
login_required unless current_project.public?
|
76
|
+
builder do |xml|
|
77
|
+
xml.rss(:version => "2.0") do
|
78
|
+
xml.channel do
|
79
|
+
xml.title("Feed for #{current_project.name}")
|
80
|
+
xml.link(project_url(current_project).to_s.gsub(request.script_name, ''))
|
81
|
+
xml.language("en-us")
|
82
|
+
xml.ttl("10")
|
83
|
+
xml.item do
|
84
|
+
xml.title(current_project.last_build.human_status)
|
85
|
+
xml.description(current_project.last_build.output)
|
86
|
+
xml.pubDate(current_project.last_build.commit.committed_at)
|
87
|
+
xml.guid(current_project.last_build.commit.identifier)
|
88
|
+
xml.link(build_url(current_project.last_build).to_s.gsub(request.script_name, ''))
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
72
95
|
get '/projects.xml' do
|
73
96
|
login_required if params["private"]
|
74
97
|
builder do |xml|
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 5
|
8
|
+
- 0
|
9
|
+
version: 0.5.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Josh French
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-04-
|
19
|
+
date: 2010-04-21 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -27,10 +27,10 @@ dependencies:
|
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
segments:
|
30
|
+
- 1
|
31
|
+
- 0
|
30
32
|
- 0
|
31
|
-
|
32
|
-
- 4
|
33
|
-
version: 0.9.4
|
33
|
+
version: 1.0.0
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
36
|
description:
|