Skip to content

Commit

Permalink
attempt to get around rake 10.0.3 issue with ruby 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ronen committed Jan 17, 2013
1 parent adbe3ea commit a812936
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ task :spec do
Rake::Task["#{adapter}:spec"].invoke
end

require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
require File.dirname(__FILE__) + '/lib/schema_plus/version'
# work around a bug in rake 10.0.3 with ruby 1.9.2
unless RUBY_VERSION == "1.9.2"
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
require File.dirname(__FILE__) + '/lib/schema_plus/version'

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "schema_plus #{SchemaPlus::VERSION}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "schema_plus #{SchemaPlus::VERSION}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
end

require 'rspec/core/rake_task'
Expand Down

0 comments on commit a812936

Please sign in to comment.