Sha256: ce3140c10fcc8b8851355f2608c1c3a862c20ef34d1b2b3f8c27de37c2c06a3f
Contents?: true
Size: 697 Bytes
Versions: 5
Compression:
Stored size: 697 Bytes
Contents
require 'bundler/gem_tasks' desc "(Re-) generate documentation and place it in the docs/ dir. Open the index.html file in there to read it." task :docs => [:"docs:environment", :"docs:yard"] namespace :docs do task :environment do ENV["RACK_ENV"] = "documentation" end require 'yard' YARD::Rake::YardocTask.new :yard do |t| t.files = ['lib/**/*.rb'] t.options = ['-odoc/'] # optional end end namespace :examples do desc "Run the examples." task :run do exec "bundle exec rackup examples/config.ru" end end task :default => "spec" require 'rspec/core/rake_task' desc "Run specs" RSpec::Core::RakeTask.new do |t| t.pattern = "./spec/**/*_spec.rb" end
Version data entries
5 entries across 5 versions & 1 rubygems