Rakefile in win32ole-1.8.8 vs Rakefile in win32ole-1.8.9
- old
+ new
@@ -1,10 +1,19 @@
require "bundler/gem_tasks"
require "rake/testtask"
+name = "win32ole"
+
+require 'rake/extensiontask'
+extask = Rake::ExtensionTask.new(name) do |x|
+ x.lib_dir << "/#{RUBY_VERSION}/#{x.platform}"
+end
Rake::TestTask.new(:test) do |t|
- t.libs << "test"
+ t.libs << extask.lib_dir
+ t.libs << "test/lib"
t.libs << "lib"
+ t.ruby_opts << "-rhelper"
t.test_files = FileList["test/**/test_*.rb"]
end
task :default => :test
+task :test => :compile