forked from bhollis/maruku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
35 lines (27 loc) · 743 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 'bundler'
# Turn on verbose warnings for tests
ENV['RUBYOPT'] = '-w'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake/clean'
require 'rspec/core/rake_task'
require 'yard'
task :default => :spec
CLEAN.replace %w(pkg doc .yardoc)
Bundler::GemHelper.install_tasks
desc "Run RSpec"
RSpec::Core::RakeTask.new do |t|
t.verbose = false
t.rspec_opts = '--color -f nested --tty'
end
task :default => :spec
YARD::Rake::YardocTask.new do |t|
t.files = FileList["lib/maruku.rb", "lib/maruku/*.rb", "lib/maruku/ext/*.rb",
"lib/maruku/ext/math/*.rb"]
end