lib/deploy-context/deploy.rb in deploy-context-2.1.30 vs lib/deploy-context/deploy.rb in deploy-context-2.1.30.1.gdf915e9

- old
+ new

@@ -27,26 +27,26 @@ def check_folder(folder) FileUtils.mkdir_p(context_folder) unless present_localy? end def version - puts "Getting version info for #{context_folder} and version should be #{GVB.version}" - Dir.chdir(context_folder) - Gem::Version.new(GVB.version) + git_build(self) + puts "Getting version info for #{context_folder} and version should be #{GitVersionBump.version}" + Gem::Version.new(GitVersionBump.version) end def cycle ruby_cycle(self) end def test_context_successful? puts "Check if #{context_name} is install #{version}" if gem_installed?(self) - puts "Test context was successfully install on version #{version}" + puts "Test context #{context_name} was successfully install on version #{version}" true else - abort "Test context has failed to install #{version}" + abort "Test context #{context_name} has failed to install #{version}" end end def build ruby_build(self) @@ -70,18 +70,18 @@ clean_folder(self, 'contexts') ruby_clean(self) end def patch_bump - git_bump(self, 'patch') + GitVersionBump.tag_version "#{GitVersionBump.major_version}.#{GitVersionBump.minor_version}.#{GitVersionBump.patch_version+1}" end def minor_bump - git_bump(self, 'minor') + GitVersionBump.tag_version "#{GitVersionBump.major_version}.#{GitVersionBump.minor_version+1}.0" end def major_bump - git_bump(self, 'major') + GitVersionBump.tag_version "#{GitVersionBump.major_version + 1}.0.0" end def wait_until_release_available wait_until_release_available unless is_present_publicly? end