From 98470f551f1549b5c7724290f2e83f804c2d4ab6 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 20 May 2010 15:56:42 -0700 Subject: [PATCH] adjust ruby load path --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index cbaaa4c9..7cda1fdb 100644 --- a/Rakefile +++ b/Rakefile @@ -68,6 +68,7 @@ end Rake::TestTask.new do |t| t.pattern = 'test/*_test.rb' + t.libs << "." end task :test => [:build] do @@ -90,7 +91,7 @@ desc 'Run sigar examples (test)' task :examples => [:build] do in_ext() Dir["examples/*.rb"].each do |file| - cmd = "ruby #{file}" + cmd = "ruby -I. #{file}" print cmd + "\n" system(cmd) end