git-commit-notifier 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/config/git-notifier-config.yml.sample +1 -1
- data/git-commit-notifier.gemspec +2 -2
- data/lib/diff_to_html.rb +8 -1
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.7.0
|
data/git-commit-notifier.gemspec
CHANGED
|
@@ -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.
|
|
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-
|
|
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>
|
|
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])} <#{commit_info[:email]}>\n</div>"
|
metadata
CHANGED
|
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
|
4
4
|
prerelease: false
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
version: 0.
|
|
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-
|
|
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
|