lib/semmy/tasks/changelog_sections.rb in semmy-0.4.0 vs lib/semmy/tasks/changelog_sections.rb in semmy-1.0.0

- old
+ new

@@ -24,9 +24,26 @@ 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