Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
validate that the gem build command creates the correct gem version.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Apr 11, 2016
1 parent 4b8d03c commit b47668e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/capsulecd/ruby/ruby_engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ def build_step
unless external.value.success?
fail CapsuleCD::Error::BuildPackageFailed, 'gem build failed. Check gemspec file and dependencies'
end
unless File.exist?(@source_git_local_path + "/#{gemspec_data.name}-#{next_version.to_s}.gem")
fail CapsuleCD::Error::BuildPackageFailed, "gem build failed. #{gemspec_data.name}-#{next_version.to_s}.gem not found"
end
end
end

Expand Down

0 comments on commit b47668e

Please sign in to comment.