Sha256: 69283e40cb24159d1a754319001b9062d2066c9d303a6c3fffe8c4377de54150
Contents?: true
Size: 646 Bytes
Versions: 4
Compression:
Stored size: 646 Bytes
Contents
# helper method for generating the ChangeLog in RDoc format atomically module Wrongdoc::Changelog include Wrongdoc::History def changelog fp = Tempfile.new('ChangeLog', '.') fp.write "ChangeLog from #@cgit_uri" cmd = %w(git log) if @changelog_start && tags[0] range = "#@changelog_start..#{tags[0][:tag]}" fp.write(" (#{range})") cmd << range end fp.write("\n\n") prefix = " " IO.popen(cmd.join(' ')) do |io| io.each { |line| fp.write prefix fp.write line } end fp.chmod(0666 & ~File.umask) File.rename(fp.path, 'ChangeLog') fp.close! end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wrongdoc-1.8.1 | lib/wrongdoc/changelog.rb |
wrongdoc-1.8.0 | lib/wrongdoc/changelog.rb |
wrongdoc-1.7.0 | lib/wrongdoc/changelog.rb |
wrongdoc-1.6.2 | lib/wrongdoc/changelog.rb |