10 lines
465 B
Ruby
10 lines
465 B
Ruby
![]() |
require 'rbconfig'
|
||
|
# ruby 1.8.7 doesn't define RUBY_ENGINE
|
||
|
ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
|
||
|
ruby_version = RbConfig::CONFIG["ruby_version"]
|
||
|
path = File.expand_path('..', __FILE__)
|
||
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/backports-3.8.0/lib"
|
||
|
$:.unshift "#{path}/"
|
||
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/plist-3.3.0/lib"
|
||
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-2.0.0/lib"
|