Fetching contributors…
Cannot retrieve contributors at this time
37 lines (27 sloc) 862 Bytes
require "rubygems"
require "rake/rdoctask"
require 'rspec/core/rake_task'
require "rake/gempackagetask"
desc "Run all examples"
task :default => :spec
require 'sdoc'
# Generate documentation do |rdoc|
rdoc.title = "parslet - construction of parsers made easy"
rdoc.options << '--line-numbers'
rdoc.options << '--fmt' << 'shtml' # explictly set shtml generator
rdoc.template = 'direct' # lighter template used on
rdoc.main = "README"
rdoc.rdoc_files.include("README", "lib/**/*.rb")
rdoc.rdoc_dir = "rdoc"
desc 'Clear out RDoc'
task :clean => [:clobber_rdoc, :clobber_package]
# This task actually builds the gem.
spec = eval('parslet.gemspec'))
desc "Generate the gem package." do |pkg|
pkg.gem_spec = spec
task :gem => :spec