Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update Rakefile

  • Loading branch information...
commit d7cf27e4de4f6c44c4faaf12f6cb6dcaba7a7797 1 parent b16fe4b
@mynyml authored
Showing with 1 addition and 29 deletions.
  1. +1 −29 Rakefile
View
30 Rakefile
@@ -8,9 +8,7 @@ namespace(:test) do
desc "Run all tests"
task(:all) do
tests = Dir['test/**/test_*.rb'] - ['test/test_helper.rb']
- cmd = "ruby -rubygems -I.:lib -e'%w( #{tests.join(' ')} ).each {|file| require file }'"
- puts(cmd) if ENV['VERBOSE']
- exit system(cmd)
+ exit system("ruby -rubygems -I.:lib -e'%w( #{tests.join(' ')} ).each {|file| require file }'")
end
desc "Run all tests on multiple ruby versions (requires rvm)"
@@ -25,29 +23,3 @@ namespace(:test) do
end
end
end
-
-# --------------------------------------------------
-# Docs
-# --------------------------------------------------
-require 'rake/rdoctask'
-desc "Generate rdoc documentation."
-Rake::RDocTask.new(:rdoc => 'rdoc', :clobber_rdoc => 'rdoc:clean', :rerdoc => 'rdoc:force') do |rdoc|
- rdoc.rdoc_dir = 'doc/rdoc'
- rdoc.title = "Watchr"
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.options << '--charset' << 'utf-8'
- rdoc.main = 'README.rdoc'
- rdoc.rdoc_files.include('README.rdoc')
- rdoc.rdoc_files.include('TODO.txt')
- rdoc.rdoc_files.include('LICENSE')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
-desc "Generate YARD Documentation"
-task(:yardoc) do
- require 'yard'
- files = %w( lib/**/*.rb )
- options = %w( -o doc/yard --readme README.rdoc --files LICENSE )
- YARD::CLI::Yardoc.run *(options + files)
-end
-
Please sign in to comment.
Something went wrong with that request. Please try again.