get extension to build on gem install
This commit is contained in:
parent
db7cb56fc7
commit
ceb994d656
|
@ -1,7 +1,5 @@
|
|||
require 'mkmf'
|
||||
|
||||
extension_name = 'cbson'
|
||||
dir_config('cbson')
|
||||
|
||||
dir_config(extension_name)
|
||||
|
||||
create_makefile(extension_name)
|
||||
create_makefile('mongo/ext/cbson')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
PACKAGE_FILES = ['README.rdoc', 'Rakefile', 'mongo-ruby-driver.gemspec']
|
||||
PACKAGE_FILES = PACKAGE_FILES + Dir['bin/*'] + Dir['examples/*.rb'] + Dir['lib/**/*.rb'] + Dir['ext/**/*.(rb|c)']
|
||||
PACKAGE_FILES = ['README.rdoc', 'Rakefile', 'mongo-ruby-driver.gemspec'] +
|
||||
(Dir['bin/*'] + Dir['examples/*.rb'] + Dir['lib/**/*.rb'] + Dir["ext/**/*.{rb,c}"])
|
||||
PACKAGE_FILES.reject! { |fn| fn.include? '.DS' }
|
||||
|
||||
TEST_FILES = Dir['tests/*.rb'] + Dir['tests/mongo-qa/*']
|
||||
|
@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|||
s.summary = 'Ruby driver for the 10gen Mongo DB'
|
||||
s.description = 'A Ruby driver for the 10gen Mongo DB. For more information about Mongo, see http://www.mongodb.org.'
|
||||
|
||||
s.require_paths = ['lib']
|
||||
s.require_paths = ['lib', 'ext']
|
||||
|
||||
s.files = PACKAGE_FILES
|
||||
s.test_files = TEST_FILES
|
||||
|
|
Loading…
Reference in New Issue