We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbfa187 commit 1c99977Copy full SHA for 1c99977
version_gem.gemspec
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
12
# and securely certify them independently via alternate package management systems.
13
# Ref: https://gitlab.com/oauth-xx/version_gem/-/issues/3
14
# Hence, only enable signing if the cert_file is present.
15
+ # See CONTRIBUTING.md
16
cert_file = ENV.fetch("GEM_CERT_PATH", "certs/#{ENV.fetch("GEM_CERT_USER", ENV["USER"])}.pem")
17
if cert_file && File.exist?(File.join(__dir__, cert_file))
18
spec.cert_chain = [ENV.fetch("GEM_CERT_PATH", "certs/#{ENV.fetch("GEM_CERT_USER", ENV["USER"])}.pem")]
0 commit comments