hookers 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hookers/changelog/changelogger.rb +9 -6
- data/lib/hookers/version.rb +1 -1
- metadata +6 -6
@@ -14,15 +14,18 @@ module Hookers
|
|
14
14
|
to = options[:to] || "HEAD"
|
15
15
|
lines = History.between(from, to)
|
16
16
|
parser = Parser.new(@project)
|
17
|
-
commits = lines.map { |e| parser.parse(e) }.flatten
|
17
|
+
commits = lines.map { |e| parser.parse(e) }.flatten
|
18
18
|
|
19
19
|
output = StringIO.new
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
output.puts "\n
|
24
|
-
commits.
|
25
|
-
output.puts "
|
21
|
+
types = Hash[commits.group_by(&:type).map { |type, commits| [type, commits.group_by(&:identifier)] }]
|
22
|
+
types.each_pair do |type, commits|
|
23
|
+
output.puts "\n*** #{type}S ***"
|
24
|
+
commits.each_pair do |identifier, commits|
|
25
|
+
output.puts "\n * #{identifier}: - #{commits.first.uri}"
|
26
|
+
commits.each do |affected|
|
27
|
+
output.puts " - #{affected.commit.message} - #{affected.commit.uri}"
|
28
|
+
end
|
26
29
|
end
|
27
30
|
end
|
28
31
|
|
data/lib/hookers/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hookers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-08-08 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: slop
|
17
|
-
requirement: &
|
17
|
+
requirement: &70364749722500 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '2.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70364749722500
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rest-client
|
28
|
-
requirement: &
|
28
|
+
requirement: &70364749720200 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70364749720200
|
37
37
|
description: Contains default hooks files to integrate git with pivotal tracker and
|
38
38
|
change log generator
|
39
39
|
email:
|