Sha256: 3ac258ad7f00cab3b8443b037aa562d090f3ed5f8c2f38b103e92ec315826ba1
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 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_version(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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
semmy-0.3.0 | lib/semmy/tasks/changelog_sections.rb |
semmy-0.2.1 | lib/semmy/tasks/changelog_sections.rb |