mongo-ruby-driver/bin/fail_if_no_c.rb

12 lines
220 B
Ruby
Raw Normal View History

# Fail if the C extension module isn't installed.
#
# Only really intended to be used by internal build scripts.
require 'rubygems'
require 'mongo'
begin
2010-04-08 03:47:06 +00:00
require 'bson_ext/cbson'
rescue LoadError
Process.exit 1
end