diff --git a/Rakefile b/Rakefile index 090fa63..68a239f 100644 --- a/Rakefile +++ b/Rakefile @@ -143,6 +143,7 @@ end desc "Generate YARD documentation" task :ydoc do + $:.unshift(File.join(File.dirname(__FILE__), 'lib')) require File.join(File.dirname(__FILE__), 'lib', 'mongo') out = File.join('ydoc', Mongo::VERSION) FileUtils.rm_rf('ydoc')