minor: fix for ydoc deploy version

This commit is contained in:
Tyler Brock 2012-03-07 17:50:36 -05:00
parent ddc3e893cb
commit cf817f5705
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ end
desc "Generate YARD documentation"
task :ydoc do
require 'mongo'
require './lib/mongo/version.rb'
out = File.join('ydoc', Mongo::VERSION)
FileUtils.rm_rf('ydoc')
system "yardoc lib/**/*.rb lib/mongo/**/*.rb lib/bson/**/*.rb -e ./yard/yard_ext.rb -p yard/templates -o #{out} --title MongoRuby-#{Mongo::VERSION} --files docs/TUTORIAL.md,docs/GridFS.md,docs/FAQ.md,docs/REPLICA_SETS.md,docs/WRITE_CONCERN.md,docs/READ_PREFERENCE.md,docs/HISTORY.md,docs/CREDITS.md,docs/RELEASES.md,docs/CREDITS.md,docs/TAILABLE_CURSORS.md"