Skip to content

Commit

Permalink
Patch to build the bson_ext gem on ruby-2.0.0-p0
Browse files Browse the repository at this point in the history
  • Loading branch information
eranb committed Mar 19, 2013
1 parent e7b70cd commit ecc846d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ext/cbson/extconf.rb
Expand Up @@ -7,4 +7,10 @@
have_header("ruby/encoding.h")

dir_config('cbson')
create_makefile('bson_ext/cbson')

if RUBY_VERSION >= "2.0.0"
FileUtils.mkdir "../bson_ext/bson_ext"
create_makefile('bson_ext/cbson')
else
create_makefile('bson_ext/bson_ext')
end

0 comments on commit ecc846d

Please sign in to comment.