git-commit-notifier 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -22,16 +22,12 @@ Example email:
22
22
 
23
23
  !http://img171.imageshack.us/img171/954/gitcommitnotifieremailpq3.png!
24
24
 
25
- h1. Requirements
25
+ h2. Requirements
26
26
 
27
27
  * Ruby
28
28
  * RubyGems
29
- * diff/lcs gem
30
- * SMTP server or sendmail compatible mailer
31
- * mocha, hpricot gems for testing
32
- * TamTam for stylesheet inlining. GMail needs this.
33
29
 
34
- h1. Installing and Configuring
30
+ h2. Installing and Configuring
35
31
 
36
32
  Install the gem:
37
33
 
@@ -46,8 +42,18 @@ git-commit-notifier path_to_config.yml
46
42
  </pre>
47
43
  (Don't forget to make that file executable.)
48
44
 
49
- An example for the config file can be found in <a href="http://github.com/bodo/git-commit-notifier/blob/master/config/git-notifier-config.yml.sample">config/git-notifier-config.yml.sample</a>.
45
+ An example for the config file can be found in <a href="http://github.com/bitboxer/git-commit-notifier/blob/master/config/git-notifier-config.yml.sample">config/git-notifier-config.yml.sample</a>.
50
46
 
51
- h1. License
47
+ h2. Note on Patches/Pull Requests
48
+
49
+ * Fork the project.
50
+ * Make your feature addition or bug fix.
51
+ * Add tests for it. This is important so I don't break it in a
52
+ future version unintentionally.
53
+ * Commit, do not mess with rakefile, version, or history.
54
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
55
+ * Send me a pull request. Bonus points for topic branches.
52
56
 
53
- MIT License, see the file LICENSE.
57
+ h2. License
58
+
59
+ MIT License, see the file LICENSE.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.1
1
+ 0.7.2
@@ -4,11 +4,17 @@ THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
4
4
  $:.unshift File.join(File.dirname(THIS_FILE), "../lib")
5
5
  require "commit_hook"
6
6
 
7
- if ARGV.length == 0
7
+ case ARGV.length
8
+ when 0
8
9
  CommitHook.show_error("You have to add a path to the config file for git-commit-notifier")
9
- elsif ARGV.length == 1
10
- param = STDIN.gets.strip.split
11
- CommitHook.run ARGV[0], param[0], param[1], param[2]
10
+ puts "Usage: git-commit-notifier config-script [oldrev newrev [ref]]"
11
+ when 1
12
+ oldrev, newrev, ref = STDIN.gets.strip.split
13
+ CommitHook.run ARGV[0], oldrev, newrev, ref
14
+ when 2
15
+ CommitHook.run ARGV[0], ARGV[1], ARGV[1], ""
16
+ when 3
17
+ CommitHook.run ARGV[0], ARGV[1], ARGV[2], ""
12
18
  else
13
- CommitHook.run ARGV[0], ARGV[1], ARGV[2]
19
+ CommitHook.run ARGV[0], ARGV[1], ARGV[2], ARGV[3]
14
20
  end
@@ -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.7.1"
8
+ s.version = "0.7.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-04-15}
12
+ s.date = %q{2010-05-08}
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}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 1
9
- version: 0.7.1
8
+ - 2
9
+ version: 0.7.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-04-15 00:00:00 +02:00
17
+ date: 2010-05-08 00:00:00 +02:00
18
18
  default_executable: git-commit-notifier
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency