wrongdoc 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- header, subject, body = `git cat-file tag #{tag}`.split(/\n\n/, 3)
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
- tagger = header.grep(/\Atagger /).first
23
- body ||= "initial"
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{^tagger ([^<]+)}.match(tagger)[1].strip,
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
@@ -5,7 +5,7 @@ if (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby") && \
5
5
  end
6
6
 
7
7
  # we never want the rdoc 2.5.x from Ruby 1.9.2
8
- gem 'rdoc', '~> 3.3'
8
+ gem 'rdoc', '~> 3.9.4'
9
9
  require 'rdoc/rdoc'
10
10
 
11
11
  class Wrongdoc::Rdoc
@@ -23,5 +23,5 @@ Gem::Specification.new do |s|
23
23
  s.rubyforge_project = %q{rainbows}
24
24
  s.add_dependency(%q<nokogiri>, ['~> 1.5'])
25
25
  s.add_dependency(%q<tidy_ffi>, ['~> 0.1.3'])
26
- s.add_dependency(%q<rdoc>, ['~> 3.9'])
26
+ s.add_dependency(%q<rdoc>, ['~> 3.9.4'])
27
27
  end
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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
- - 0
10
- version: 1.6.0
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-08-19 00:00:00 Z
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: 21
59
+ hash: 43
60
60
  segments:
61
61
  - 3
62
62
  - 9
63
- version: "3.9"
63
+ - 4
64
+ version: 3.9.4
64
65
  type: :runtime
65
66
  version_requirements: *id003
66
67
  description: |-