brentd-integrity-growl 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown ADDED
@@ -0,0 +1,46 @@
1
+ Integrity
2
+ =========
3
+
4
+ [Integrity](http://integrityapp.com) is your friendly automated Continuous Integration server.
5
+
6
+ Integrity Growl Notifier
7
+ ===========================
8
+
9
+ This lets Integrity show [Growl](http://growl.info) notifications after each build is made.
10
+
11
+ Setup Instructions
12
+ ==================
13
+
14
+ Just install this gem via `sudo gem install -s http://gems.github.com
15
+ calavera-integrity-growl` and then in your Rackup (ie, `config.ru`) file:
16
+
17
+ require "notifier/growl"
18
+ Integrity::Notifier.register(Integrity::Notifier::Growl)
19
+
20
+ License
21
+ =======
22
+
23
+ (The MIT License)
24
+
25
+ Copyright (c) 2009 David Calavera
26
+
27
+ Permission is hereby granted, free of charge, to any person obtaining
28
+ a copy of this software and associated documentation files (the
29
+ 'Software'), to deal in the Software without restriction, including
30
+ without limitation the rights to use, copy, modify, merge, publish,
31
+ distribute, sublicense, and/or sell copies of the Software, and to
32
+ permit persons to whom the Software is furnished to do so, subject to
33
+ the following conditions:
34
+
35
+ The above copyright notice and this permission notice shall be
36
+ included in all copies or substantial portions of the Software.
37
+
38
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
39
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
40
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
41
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
42
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
43
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
44
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
45
+
46
+ [Integrity]: http://integrityapp.com
@@ -0,0 +1,3 @@
1
+ %p.normal
2
+ %label{ :for => "growl_notifier_addresses" } Addresses
3
+ %input.text#growl_notifier_addresses{ :name => "notifiers[Growl][addresses]", :type => "text", :value => config['addresses'] }
@@ -0,0 +1,38 @@
1
+ require 'rubygems'
2
+ require 'integrity'
3
+ require 'ruby-growl'
4
+
5
+ module Integrity
6
+ class Notifier
7
+ class Growl < Notifier::Base
8
+
9
+ def initialize(build, config = {})
10
+ @growl = ::Growl.new "localhost", "Integrity", ["Integrity build notification"]
11
+ @addresses = config[:addresses].nil? ? [] : config.delete(:addresses).split(/,|\s+/)
12
+ @growl = @addresses.map do |address|
13
+ ::Growl.new address, "Integrity", ["Integrity build notification"]
14
+ end
15
+ super
16
+ end
17
+
18
+ def self.to_haml
19
+ File.read File.dirname(__FILE__) / "config.haml"
20
+ end
21
+
22
+ def deliver!
23
+ @growl.each do |g|
24
+ g.notify "Integrity build notification", short_message, message
25
+ end
26
+ end
27
+
28
+ def message
29
+ @message ||= <<-content
30
+ #{build.project.name}: #{short_message} (at #{build.commited_at} by #{build.commit_author.name})
31
+ Commit Message: '#{build.commit_message}'
32
+ Link: #{build_url}
33
+ content
34
+ end
35
+
36
+ end
37
+ end
38
+ end
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: brentd-integrity-growl
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - David Calavera
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-06-02 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: foca-integrity
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: ruby-growl
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ description: Easily let Integrity show Growl notifications after each build
36
+ email: calavera@apache.org
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files: []
42
+
43
+ files:
44
+ - README.markdown
45
+ - lib/notifier/growl.rb
46
+ - lib/notifier/config.haml
47
+ has_rdoc: false
48
+ homepage: http://integrityapp.com
49
+ post_install_message:
50
+ rdoc_options: []
51
+
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: "0"
59
+ version:
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: "0"
65
+ version:
66
+ requirements: []
67
+
68
+ rubyforge_project:
69
+ rubygems_version: 1.2.0
70
+ signing_key:
71
+ specification_version: 2
72
+ summary: Growl notifier for the Integrity continuous integration server
73
+ test_files: []
74
+