Codebase list ruby-omniauth-auth0 / scrub-obsolete/main Rakefile
scrub-obsolete/main

Tree @scrub-obsolete/main (Download .tar.gz)

Rakefile @scrub-obsolete/mainraw · history · blame

#!/usr/bin/env rake
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

desc 'Run specs'
RSpec::Core::RakeTask.new

begin
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new
rescue LoadError
  task :rubocop do
    $stderr.puts 'Rubocop is disabled'
  end
end

namespace :sinatra do
  task :start do
    system 'bundle exec shotgun' \
           ' --server=thin --port=3000' \
           ' examples/sinatra/config.ru'
  end
end

desc 'Run specs'
task default: [:spec, :rubocop]
task test: :spec
task :guard do
  system 'bundle exec guard'
end