hoe-git 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/README.rdoc +14 -7
- data/lib/hoe/git.rb +5 -4
- metadata +5 -4
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -5,18 +5,25 @@
|
|
5
5
|
== Description
|
6
6
|
|
7
7
|
A Hoe plugin for tighter Git integration. This plugin provides a
|
8
|
-
|
9
|
-
expect it'll learn a few more
|
8
|
+
git:tag task to automate release tagging and pushing, a git:changelog
|
9
|
+
task to make release notes easier, and I expect it'll learn a few more
|
10
|
+
tricks in the future.
|
10
11
|
|
11
|
-
See the Hoe::Git module for a few configuration options.
|
12
|
+
See the Hoe::Git module for more docs and a few configuration options.
|
12
13
|
|
13
14
|
== Examples
|
14
15
|
|
15
|
-
|
16
|
-
|
16
|
+
# in your Rakefile
|
17
|
+
Hoe.plugin :git
|
17
18
|
|
18
|
-
|
19
|
-
|
19
|
+
# in your shell
|
20
|
+
$ rake git:changelog
|
21
|
+
|
22
|
+
This will take all the commits since your last release and format 'em
|
23
|
+
nicely for an RDoc changelog. Commits that weren't made by a developer
|
24
|
+
will be attributed.
|
25
|
+
|
26
|
+
$ rake release VERSION=1.0.0
|
20
27
|
|
21
28
|
In addition to the normal RubyForge release process, this will create
|
22
29
|
and push a <tt>v1.0.0</tt> tag.
|
data/lib/hoe/git.rb
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
# attributed.
|
13
13
|
|
14
14
|
module Hoe::Git
|
15
|
-
VERSION = "1.1.
|
15
|
+
VERSION = "1.1.1"
|
16
16
|
|
17
17
|
##
|
18
18
|
# Optional: What do you want at the front of your release tags?
|
@@ -34,9 +34,10 @@ module Hoe::Git
|
|
34
34
|
def define_git_tasks
|
35
35
|
desc "Print the current changelog."
|
36
36
|
task "git:changelog" do
|
37
|
-
tags
|
38
|
-
tag
|
39
|
-
|
37
|
+
tags = `git tag -l '#{git_release_tag_prefix}*'`.split "\n"
|
38
|
+
tag = ENV["FROM"] || tags.last
|
39
|
+
range = [tag, "HEAD"].compact.join ".."
|
40
|
+
cmd = "git log #{range} '--format=tformat:%s|||%cN|||%cE'"
|
40
41
|
|
41
42
|
changes = `#{cmd}`.split("\n").map do |line|
|
42
43
|
msg, author, email = line.split("|||").map { |e| e.empty? ? nil : e }
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Barnette
|
@@ -34,10 +34,11 @@ dependencies:
|
|
34
34
|
version:
|
35
35
|
description: |-
|
36
36
|
A Hoe plugin for tighter Git integration. This plugin provides a
|
37
|
-
|
38
|
-
expect it'll learn a few more
|
37
|
+
git:tag task to automate release tagging and pushing, a git:changelog
|
38
|
+
task to make release notes easier, and I expect it'll learn a few more
|
39
|
+
tricks in the future.
|
39
40
|
|
40
|
-
See the Hoe::Git module for a few configuration options.
|
41
|
+
See the Hoe::Git module for more docs and a few configuration options.
|
41
42
|
email:
|
42
43
|
- jbarnette@rubyforge.org
|
43
44
|
executables: []
|