Sha256: 5f722429f429d675ceaee663c7023a8047e591136877f9cf8fc0b221866f471a
Contents?: true
Size: 575 Bytes
Versions: 14
Compression:
Stored size: 575 Bytes
Contents
require 'rake/testtask' Rake::TestTask.new do |t| t.libs << 'lib' t.test_files = FileList['spec/**/*_spec.rb'] t.verbose = false t.warning = !ENV['RUBYOPT']&.match?(/-W0/) end namespace :yard do desc "Run local YARD documentation server" task :server do `rm -rf ./.yardoc` Thread.new do sleep 2 `open http://localhost:8808` end `yard server -r` end end Rake::Task[:test].enhance do if ENV['RUBYOPT']&.match?(/-W0/) puts "⚠️ Ruby warnings are disabled, remove -W0 from RUBYOPT to enable." end end task default: :test
Version data entries
14 entries across 14 versions & 1 rubygems