sr-integrity-irc 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +11 -0
- data/integrity-irc.gemspec +22 -0
- data/lib/integrity/notifier/irc.rb +33 -0
- metadata +7 -4
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "integrity-irc"
|
3
|
+
s.rubyforge_project = "integrity"
|
4
|
+
s.version = "0.0.6"
|
5
|
+
s.date = "2009-03-18"
|
6
|
+
s.summary = "IRC notifier for the Integrity continuous integration server"
|
7
|
+
s.summary = "IRC notifier for the Integrity continuous integration server"
|
8
|
+
s.homepage = "http://integrityapp.com"
|
9
|
+
s.email = "simon@rozet.name"
|
10
|
+
s.authors = ["Simon Rozet", "Harry Vangberg"]
|
11
|
+
s.has_rdoc = false
|
12
|
+
s.files = %w[
|
13
|
+
README.markdown
|
14
|
+
Rakefile
|
15
|
+
integrity-irc.gemspec
|
16
|
+
lib/integrity/notifier/irc.rb
|
17
|
+
test/irc_test.rb
|
18
|
+
]
|
19
|
+
s.test_files = %w[test/irc_test.rb]
|
20
|
+
s.add_dependency "integrity"
|
21
|
+
s.add_dependency "shout-bot"
|
22
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require "shout-bot"
|
2
|
+
|
3
|
+
module Integrity
|
4
|
+
class Notifier
|
5
|
+
class IRC < Notifier::Base
|
6
|
+
attr_reader :uri
|
7
|
+
|
8
|
+
def self.to_haml
|
9
|
+
<<-HAML
|
10
|
+
%p.normal
|
11
|
+
%label{ :for => "irc_notifier_uri" } Send to
|
12
|
+
%input.text#irc_notifier_uri{ |
|
13
|
+
:name => "notifiers[IRC][uri]", |
|
14
|
+
:type => "text", |
|
15
|
+
:value => config["uri"] || |
|
16
|
+
"irc://IntegrityBot@irc.freenode.net:6667/#test" } |
|
17
|
+
HAML
|
18
|
+
end
|
19
|
+
|
20
|
+
def initialize(build, config={})
|
21
|
+
@uri = config.delete("uri")
|
22
|
+
super
|
23
|
+
end
|
24
|
+
|
25
|
+
def deliver!
|
26
|
+
ShoutBot.shout(uri) do |channel|
|
27
|
+
channel.say "#{build.project.name}: #{short_message}"
|
28
|
+
channel.say commit_url
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sr-integrity-irc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Rozet
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-03-
|
13
|
+
date: 2009-03-18 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -43,7 +43,10 @@ extra_rdoc_files: []
|
|
43
43
|
|
44
44
|
files:
|
45
45
|
- README.markdown
|
46
|
-
-
|
46
|
+
- Rakefile
|
47
|
+
- integrity-irc.gemspec
|
48
|
+
- lib/integrity/notifier/irc.rb
|
49
|
+
- test/irc_test.rb
|
47
50
|
has_rdoc: false
|
48
51
|
homepage: http://integrityapp.com
|
49
52
|
post_install_message:
|
@@ -65,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
68
|
version:
|
66
69
|
requirements: []
|
67
70
|
|
68
|
-
rubyforge_project:
|
71
|
+
rubyforge_project: integrity
|
69
72
|
rubygems_version: 1.2.0
|
70
73
|
signing_key:
|
71
74
|
specification_version: 2
|