-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
40 lines (29 loc) · 776 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
36
37
38
39
40
begin
require "bundler/setup"
rescue LoadError
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
end
require "yard"
YARD::Rake::YardocTask.new(:yard)
require "bundler/gem_tasks"
task :release_guard do
unless `git rev-parse --abbrev-ref HEAD`.chomp == "main"
warn "Gem can only be released from the main branch"
exit 1
end
end
Rake::Task[:release].enhance([:release_guard])
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
task default: :spec
desc "run the specs using appraisal"
task :appraisals do
exec "bundle exec appraisal rake spec"
end
namespace :appraisals do
desc "install all the appraisal gemspecs"
task :install do
exec "bundle exec appraisal install"
end
end
require "standard/rake"