diff --git a/Rakefile b/Rakefile index 20a5b1d..051031a 100644 --- a/Rakefile +++ b/Rakefile @@ -1,11 +1,17 @@ # frozen_string_literal: true +# Bundler + begin require "bundler/setup" rescue LoadError puts "You must `gem install bundler` and `bundle install` to run rake tasks" end +require "bundler/gem_tasks" + +# RDoc + require "rdoc/task" RDoc::Task.new(:rdoc) do |rdoc| @@ -16,12 +22,12 @@ RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_files.include("lib/**/*.rb") end +# Rails dummy app + APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__) load "rails/tasks/engine.rake" -load "rails/tasks/statistics.rake" - -require "bundler/gem_tasks" +# RSpec begin require "rspec/core/rake_task" @@ -30,6 +36,8 @@ rescue LoadError puts "RSpec load error" end +# RuboCop + require "rubocop/rake_task" RuboCop::RakeTask.new