Skip to content

Commit

Permalink
minor cleanup to rdoc task
Browse files Browse the repository at this point in the history
  • Loading branch information
alexch committed Jun 14, 2011
1 parent 5417590 commit 0409d63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 2 additions & 14 deletions Rakefile
@@ -1,15 +1,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|
Expand Down Expand Up @@ -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]}"
Expand All @@ -54,6 +45,3 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end



2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -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.