require 'rubygems' require 'bundler/setup' Bundler.setup(:default, :development, :test) require 'rake' require 'rdoc/task' require 'rspec/core/rake_task' require 'rubocop/rake_task' Bundler::GemHelper.install_tasks desc 'Run rubocop' task :rubocop do RuboCop::RakeTask.new end RSpec::Core::RakeTask.new do |t| t.pattern = 'spec/**/*_spec.rb' t.rspec_opts = %w[--format documentation --color] end task default: [:rubocop, :spec]