Rakefile in rash-0.3.0 vs Rakefile in rash-0.3.1
- old
+ new
@@ -5,12 +5,13 @@
RSpec::Core::RakeTask.new(:spec)
task :test => :spec
task :default => :spec
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
+require 'rdoc/task'
+require File.expand_path('../lib/rash/version', __FILE__)
+RDoc::Task.new do |rdoc|
+ version = Rash::VERSION
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "rash #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')