git-commit-notifier 0.6.1 → 0.6.2

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.1
1
+ 0.6.2
@@ -1,13 +1,19 @@
1
- ignore_merge: false # set to true if you want to ignore empty merge messages
2
- mailinglist: developers@example.com # recipient for the commit mail
1
+ # The recipient for the commit:
2
+ mailinglist: developers@example.com
3
+
4
+ # set to true if you want to ignore empty merge messages
5
+ ignore_merge: false
3
6
 
4
7
  # Optional parameter for the subject-line of the mail
5
8
  # emailprefix: GIT
6
9
 
7
- link_files: none # Decorates files with link to a webview. Possible values: none or gitweb
10
+ # Decorate files with link to a webview. Possible values: none or gitweb
11
+ link_files: none
8
12
 
9
- delivery_method: sendmail # smtp or sendmail
13
+ # select the delivery method: smtp or sendmail
14
+ delivery_method: sendmail
10
15
 
16
+ # settings for the smtp server
11
17
  smtp_server:
12
18
  address: localhost
13
19
  port: 25
@@ -17,10 +23,13 @@ smtp_server:
17
23
  authentication: plain
18
24
  enable_tls: false
19
25
 
26
+ # settings for sendmail
20
27
  sendmail_options:
21
28
  location: /usr/sbin/sendmail
22
29
  arguments:
23
30
 
31
+ # If link_files is set to "gitweb", you need to configure the path to your gitweb
32
+ # instance and the project name.
24
33
  gitweb:
25
34
  path: http://developerserver/path_to_gitweb
26
35
  project: test.git
@@ -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.1"
8
+ s.version = "0.6.2"
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-29}
12
+ s.date = %q{2010-03-30}
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}
@@ -112,7 +112,7 @@ class DiffToHtml
112
112
  file_name = @current_file_name
113
113
 
114
114
  if (@config["link_files"] && @config["link_files"] == "gitweb" && @config["gitweb"])
115
- file_name = "<a href='#{@config['gitweb']['path']}/gitweb?p=#{@config['gitweb']['project']};f=#{file_name};hb=head'>#{file_name}</a>"
115
+ file_name = "<a href='#{@config['gitweb']['path']}?p=#{@config['gitweb']['project']};f=#{file_name};hb=HEAD'>#{file_name}</a>"
116
116
  end
117
117
 
118
118
  header = "#{op} #{binary}file #{file_name}"
@@ -109,7 +109,7 @@ class DiffToHtmlTest < Test::Unit::TestCase
109
109
 
110
110
  diff = DiffToHtml.new(nil, config)
111
111
  diff.current_file_name = "file/to/test.yml"
112
- assert_equal "<h2>Changed file <a href='http://developerserver/path_to_gitweb/gitweb?p=test.git;f=file/to/test.yml;hb=head'>file/to/test.yml</a></h2>\n", diff.operation_description
112
+ assert_equal "<h2>Changed file <a href='http://developerserver/path_to_gitweb?p=test.git;f=file/to/test.yml;hb=HEAD'>file/to/test.yml</a></h2>\n", diff.operation_description
113
113
 
114
114
  end
115
115
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 1
9
- version: 0.6.1
8
+ - 2
9
+ version: 0.6.2
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-29 00:00:00 +02:00
17
+ date: 2010-03-30 00:00:00 +02:00
18
18
  default_executable: git-commit-notifier
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency