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.
- data/CHANGELOG.rdoc +4 -0
- data/lib/hoe/git.rb +8 -5
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
data/lib/hoe/git.rb
CHANGED
@@ -13,7 +13,7 @@ class Hoe #:nodoc:
|
|
13
13
|
module Git
|
14
14
|
|
15
15
|
# Duh.
|
16
|
-
VERSION = "1.1.
|
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|||%
|
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
|
-
|
46
|
-
change
|
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.
|
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-
|
12
|
+
date: 2009-06-27 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|