Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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|
Expand All @@ -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"
Expand All @@ -30,6 +36,8 @@ rescue LoadError
puts "RSpec load error"
end

# RuboCop

require "rubocop/rake_task"

RuboCop::RakeTask.new
Expand Down