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 CHANGED
@@ -3,4 +3,5 @@
3
3
  coverage
4
4
  rdoc
5
5
  pkg
6
- *.log
6
+ *.log
7
+ .idea/
data/CHANGELOG CHANGED
@@ -1,6 +1,2 @@
1
- = 0.2.2
2
- Invoke authentication on private projects [Gabe Varela]
3
- = 0.2.0
4
- Updates for compatibility with latest Integrity [Smestad]
5
1
  = 0.1.1
6
2
  Fix build status when project is pending [Jonas Nicklas]
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.2.2
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.2.1"
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-01-06}
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
- when :success, :failed then 'Sleeping'
23
- when :pending then 'Building'
24
- else 'Sleeping'
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
- when :success, :pending then 'Success'
31
- when :failed then 'Failure'
32
- else 'Unknown'
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
- def self.registered(app)
40
- app.helpers Integritray::Helpers
47
+ set :raise_errors, true
48
+ enable :methodoverride, :static, :sessions
41
49
 
42
- app.get '/projects.xml' do
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.2.2
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-01-15 00:00:00 -05:00
14
+ date: 2010-02-17 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency