minor: ydoc generation version fix

This commit is contained in:
Kyle Banker 2010-01-25 14:56:48 -05:00
parent 205ff5547b
commit 5b45c0fd83
1 changed files with 3 additions and 3 deletions

View File

@ -96,10 +96,10 @@ end
desc "Generate YARD documentation" desc "Generate YARD documentation"
task :ydoc do task :ydoc do
version = eval(File.read("mongo-ruby-driver.gemspec")).version require File.join(File.dirname(__FILE__), 'lib', 'mongo')
out = File.join('ydoc', version.to_s) out = File.join('ydoc', Mongo::VERSION)
FileUtils.rm_rf('ydoc') 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 end
desc "Publish documentation to mongo.rubyforge.org" desc "Publish documentation to mongo.rubyforge.org"