mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
require ffi
This commit is contained in:
parent
d74371403c
commit
078594ba83
1 changed files with 8 additions and 0 deletions
|
@ -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'
|
||||||
|
|
Loading…
Add table
Reference in a new issue