forked from rouge-ruby/rouge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
39 lines (31 loc) · 689 Bytes
/
Rakefile
File metadata and controls
39 lines (31 loc) · 689 Bytes
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
36
37
38
39
require 'rake/clean'
require 'pathname'
require "bundler/gem_tasks"
require "rake/testtask"
Rake::TestTask.new(:spec) do |t|
t.libs << "lib"
t.ruby_opts << "-r./spec/spec_helper"
t.warning = false # TODO: true
t.pattern = FileList['spec/**/*_spec.rb']
end
task :test => [:spec]
task :doc do
sh 'bundle exec yard'
end
namespace :doc do
task :server do
sh 'bundle exec yard server --reload'
end
task :clean do
sh 'rm -rf ./doc/ ./.yardoc/'
end
end
CLEAN.include('*.gem')
task :build => [:clean, :spec] do
puts
sh "gem build rouge.gemspec"
end
task :default => :spec
Dir.glob(Pathname.new(__FILE__).dirname.join('tasks/*.rake')).each do |f|
load f
end