Sha256: 9f395d0b8a79457b21f578c7681cd97e1ddb9e1bd467ae52323f305e4c2991db

Contents?: true

Size: 608 Bytes

Versions: 12

Compression:

Stored size: 608 Bytes

Contents

require 'bundler/gem_tasks'

require 'rake/testtask'

Rake::TestTask.new do |t|
  t.libs << 'lib'
  t.test_files = FileList['spec/lib/**/*_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

12 entries across 12 versions & 1 rubygems

Version Path
rodbot-0.4.5 rakefile.rb
rodbot-0.4.4 rakefile.rb
rodbot-0.4.3 rakefile.rb
rodbot-0.4.2 rakefile.rb
rodbot-0.4.1 rakefile.rb
rodbot-0.4.0 rakefile.rb
rodbot-0.3.4 rakefile.rb
rodbot-0.3.3 rakefile.rb
rodbot-0.3.2 rakefile.rb
rodbot-0.3.1 rakefile.rb
rodbot-0.3.0 rakefile.rb
rodbot-0.2.0 rakefile.rb