about summary refs log tree commit homepage
path: root/lib/wrongdoc/release.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wrongdoc/release.rb')
-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