2020-12-31 22:55:59 +00:00
|
|
|
require "bundler/gem_tasks"
|
2021-01-01 01:13:48 +00:00
|
|
|
task :release_gem do
|
|
|
|
Rake::Task["build"].invoke
|
|
|
|
Rake::Task["release:rubygem_push"].invoke
|
|
|
|
end
|
2020-12-31 22:55:59 +00:00
|
|
|
|
|
|
|
require 'rake/clean'
|
|
|
|
CLOBBER.include('coverage', 'doc')
|
|
|
|
CLEAN.include('.yardoc')
|
|
|
|
|
|
|
|
require 'rspec/core/rake_task'
|
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
|
|
|
|
|
|
begin
|
|
|
|
require 'yard'
|
|
|
|
require 'yard/rake/yardoc_task'
|
|
|
|
YARD::Rake::YardocTask.new do |t|
|
|
|
|
t.files = ['lib/**/*.rb', 'generated/**/*.rb']
|
|
|
|
t.options = ['--verbose', '--markup', 'markdown']
|
|
|
|
end
|
|
|
|
rescue LoadError
|
2021-01-01 00:04:25 +00:00
|
|
|
task :yard
|
2020-12-31 22:55:59 +00:00
|
|
|
puts "YARD not available"
|
|
|
|
end
|
|
|
|
|
|
|
|
task :ci => [:spec, :yard, :build]
|
|
|
|
|
|
|
|
task :default => :ci
|