2010-08-04 19:13:34 +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-12-17 19:10:09 +00:00
VERSION = VERSION_HEADER . read . scan ( / VERSION \ s+"( \ d+ \ . \ d+( \ .[ \ w \ 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
2010-04-07 22:44:16 +00:00
s . summary = 'C extensions for Ruby BSON.'
s . description = 'C extensions to accelerate the Ruby BSON serialization. For more information about BSON, see http://bsonspec.org. For information about MongoDB, 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