lib/semmy/tasks/versioning.rb in semmy-0.4.0 vs lib/semmy/tasks/versioning.rb in semmy-1.0.0
- old
+ new
@@ -11,12 +11,30 @@
'from version.')
rewrite_gemspec_version(new_version)
end
+ task 'bump_major' do
+ new_version = VersionString
+ .bump_major(Project.version, config.development_version_suffix)
+
+ Shell.info("Bumping version to #{new_version}.")
+
+ rewrite_gemspec_version(new_version)
+ end
+
task 'bump_minor' do
new_version = VersionString
.bump_minor(Project.version, config.development_version_suffix)
+
+ Shell.info("Bumping version to #{new_version}.")
+
+ rewrite_gemspec_version(new_version)
+ end
+
+ task 'bump_patch_level' do
+ new_version = VersionString
+ .bump_patch_level(Project.version)
Shell.info("Bumping version to #{new_version}.")
rewrite_gemspec_version(new_version)
end