24 lines
855 B
Ruby
24 lines
855 B
Ruby
require 'lib/mongo'
|
|
VERSION_HEADER = File.open(File.join(File.dirname(__FILE__), 'ext', 'cbson', 'version.h'), "r")
|
|
VERSION = VERSION_HEADER.read.scan(/VERSION\s+"(\d+\.\d+(\.\d+)?)\"/)[0][0]
|
|
Gem::Specification.new do |s|
|
|
s.name = 'mongo_ext'
|
|
|
|
s.version = VERSION
|
|
s.platform = Gem::Platform::RUBY
|
|
s.summary = 'C extensions for the MongoDB Ruby driver'
|
|
s.description = 'C extensions to accelerate the MongoDB Ruby driver. For more information about Mongo, see http://www.mongodb.org.'
|
|
|
|
s.require_paths = ['ext']
|
|
s.files = ['Rakefile', 'mongo-extensions.gemspec']
|
|
s.files += Dir['ext/**/*.rb'] + Dir['ext/**/*.c'] + Dir['ext/**/*.h']
|
|
s.test_files = []
|
|
|
|
s.has_rdoc = false
|
|
s.extensions << 'ext/cbson/extconf.rb'
|
|
|
|
s.author = 'Mike Dirolf'
|
|
s.email = 'mongodb-dev@googlegroups.com'
|
|
s.homepage = 'http://www.mongodb.org'
|
|
end
|