hoe-git 1.1.2 → 1.1.3

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.
Files changed (3) hide show
  1. data/CHANGELOG.rdoc +4 -0
  2. data/lib/hoe/git.rb +8 -5
  3. metadata +2 -2
@@ -1,3 +1,7 @@
1
+ === 1.1.3 / 2009-06-27
2
+
3
+ * Changelog should use author, not committer.
4
+
1
5
  === 1.1.2 / 2009-06-26
2
6
 
3
7
  * Doc cleanups.
@@ -13,7 +13,7 @@ class Hoe #:nodoc:
13
13
  module Git
14
14
 
15
15
  # Duh.
16
- VERSION = "1.1.2"
16
+ VERSION = "1.1.3"
17
17
 
18
18
  # What do you want at the front of your release tags?
19
19
  # [default: <tt>"v"</tt>]
@@ -37,18 +37,21 @@ class Hoe #:nodoc:
37
37
  tags = `git tag -l '#{git_release_tag_prefix}*'`.split "\n"
38
38
  tag = ENV["FROM"] || tags.last
39
39
  range = [tag, "HEAD"].compact.join ".."
40
- cmd = "git log #{range} '--format=tformat:%s|||%cN|||%cE'"
40
+ cmd = "git log #{range} '--format=tformat:%s|||%aN|||%aE'"
41
41
 
42
42
  changes = `#{cmd}`.split("\n").map do |line|
43
43
  msg, author, email = line.split("|||").map { |e| e.empty? ? nil : e }
44
+ developer = self.author.include?(author) ||
45
+ self.email.include?(email)
44
46
 
45
- developer = author.include?(author) || email.include?(email)
46
- change = [msg]
47
- change << "[#{author || email}]" unless developer
47
+ change = [msg]
48
+ change << "[#{author || email}]" unless developer
48
49
 
49
50
  change.join " "
50
51
  end
51
52
 
53
+ next if changes.empty?
54
+
52
55
  puts "=== #{ENV["VERSION"] || 'NEXT'} / #{Time.new.strftime '%Y-%m-%d'}"
53
56
  puts
54
57
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe-git
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Barnette
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-26 00:00:00 -07:00
12
+ date: 2009-06-27 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency