# File lib/wrongdoc/release.rb, line 34 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]}" io.print "\nChanges:\n\n" io.puts body end