Sha256: d132708452365e9e82f4dd815fcc40b2b7fbf7e3d8c2d30413c35ee996b26847
Contents?: true
Size: 1.81 KB
Versions: 1
Compression:
Stored size: 1.81 KB
Contents
module Semmy module Tasks class ChangelogSections < Base def define namespace 'changelog' do task 'close_section' do version = Project.version homepage = Gemspec.homepage Shell.info("Inserting #{version} section " \ "in #{config.changelog_path}.") Files.rewrite(config.changelog_path, Changelog::CloseSection.new(config, version: version, homepage: homepage, date: Date.today)) end task 'update_for_minor' do Shell.info('Updating changelog ' \ "in #{config.changelog_path}.") Files.rewrite(config.changelog_path, Changelog::UpdateForMinor.new(config, version: Project.version, homepage: Gemspec.homepage)) end task 'replace_minor_stable_branch_with_major_stable_branch' do Shell.info('Updating changelog ' \ "in #{config.changelog_path}.") Files.rewrite(config.changelog_path, Changelog::ReplaceMinorStableBranchWithMajorStableBranch .new(config, version: Project.version)) end task 'insert_unreleased_section' do Shell.info('Inserting unreleased changes header ' \ "in #{config.changelog_path}.") Files.rewrite(config.changelog_path, Changelog::InsertUnreleasedSection.new(config)) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
semmy-1.0.0 | lib/semmy/tasks/changelog_sections.rb |