Skip to content

Commit

Permalink
Make sure our RDoc task can find the VERSION file, too
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisk committed Nov 2, 2009
1 parent fe8d232 commit ba72aba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Expand Up @@ -3,12 +3,14 @@ puts "Using ruby #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}"
require 'rubygems'
require 'rake'

version = File.read(File.join(File.dirname(__FILE__), "lib", "fake_web", "VERSION")).strip

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "fakeweb"
gem.rubyforge_project = "fakeweb"
gem.version = File.read(File.join(File.dirname(__FILE__), "lib", "fake_web", "VERSION")).strip
gem.version = version
gem.summary = "A tool for faking responses to HTTP requests"
gem.description = "FakeWeb is a helper for faking web requests in Ruby. It works at a global level, without modifying code or writing extensive stubs."
gem.email = ["chris@kampers.net", "romeda@gmail.com"]
Expand Down Expand Up @@ -59,7 +61,6 @@ end
begin
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.main = "README.rdoc"
rdoc.rdoc_files.include("README.rdoc", "CHANGELOG", "LICENSE.txt", "lib/*.rb")
rdoc.title = "FakeWeb #{version} API Documentation"
Expand Down

0 comments on commit ba72aba

Please sign in to comment.