git-commit-notifier 0.6.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2
1
+ 0.7.0
@@ -26,7 +26,7 @@ smtp_server:
26
26
  # settings for sendmail
27
27
  sendmail_options:
28
28
  location: /usr/sbin/sendmail
29
- arguments:
29
+ arguments: -i -t
30
30
 
31
31
  # If link_files is set to "gitweb", you need to configure the path to your gitweb
32
32
  # instance and the project name.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{git-commit-notifier}
8
- s.version = "0.6.2"
8
+ s.version = "0.7.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bodo Tasche"]
12
- s.date = %q{2010-03-30}
12
+ s.date = %q{2010-04-15}
13
13
  s.default_executable = %q{git-commit-notifier}
14
14
  s.description = %q{This git commit notifier sends html mails with nice diffs for every changed file.}
15
15
  s.email = %q{bodo@wannawork.de}
data/lib/diff_to_html.rb CHANGED
@@ -294,7 +294,14 @@ class DiffToHtml
294
294
 
295
295
  title = "<div class=\"title\">"
296
296
  title += "<strong>Message:</strong> #{message_array_as_html commit_info[:message]}<br />\n"
297
- title += "<strong>Commit:</strong> #{commit_info[:commit]}<br />\n"
297
+ title += "<strong>Commit:</strong> "
298
+
299
+ if (@config["link_files"] && @config["link_files"] == "gitweb" && @config["gitweb"])
300
+ title += "<a href='#{@config['gitweb']['path']}?p=#{@config['gitweb']['project']};a=commitdiff;h=#{commit_info[:commit]}'>#{commit_info[:commit]}</a>"
301
+ else
302
+ title += " #{commit_info[:commit]}<br />\n"
303
+ end
304
+
298
305
  title += "<strong>Branch:</strong> #{branch}\n<br />" unless branch =~ /\/head/
299
306
  title += "<strong>Date:</strong> #{CGI.escapeHTML commit_info[:date]}\n<br />"
300
307
  title += "<strong>Author:</strong> #{CGI.escapeHTML(commit_info[:author])} &lt;#{commit_info[:email]}&gt;\n</div>"
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 6
8
- - 2
9
- version: 0.6.2
7
+ - 7
8
+ - 0
9
+ version: 0.7.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bodo Tasche
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-30 00:00:00 +02:00
17
+ date: 2010-04-15 00:00:00 +02:00
18
18
  default_executable: git-commit-notifier
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency