Sha256: 62bb6d188d213d8729cb17955225f7b5a18f8aa27364a9a9caf4bbb09a573ab5
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rodbot-0.5.1 | lib/templates/new/rakefile.rb |
rodbot-0.5.0 | lib/templates/new/rakefile.rb |