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 CHANGED
@@ -29,6 +29,7 @@ h1. Requirements
29
29
  * diff/lcs gem
30
30
  * SMTP server or sendmail compatible mailer
31
31
  * mocha, hpricot gems for testing
32
+ * TamTam for stylesheet inlining. GMail needs this.
32
33
 
33
34
  h1. Installing and Configuring
34
35
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.5.0
@@ -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.3.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-25}
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
- result = diff2html.result
43
+ diffresult = diff2html.result
44
44
 
45
45
  if (@config["ignore_merge"])
46
- result = result.reject {|result|
46
+ diffresult = diffresult.reject {|result|
47
47
  !result[:commit_info][:merge].nil?
48
48
  }
49
49
  end
50
50
 
51
- result.reverse.each_with_index do |result, i|
52
- nr = number(result.size, i)
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
- - 3
7
+ - 5
8
8
  - 0
9
- version: 0.3.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-25 00:00:00 +01:00
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