2012-02-07 01:18:44 +00:00
$: . unshift ( File . join ( File . dirname ( __FILE__ ) , 'lib' ) )
require 'bson'
2009-12-16 19:03:15 +00:00
VERSION_HEADER = File . open ( File . join ( File . dirname ( __FILE__ ) , 'ext' , 'cbson' , 'version.h' ) , " r " )
2011-03-29 20:44:38 +00:00
VERSION = VERSION_HEADER . read . scan ( / VERSION "( \ d[^"]+)" / ) [ 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'
2012-05-16 02:15:05 +00:00
s . authors = [ 'Mike Dirolf' , 'Kyle Banker' , 'Tyler Brock' , 'Gary Murakami' ]
2009-03-19 17:54:46 +00:00
s . email = 'mongodb-dev@googlegroups.com'
s . homepage = 'http://www.mongodb.org'
2012-02-28 15:34:52 +00:00
s . add_dependency ( 'bson' , " ~> #{ BSON :: VERSION } " )
2009-03-19 17:54:46 +00:00
end