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 File.expand_path("#{path}/../#{ruby_engine}/#{ruby_version}/gems/rake-10.1.1/lib") $:.unshift File.expand_path("#{path}/../#{ruby_engine}/#{ruby_version}/gems/mini_portile-0.5.2/lib") $:.unshift File.expand_path("#{path}/../#{ruby_engine}/#{ruby_version}/gems/nokogiri-1.6.1-java/lib") $:.unshift File.expand_path("#{path}/../#{ruby_engine}/#{ruby_version}/gems/shoulda-context-1.1.6/lib") $:.unshift File.expand_path("#{path}/../../lib")