forked from marcotc/rack-brotli
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
43 lines (34 loc) · 1.01 KB
/
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
36
37
38
39
40
41
42
43
# -*-ruby-*-
exec(*(["bundle", "exec", $PROGRAM_NAME] + ARGV)) if ENV['BUNDLE_GEMFILE'].nil?
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => ex
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rdoc/task'
require 'rake/testtask'
desc "Run all the tests"
task :default => [:test]
desc "Run specs"
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/*_spec.rb']
end
desc "Generate RDoc documentation"
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.options << '--line-numbers' << '--inline-source' <<
'--main' << 'README' <<
'--title' << 'Rack::Brotli Documentation' <<
'--charset' << 'utf-8'
rdoc.rdoc_dir = "doc"
rdoc.rdoc_files.include 'README.rdoc'
rdoc.rdoc_files.include('lib/rack/*.rb')
rdoc.rdoc_files.include('lib/rack/*/*.rb')
end
# PACKAGING =================================================================
Bundler::GemHelper.install_tasks
task :release do
sh "git release"
end