Skip to content

Commit

Permalink
Added rake test task
Browse files Browse the repository at this point in the history
  • Loading branch information
delano committed Feb 6, 2013
1 parent 4f82072 commit 756a87f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Rakefile
Expand Up @@ -42,16 +42,21 @@ rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end end


require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs = ["lib", "test"]
end

extra_files = %w[LICENSE.txt THANKS.txt CHANGES.txt ]
RDoc::Task.new do |rdoc| RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = "rdoc" rdoc.rdoc_dir = "rdoc"
rdoc.title = "#{name} #{version}" rdoc.title = "#{name} #{version}"
rdoc.generator = 'hanna' # gem install hanna-nouveau rdoc.generator = 'hanna' # gem install hanna-nouveau
rdoc.main = 'README.rdoc' rdoc.main = 'README.rdoc'
rdoc.rdoc_files.include("README*") rdoc.rdoc_files.include("README*")
rdoc.rdoc_files.include("LICENSE.txt")
rdoc.rdoc_files.include("THANKS.txt")
rdoc.rdoc_files.include("CHANGES.txt")
rdoc.rdoc_files.include("bin/*.rb") rdoc.rdoc_files.include("bin/*.rb")
rdoc.rdoc_files.include("lib/**/*.rb") rdoc.rdoc_files.include("lib/**/*.rb")
extra_files.each { |file|
rdoc.rdoc_files.include(file) if File.exists?(file)
}
end end

0 comments on commit 756a87f

Please sign in to comment.