Skip to content

Commit

Permalink
minor: adding file check to gem signing
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Black committed Apr 10, 2013
1 parent 8d52a17 commit 4746ddf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions bson.gemspec
Expand Up @@ -10,8 +10,12 @@ Gem::Specification.new do |s|
s.rubyforge_project = 'bson' s.rubyforge_project = 'bson'
s.license = 'Apache License Version 2.0' s.license = 'Apache License Version 2.0'


s.signing_key = 'gem-private_key.pem' if File.exists?('gem-private_key.pem')
s.cert_chain = ['gem-public_cert.pem'] s.signing_key = 'gem-private_key.pem'
s.cert_chain = ['gem-public_cert.pem']
else
warn 'Warning: No private key present, creating unsigned gem.'
end


s.files = ['bson.gemspec', 'LICENSE', 'VERSION'] s.files = ['bson.gemspec', 'LICENSE', 'VERSION']
s.files += ['bin/b2json', 'bin/j2bson', 'lib/bson.rb'] s.files += ['bin/b2json', 'bin/j2bson', 'lib/bson.rb']
Expand Down
8 changes: 6 additions & 2 deletions bson_ext.gemspec
Expand Up @@ -11,8 +11,12 @@ Gem::Specification.new do |s|
s.rubyforge_project = 'bson_ext' s.rubyforge_project = 'bson_ext'
s.license = 'Apache License Version 2.0' s.license = 'Apache License Version 2.0'


s.signing_key = 'gem-private_key.pem' if File.exists?('gem-private_key.pem')
s.cert_chain = ['gem-public_cert.pem'] s.signing_key = 'gem-private_key.pem'
s.cert_chain = ['gem-public_cert.pem']
else
warn 'Warning: No private key present, creating unsigned gem.'
end


s.files = ['bson_ext.gemspec', 'LICENSE', 'VERSION'] s.files = ['bson_ext.gemspec', 'LICENSE', 'VERSION']
s.files += Dir['ext/**/*.rb'] + Dir['ext/**/*.c'] + Dir['ext/**/*.h'] s.files += Dir['ext/**/*.rb'] + Dir['ext/**/*.c'] + Dir['ext/**/*.h']
Expand Down
8 changes: 6 additions & 2 deletions mongo.gemspec
Expand Up @@ -11,8 +11,12 @@ Gem::Specification.new do |s|
s.rubyforge_project = 'mongo' s.rubyforge_project = 'mongo'
s.license = 'Apache License Version 2.0' s.license = 'Apache License Version 2.0'


s.signing_key = 'gem-private_key.pem' if File.exists?('gem-private_key.pem')
s.cert_chain = ['gem-public_cert.pem'] s.signing_key = 'gem-private_key.pem'
s.cert_chain = ['gem-public_cert.pem']
else
warn 'Warning: No private key present, creating unsigned gem.'
end


s.files = ['mongo.gemspec', 'LICENSE', 'VERSION'] s.files = ['mongo.gemspec', 'LICENSE', 'VERSION']
s.files += ['README.md', 'Rakefile', 'bin/mongo_console'] s.files += ['README.md', 'Rakefile', 'bin/mongo_console']
Expand Down

0 comments on commit 4746ddf

Please sign in to comment.