From 2c32d889b64510e1547fa85407beb65c2c3ee89a Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Wed, 14 May 2014 09:21:45 -0400 Subject: [PATCH] gemspec: don't force the use of gem-private_key.pem This will have security implications but it doesn't affect core functionality and allows the build to complete when this certificate is not available. Signed-off-by: Mark Asselstine --- net-ssh-multi.gemspec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net-ssh-multi.gemspec b/net-ssh-multi.gemspec index 2232ad1..f595779 100644 --- a/net-ssh-multi.gemspec +++ b/net-ssh-multi.gemspec @@ -48,7 +48,9 @@ Gem::Specification.new do |s| s.require_paths = ["lib"] s.rubyforge_project = "net-ssh-multi" s.rubygems_version = "1.8.25" - s.signing_key = "/mnt/gem/gem-private_key.pem" + if File.exists?("/mnt/gem/gem-private_key.pem") + s.signing_key = "/mnt/gem/gem-private_key.pem" + end s.summary = "Control multiple Net::SSH connections via a single interface." if s.respond_to? :specification_version then -- 1.8.3.2