wrongdoc 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wrongdoc/history.rb +9 -5
- data/lib/wrongdoc/rdoc.rb +1 -1
- data/wrongdoc.gemspec +1 -1
- metadata +7 -6
data/lib/wrongdoc/history.rb
CHANGED
@@ -17,19 +17,23 @@ module Wrongdoc::History
|
|
17
17
|
@tags ||= `git tag -l`.split(/\n/).map do |tag|
|
18
18
|
next if tag == "v0.0.0"
|
19
19
|
if %r{\Av[\d\.]+} =~ tag
|
20
|
-
|
20
|
+
type = `git cat-file -t #{tag}`.chomp
|
21
|
+
user_type = { "tag" => "tagger", "commit" => "committer" }[type]
|
22
|
+
user_type or abort "unable to determine what to do with #{type}=#{tag}"
|
23
|
+
header, subject, body = `git cat-file #{type} #{tag}`.split(/\n\n/, 3)
|
24
|
+
body ||= "initial" unless old_summaries.include?(tag)
|
21
25
|
header = header.split(/\n/)
|
22
|
-
|
23
|
-
|
26
|
+
|
27
|
+
tagger = header.grep(/\A#{user_type} /).first
|
24
28
|
time = Time.at(tagger.split(/ /)[-2].to_i).utc
|
25
29
|
{
|
26
30
|
:time => time.strftime(timefmt),
|
27
31
|
:ruby_time => time,
|
28
|
-
:tagger_name => %r{
|
32
|
+
:tagger_name => %r{^#{user_type} ([^<]+)}.match(tagger)[1].strip,
|
29
33
|
:tagger_email => %r{<([^>]+)>}.match(tagger)[1].strip,
|
30
34
|
:id => `git rev-parse refs/tags/#{tag}`.chomp!,
|
31
35
|
:tag => tag,
|
32
|
-
:subject => subject,
|
36
|
+
:subject => subject.strip,
|
33
37
|
:body => (old = old_summaries[tag]) ? "#{old}\n#{body}" : body,
|
34
38
|
}
|
35
39
|
end
|
data/lib/wrongdoc/rdoc.rb
CHANGED
data/wrongdoc.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wrongdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 1.6.
|
9
|
+
- 1
|
10
|
+
version: 1.6.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- wrongdoc hackers
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-10 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: nokogiri
|
@@ -56,11 +56,12 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - ~>
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
hash:
|
59
|
+
hash: 43
|
60
60
|
segments:
|
61
61
|
- 3
|
62
62
|
- 9
|
63
|
-
|
63
|
+
- 4
|
64
|
+
version: 3.9.4
|
64
65
|
type: :runtime
|
65
66
|
version_requirements: *id003
|
66
67
|
description: |-
|