hukl-integrity-jabber 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/notifier/config.haml +1 -1
- data/lib/notifier/jabber.rb +3 -4
- metadata +2 -2
data/lib/notifier/config.haml
CHANGED
@@ -7,4 +7,4 @@
|
|
7
7
|
- ["user", "pass", "host", "port"].each do |field|
|
8
8
|
%p.normal
|
9
9
|
%label{ :for => "jabber_notifier_#{field}" }= field.upcase
|
10
|
-
%input.text{ :name => "notifiers[Jabber][#{field}]", :id => "jabber_notifier_#{field}"
|
10
|
+
%input.text{ :name => "notifiers[Jabber][#{field}]", :id => "jabber_notifier_#{field}", :type => "text", :value => config["#{field}"] }
|
data/lib/notifier/jabber.rb
CHANGED
@@ -13,7 +13,7 @@ module Integrity
|
|
13
13
|
|
14
14
|
def initialize(build, config = {})
|
15
15
|
host = config["host"].blank? ? nil : config.delete("host")
|
16
|
-
|
16
|
+
port = config["port"].blank? ? 5222 : config.delete("port")
|
17
17
|
@server = ::Jabber::Simple.new(config.delete("user"), config.delete("pass"), nil, "Available", host, port)
|
18
18
|
sleep 4
|
19
19
|
@recipients = config["recipients"].nil? ? [] : config.delete("recipients").split(/\s+/)
|
@@ -28,11 +28,10 @@ module Integrity
|
|
28
28
|
|
29
29
|
def message
|
30
30
|
@message ||= <<-content
|
31
|
-
#{
|
31
|
+
#{commit.project.name}: #{short_message} (#{commit.committed_at} by #{commit.author.name})
|
32
32
|
Message: #{commit.message}
|
33
|
-
Link: #{
|
33
|
+
Link: #{commit_url}
|
34
34
|
content
|
35
|
-
|
36
35
|
end
|
37
36
|
end
|
38
37
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hukl-integrity-jabber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pier-Hugues Pellerin
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-07-14 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|