Permalink
Browse files

minor cleanup to rdoc task

  • Loading branch information...
1 parent 5417590 commit 0409d636e6682a6c91859b3c1cbb450b6d86c1ba @alexch committed Jun 14, 2011
Showing with 3 additions and 15 deletions.
  1. +2 −14 Rakefile
  2. +1 −1 spec/spec_helper.rb
View
@@ -2,15 +2,6 @@ require 'rubygems'
require 'rake'
begin
- require 'yard'
- YARD::Rake::YardocTask.new do |t|
- t.files = ['lib/**/*.rb', 'lib/**/*.rb']
- end
-rescue LoadError
-# puts "YARD is not available. For generating docs, you'll need to sudo gem install yard"
-end
-
-begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rturk"
@@ -40,8 +31,8 @@ end
task :default => :spec
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
+require 'rdoc/task'
+RDoc::Task.new do |rdoc|
if File.exist?('VERSION.yml')
config = YAML.load(File.read('VERSION.yml'))
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
@@ -54,6 +45,3 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
-
View
@@ -27,6 +27,6 @@ def fake_response(xml)
mock('RestClientFakeResponse', :body => xml)
end
-Spec::Runner.configure do |config|
+RSpec.configure do |config|
end

0 comments on commit 0409d63

Please sign in to comment.