Skip to content

Commit

Permalink
Setting cert if no key prevents submission to rubygems
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Oct 25, 2021
1 parent 04bfe31 commit 0708e38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions capybara.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ Gem::Specification.new do |s|
s.add_development_dependency('rubysl')
end

s.signing_key = 'gem-private_key.pem' if File.exist?('gem-private_key.pem')
s.cert_chain = ['gem-public_cert.pem']
if File.exist?('gem-private_key.pem')
s.signing_key = 'gem-private_key.pem'
s.cert_chain = ['gem-public_cert.pem']
end
end

0 comments on commit 0708e38

Please sign in to comment.