From f9bade1e428b924de09228acbd6545ffb3c9c04c Mon Sep 17 00:00:00 2001 From: Li xin Date: Mon, 20 Jul 2015 22:24:10 +0900 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 Signed-off-by: Li Xin --- 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 5b3bbe7..f499739 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.23" - 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.4.2