Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 25 lines (22 sloc) 0.59 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
require 'rake'
require 'rspec/core/rake_task'

task :default => :test
#task :default => [:test, :rdoc]

RSpec::Core::RakeTask.new(:test)

### RDOC Tasks ###
require 'rdoc'
if (RDoc::VERSION.split('.') <=> ['2','4','2']) >= 0
  require 'rdoc/task'
  RDoc::Task.new(:rdoc) do |rdoc|
    rdoc.main = "README.md"
    rdoc.rdoc_files.include("README.md", "lib/**/*.rb")
    rdoc.options << "--all"
  end
else
  require 'rake/rdoctask'
  Rake::RDocTask.new(:rdoc) do |rdoc|
    rdoc.main = "README.md"
    rdoc.rdoc_files.include("README.md", "lib/**/*.rb")
    rdoc.options << "--all"
  end
end
Something went wrong with that request. Please try again.