Sha256: 6bcfdeb454a326c9e01f12151cd07ef492373da1b87754d68f7e938c0b52a7dd
Contents?: true
Size: 419 Bytes
Versions: 6
Compression:
Stored size: 419 Bytes
Contents
module Semvergen class ChangeLogFile def <<(message) current_change_log = File.exist?(change_log_file) ? File.read(change_log_file) : "" new_change_log = "# Changelog\n\n#{message}" + current_change_log.gsub("# Changelog\n", "") File.open(change_log_file, "w") { |f| f.write new_change_log } end private def change_log_file File.join("CHANGELOG.md") end end end
Version data entries
6 entries across 6 versions & 1 rubygems