Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (27 sloc) 0.862 kb
3fd30f5 Kaspar Schiess . Reorg into a real project structure
authored
1
db8ed6c Kaspar Schiess + gem builder tasks (gem this)
authored
2 require "rubygems"
3 require "rake/rdoctask"
5ee96a9 Kaspar Schiess + update to rspec2.
authored
4 require 'rspec/core/rake_task'
5aeef79 Kaspar Schiess + Adding gem building back in
authored
5 require "rake/gempackagetask"
6
3fd30f5 Kaspar Schiess . Reorg into a real project structure
authored
7
5ee96a9 Kaspar Schiess + update to rspec2.
authored
8 desc "Run all examples"
9 RSpec::Core::RakeTask.new
735983d Kaspar Schiess . spec setup
authored
10
db8ed6c Kaspar Schiess + gem builder tasks (gem this)
authored
11 task :default => :spec
12
bc03948 Kaspar Schiess + sdoc
authored
13 require 'sdoc'
14
db8ed6c Kaspar Schiess + gem builder tasks (gem this)
authored
15 # Generate documentation
bc03948 Kaspar Schiess + sdoc
authored
16 Rake::RDocTask.new do |rdoc|
12ef59a Kaspar Schiess + documentation cleanup
authored
17 rdoc.title = "parslet - construction of parsers made easy"
64ddb7a Kaspar Schiess - no inline source - deprecated option
authored
18 rdoc.options << '--line-numbers'
bc03948 Kaspar Schiess + sdoc
authored
19 rdoc.options << '--fmt' << 'shtml' # explictly set shtml generator
20 rdoc.template = 'direct' # lighter template used on railsapi.com
21 rdoc.main = "README"
22 rdoc.rdoc_files.include("README", "lib/**/*.rb")
23 rdoc.rdoc_dir = "rdoc"
db8ed6c Kaspar Schiess + gem builder tasks (gem this)
authored
24 end
25
fdbf272 Florian R. Hanke - clobber_package call in Rakefile
floere authored
26 desc 'Clear out RDoc'
5aeef79 Kaspar Schiess + Adding gem building back in
authored
27 task :clean => [:clobber_rdoc, :clobber_package]
28
29 # This task actually builds the gem.
30 spec = eval(File.read('parslet.gemspec'))
31 desc "Generate the gem package."
32 Rake::GemPackageTask.new(spec) do |pkg|
33 pkg.gem_spec = spec
34 end
35
36 task :gem => :spec
Something went wrong with that request. Please try again.