Sha256: 83089091010c1005d846296fd5c03a2fef603cfd17c7ce748decf46ee0a0ed82

Contents?: true

Size: 584 Bytes

Versions: 15

Compression:

Stored size: 584 Bytes

Contents

require 'rubygems'
require 'rbconfig'
require 'spec'

if RUBY_PLATFORM =~/java/
  libdir = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib"))
  $:.reject! { |p| p == libdir }
else
  $:.unshift File.join(File.dirname(__FILE__), "..", "..", "lib"),
    File.join(File.dirname(__FILE__), "..", "..", "build", "#{Config::CONFIG['host_cpu''arch']}", "ffi_c", RUBY_VERSION)
end
puts "loadpath=#{$:.join(':')}"
require "ffi"

module TestLibrary
  PATH = "build/libtest.#{FFI::Platform::LIBSUFFIX}"
end
module LibTest
  extend FFI::Library
  ffi_lib TestLibrary::PATH
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
ffi-0.6.4 spec/ffi/spec_helper.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/ffi-0.6.3/spec/ffi/spec_helper.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/ffi-0.6.3/spec/ffi/spec_helper.rb
ffi-1.0.2-x86-mingw32 spec/ffi/spec_helper.rb
ffi-1.0.2 spec/ffi/spec_helper.rb
ffi-1.0.1-x86-mingw32 spec/ffi/spec_helper.rb
ffi-1.0.1 spec/ffi/spec_helper.rb
ffi-1.0.0 spec/ffi/spec_helper.rb
ffi-aitrus-0.9.0.beta spec/ffi/spec_helper.rb
ffi-0.6.3-x86-mingw32 spec/ffi/spec_helper.rb
ffi-0.6.3-x86-mswin32 spec/ffi/spec_helper.rb
ffi-0.6.3 spec/ffi/spec_helper.rb
ffi-0.6.2 spec/ffi/spec_helper.rb
ffi-0.6.1 spec/ffi/spec_helper.rb
ffi-0.6.0 spec/ffi/spec_helper.rb