Sha256: f6d69e1b2b9ff3d4b9294796aaf333e2cd4d83abe2a75c17fee5de75fe114607
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
module Semmy module Tasks class ChangelogSections < Base def define namespace 'changelog' do task 'close_section' do new_version = Project.version old_version = VersionString.previous_minor(new_version) homepage = Gemspec.homepage Shell.info("Inserting #{new_version} section " \ "in #{config.changelog_path}.") Files.rewrite(config.changelog_path, Changelog::CloseSection.new(config, new_version: new_version, old_version: old_version, homepage: homepage, date: Date.today)) end task 'add_unreleased_section' do Shell.info('Inserting unreleased section ' \ "in #{config.changelog_path}.") Files.rewrite(config.changelog_path, Changelog::InsertUnreleasedSection.new(config, homepage: Gemspec.homepage)) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
semmy-0.2.0 | lib/semmy/tasks/changelog_sections.rb |