about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-27 22:06:47 +0000
committerEric Wong <normalperson@yhbt.net>2011-01-27 22:06:47 +0000
commitbb99b47f74e1d191f88713911adab6b93af787ba (patch)
tree565e70ad28b7c571fccb136e8c712220a07a6f9e
parentd3b65fdbdf1361ed824a8e5086ee980040d2301d (diff)
downloadwrongdoc-bb99b47f74e1d191f88713911adab6b93af787ba.tar.gz
add subject to release_notes output
It's kinda important
-rw-r--r--lib/wrongdoc/release.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/wrongdoc/release.rb b/lib/wrongdoc/release.rb
index edf5c02..8101206 100644
--- a/lib/wrongdoc/release.rb
+++ b/lib/wrongdoc/release.rb
@@ -33,13 +33,15 @@ module Wrongdoc::Release
 
   def self.notes(io, opts)
     spec = Gem::Specification.load(Dir['*.gemspec'][0])
+    _, subject, body = `git cat-file tag v#{spec.version}`.split(/\n\n/, 3)
+    io.puts subject
+    io.puts
     io.puts spec.description.strip
     io.puts
     io.puts "* #{spec.homepage}"
     io.puts "* #{spec.email}"
     io.puts "* #{opts[:git_url] || opts[:cgit_url]}"
 
-    _, _, body = `git cat-file tag v#{spec.version}`.split(/\n\n/, 3)
     io.print "\nChanges:\n\n"
     io.puts body
   end