Sha256: 28556523e00fdd7e068146781f22e37b167c24ccd8f9cfa05b80922206a84cef

Contents?: true

Size: 628 Bytes

Versions: 202

Compression:

Stored size: 628 Bytes

Contents

if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
  Object.send(:remove_const, :FFI) if defined?(::FFI)
  begin
    require RUBY_VERSION.split('.')[0, 2].join('.') + '/ffi_c'
  rescue Exception
    require 'ffi_c'
  end

  require 'ffi/ffi'

elsif defined?(RUBY_ENGINE)
  # Remove the ffi gem dir from the load path, then reload the internal ffi implementation
  $LOAD_PATH.delete(File.dirname(__FILE__))
  $LOAD_PATH.delete(File.join(File.dirname(__FILE__), 'ffi'))
  unless $LOADED_FEATURES.nil?
    $LOADED_FEATURES.delete(__FILE__)
    $LOADED_FEATURES.delete('ffi.rb')
  end
  require 'ffi.rb'
end

Version data entries

202 entries across 167 versions & 26 rubygems

Version Path
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/ffi-1.10.0/lib/ffi.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.10.0/lib/ffi.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/lib/ffi.rb
approveapi-1.0.5 vendor/bundle/ruby/2.6.0/gems/ffi-1.10.0/lib/ffi.rb
alimentos-alu0100945645-0.1.0 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.25/lib/ffi.rb
alimentos-alu0100945645-1.0.0 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.25/lib/ffi.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/lib/ffi.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.10.0/lib/ffi.rb
ffi-1.10.0-x64-mingw32 lib/ffi.rb
ffi-1.10.0-x86-mingw32 lib/ffi.rb
ffi-1.10.0 lib/ffi.rb
tdiary-5.0.11 vendor/bundle/gems/ffi-1.9.25/lib/ffi.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/lib/ffi.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/lib/ffi.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/lib/ffi.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/lib/ffi.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/lib/ffi.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/lib/ffi.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/lib/ffi.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.25/lib/ffi.rb