lib/semmy/tasks/changelog_sections.rb in semmy-0.3.0 vs lib/semmy/tasks/changelog_sections.rb in semmy-0.4.0
- old
+ new
@@ -2,31 +2,30 @@
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)
+ version = Project.version
homepage = Gemspec.homepage
- Shell.info("Inserting #{new_version} section " \
+ Shell.info("Inserting #{version} section " \
"in #{config.changelog_path}.")
Files.rewrite(config.changelog_path,
Changelog::CloseSection.new(config,
- new_version: new_version,
- old_version: old_version,
+ version: version,
homepage: homepage,
date: Date.today))
end
- task 'add_unreleased_section' do
- Shell.info('Inserting unreleased section ' \
+ task 'update_for_minor' do
+ Shell.info('Updating changelog ' \
"in #{config.changelog_path}.")
Files.rewrite(config.changelog_path,
- Changelog::InsertUnreleasedSection.new(config,
- homepage: Gemspec.homepage))
+ Changelog::UpdateForMinor.new(config,
+ version: Project.version,
+ homepage: Gemspec.homepage))
end
end
end
end
end