Skip to content

Commit

Permalink
Get version properly when generating rdocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreisner committed May 12, 2011
1 parent 8e9a425 commit 10edb1a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,8 @@ task :default => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION')
version = File.read('VERSION')
else
version = ""
end

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "geocoder #{version}"
rdoc.title = "Geocoder #{Geocoder::VERSION}"
rdoc.rdoc_files.include('*.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end

0 comments on commit 10edb1a

Please sign in to comment.