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

Version Path
rodbot-0.4.5 lib/templates/new/rakefile.rb
rodbot-0.4.4 lib/templates/new/rakefile.rb
rodbot-0.4.3 lib/templates/new/rakefile.rb
rodbot-0.4.2 lib/templates/new/rakefile.rb
rodbot-0.4.1 lib/templates/new/rakefile.rb
rodbot-0.4.0 lib/templates/new/rakefile.rb
rodbot-0.3.4 lib/templates/new/rakefile.rb
rodbot-0.3.3 lib/templates/new/rakefile.rb
rodbot-0.3.2 lib/templates/new/rakefile.rb
rodbot-0.3.1 lib/templates/new/rakefile.rb
rodbot-0.3.0 lib/templates/new/rakefile.rb
rodbot-0.2.0 lib/templates/new/rakefile.rb
rodbot-0.1.1 lib/templates/new/rakefile.rb
rodbot-0.1.0 lib/templates/new/rakefile.rb