minor: ydoc generation version fix

This commit is contained in:
Kyle Banker 2010-01-25 14:56:48 -05:00
parent 205ff5547b
commit 5b45c0fd83

View File

@ -96,10 +96,10 @@ end
desc "Generate YARD documentation"
task :ydoc do
version = eval(File.read("mongo-ruby-driver.gemspec")).version
out = File.join('ydoc', version.to_s)
require File.join(File.dirname(__FILE__), 'lib', 'mongo')
out = File.join('ydoc', Mongo::VERSION)
FileUtils.rm_rf('ydoc')
system "yardoc lib/**/*.rb lib/mongo/**/*.rb -o #{out} --title MongoRuby-#{version}"
system "yardoc lib/**/*.rb lib/mongo/**/*.rb -o #{out} --title MongoRuby-#{Mongo::VERSION}"
end
desc "Publish documentation to mongo.rubyforge.org"