2020-08-30 18:32:49 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-05 01:10:27 +00:00
|
|
|
require 'bundler/gem_tasks'
|
|
|
|
|
2020-08-30 23:11:54 +00:00
|
|
|
begin
|
|
|
|
require 'rspec/core/rake_task'
|
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
|
|
task(default: :spec)
|
|
|
|
rescue LoadError
|
|
|
|
warn("Couldn't load RSpec gem")
|
2016-03-05 01:10:27 +00:00
|
|
|
end
|
2015-03-31 09:40:12 +00:00
|
|
|
|
2020-08-30 23:11:54 +00:00
|
|
|
# Check the syntax of all Ruby files
|
2020-08-30 18:32:49 +00:00
|
|
|
task :syntax do
|
|
|
|
sh 'find . -name *.rb -type f -exec ruby -c {} \; -exec echo {} \;'
|
2017-09-27 21:58:34 +00:00
|
|
|
end
|