Sha256: c87d70b9dac7401906d526bef4f82e022b83681938f3917914ca38fb55d3934b

Contents?: true

Size: 834 Bytes

Versions: 6965

Compression:

Stored size: 834 Bytes

Contents

if RUBY_ENGINE == 'ruby'
  begin
    require RUBY_VERSION.split('.')[0, 2].join('.') + '/ffi_c'
  rescue Exception
    require 'ffi_c'
  end

  require 'ffi/ffi'

elsif RUBY_ENGINE == 'jruby' && (RUBY_ENGINE_VERSION.split('.').map(&:to_i) <=> [9, 2, 20]) >= 0
  JRuby::Util.load_ext("org.jruby.ext.ffi.FFIService")
  require 'ffi/ffi'

elsif RUBY_ENGINE == 'truffleruby' && (RUBY_ENGINE_VERSION.split('.').map(&:to_i) <=> [20, 1, 0]) >= 0
  require 'truffleruby/ffi_backend'
  require 'ffi/ffi'

else
  # 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

6,965 entries across 6,960 versions & 35 rubygems

Version Path
ory-client-0.0.1.alpha118 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-client-0.0.1.alpha117 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-client-0.0.1.alpha116 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-client-0.0.1.alpha115 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-keto-client-0.8.0.alpha2 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
cloudsmith-api-1.33.7 vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi.rb
ory-client-0.0.1.alpha113 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-client-0.0.1.alpha112 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-client-0.0.1.alpha111 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-client-0.0.1.alpha110 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-client-0.0.1.alpha109 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
avalara_sdk-2.4.26 vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi.rb
ory-client-0.0.1.alpha108 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-oathkeeper-client-0.38.23.beta1 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-oathkeeper-client-0.38.22.beta1 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-client-0.0.1.alpha107 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-hydra-client-1.11.7 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-client-0.0.1.alpha106 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-hydra-client-1.11.6 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb
ory-keto-client-0.8.0.alpha1 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/lib/ffi.rb