diff options
Diffstat (limited to 'lib/ffi_yajl/ffi.rb')
-rw-r--r-- | lib/ffi_yajl/ffi.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ffi_yajl/ffi.rb b/lib/ffi_yajl/ffi.rb index c6601f0..28fcc79 100644 --- a/lib/ffi_yajl/ffi.rb +++ b/lib/ffi_yajl/ffi.rb @@ -20,11 +20,11 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -require "rubygems" +require "rubygems" unless defined?(Gem) require "libyajl2" begin - require "ffi" + require "ffi" unless defined?(FFI) rescue LoadError $stderr.puts "FATAL: to use the ffi extension instead of the compiled C extension, the ffi gem must be installed" $stderr.puts " (it is optional, so you must include it in your bundle manually)" |