Permalink
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (23 sloc) 647 Bytes
require "rubygems"
require "bundler"
Bundler.setup
require 'rake'
require 'rake/rdoctask'
require 'rspec/core/rake_task'
desc "Default Task"
task :default => [ :spec ]
# run all rspecs
desc "Run all rspec files"
RSpec::Core::RakeTask.new("spec") do |t|
t.rspec_opts = ["--color", "--format progress"]
end
desc 'Generate documentation'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'ONIX'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.markdown')
rdoc.rdoc_files.include('TODO')
rdoc.rdoc_files.include('CHANGELOG')
rdoc.rdoc_files.include('lib/**/*.rb')
end