-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
35 lines (28 loc) · 871 Bytes
/
Rakefile
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
26
27
28
29
30
31
32
33
34
35
require "rubygems"
require "rake/rdoctask"
require 'rspec/core/rake_task'
require "rake/gempackagetask"
desc "Run all examples"
RSpec::Core::RakeTask.new
task :default => :spec
# require 'sdoc'
#
# # Generate documentation
# Rake::RDocTask.new 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 railsapi.com
# rdoc.main = "README"
# rdoc.rdoc_files.include("README", "lib/**/*.rb")
# rdoc.rdoc_dir = "rdoc"
# end
desc 'Clear out RDoc'
task :clean => [:clobber_package]
# This task actually builds the gem.
spec = eval(File.read('verneuil.gemspec'))
desc "Generate the gem package."
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
task :gem => :spec