1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

require ffi

This commit is contained in:
Ryan Fitzgerald 2011-09-10 21:28:31 -07:00
parent d74371403c
commit 078594ba83

View file

@ -148,6 +148,14 @@ require "optparse"
require "slop" require "slop"
require "rubygems/dependency_installer" 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/ if RUBY_PLATFORM =~ /mswin/ || RUBY_PLATFORM =~ /mingw/
begin begin
require 'win32console' require 'win32console'