git-commit-notifier 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +1 -0
- data/VERSION +1 -1
- data/git-commit-notifier.gemspec +2 -2
- data/lib/commit_hook.rb +4 -4
- metadata +3 -3
data/README.textile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.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.5.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-
|
12
|
+
s.date = %q{2010-03-26}
|
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/commit_hook.rb
CHANGED
@@ -40,16 +40,16 @@ class CommitHook
|
|
40
40
|
diff2html = DiffToHtml.new(Dir.pwd)
|
41
41
|
diff2html.diff_between_revisions rev1, rev2, prefix, ref_name
|
42
42
|
|
43
|
-
|
43
|
+
diffresult = diff2html.result
|
44
44
|
|
45
45
|
if (@config["ignore_merge"])
|
46
|
-
|
46
|
+
diffresult = diffresult.reject {|result|
|
47
47
|
!result[:commit_info][:merge].nil?
|
48
48
|
}
|
49
49
|
end
|
50
50
|
|
51
|
-
|
52
|
-
nr = number(
|
51
|
+
diffresult.reverse.each_with_index do |result, i|
|
52
|
+
nr = number(diffresult.size, i)
|
53
53
|
emailer = Emailer.new @config, project_path, recipient, result[:commit_info][:email], result[:commit_info][:author],
|
54
54
|
"[#{prefix}#{branch_name}]#{nr} #{result[:commit_info][:message]}", result[:text_content], result[:html_content], rev1, rev2, ref_name
|
55
55
|
emailer.send
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 5
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.5.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-
|
17
|
+
date: 2010-03-26 00:00:00 +01:00
|
18
18
|
default_executable: git-commit-notifier
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|