2010-04-05 15:13:07 +00:00
|
|
|
require 'lib/bson'
|
2009-12-16 19:03:15 +00:00
|
|
|
VERSION_HEADER = File.open(File.join(File.dirname(__FILE__), 'ext', 'cbson', 'version.h'), "r")
|
2010-01-25 19:26:29 +00:00
|
|
|
VERSION = VERSION_HEADER.read.scan(/VERSION\s+"(\d+\.\d+(\.\d+\w*)?)\"/)[0][0]
|
2009-03-19 17:54:46 +00:00
|
|
|
Gem::Specification.new do |s|
|
2010-04-05 15:13:07 +00:00
|
|
|
s.name = 'bson_ext'
|
2009-08-10 20:17:13 +00:00
|
|
|
|
2009-12-02 16:53:59 +00:00
|
|
|
s.version = VERSION
|
2009-03-19 17:54:46 +00:00
|
|
|
s.platform = Gem::Platform::RUBY
|
2009-12-02 16:53:59 +00:00
|
|
|
s.summary = 'C extensions for the MongoDB Ruby driver'
|
2009-10-05 14:19:36 +00:00
|
|
|
s.description = 'C extensions to accelerate the MongoDB Ruby driver. For more information about Mongo, see http://www.mongodb.org.'
|
2009-03-19 17:54:46 +00:00
|
|
|
|
|
|
|
s.require_paths = ['ext']
|
2010-04-05 15:13:07 +00:00
|
|
|
s.files = ['Rakefile', 'bson_ext.gemspec']
|
2009-12-02 16:34:01 +00:00
|
|
|
s.files += Dir['ext/**/*.rb'] + Dir['ext/**/*.c'] + Dir['ext/**/*.h']
|
2009-10-26 19:34:45 +00:00
|
|
|
s.test_files = []
|
2009-03-19 17:54:46 +00:00
|
|
|
|
|
|
|
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
|