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