mongo-ruby-driver/bin/fail_if_no_c.rb
2009-07-17 13:29:38 -04:00

12 lines
221 B
Ruby

# Fail if the C extension module isn't installed.
#
# Only really intended to be used by internal build scripts.
require 'rubygems'
require 'mongo'
begin
require 'mongo_ext/cbson'
rescue LoadError
Process.exit 1
end