Skip to content
Browse files

allow no signature

  • Loading branch information...
1 parent 6c18e76 commit 202db767ea53e29e211828de4d5daddfe128382f @grosser committed Mar 22, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 bundler-organization_audit.gemspec
View
9 bundler-organization_audit.gemspec
@@ -9,8 +9,13 @@ Gem::Specification.new name, Bundler::OrganizationAudit::VERSION do |s|
s.homepage = "http://github.com/grosser/#{name}"
s.files = `git ls-files`.split("\n")
s.license = "MIT"
- s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem")
+ key = File.expand_path("~/.ssh/gem-private_key.pem")
+ if File.exist?(key)
+ s.signing_key = key
+ s.cert_chain = ["gem-public_cert.pem"]
+ else
+ puts "No signature"
+ end
s.executables = ["bundle-organization-audit"]
- s.cert_chain = ["gem-public_cert.pem"]
s.add_runtime_dependency "json"
end

0 comments on commit 202db76

Please sign in to comment.
Something went wrong with that request. Please try again.