require ffi

This commit is contained in:
Ryan Fitzgerald 2011-09-10 21:28:31 -07:00
parent d74371403c
commit 078594ba83
1 changed files with 8 additions and 0 deletions

View File

@ -148,6 +148,14 @@ require "optparse"
require "slop"
require "rubygems/dependency_installer"
if RUBY_PLATFORM =~ /jruby/
begin
require 'ffi'
rescue LoadError
$stderr.puts "Need to `gem install ffi`"
end
end
if RUBY_PLATFORM =~ /mswin/ || RUBY_PLATFORM =~ /mingw/
begin
require 'win32console'