From 5b45c0fd83021ddb26a4280b5cc01869e84e2ea2 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Mon, 25 Jan 2010 14:56:48 -0500 Subject: [PATCH] minor: ydoc generation version fix --- Rakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index ef0fc53..1390acf 100644 --- a/Rakefile +++ b/Rakefile @@ -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"