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.
@@ -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}" :value => config["#{field}"], :type => "text", :value => config["#{field}"] }
10
+ %input.text{ :name => "notifiers[Jabber][#{field}]", :id => "jabber_notifier_#{field}", :type => "text", :value => config["#{field}"] }
@@ -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
- post = config["port"].blank? ? 5222 : config.delete("port")
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
- #{build.project.name}: #{short_message} (#{commit.committed_at} by #{commit.author.name})
31
+ #{commit.project.name}: #{short_message} (#{commit.committed_at} by #{commit.author.name})
32
32
  Message: #{commit.message}
33
- Link: #{build_url}
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
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-04-19 00:00:00 -07:00
12
+ date: 2009-07-14 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency