diff --git a/Rakefile b/Rakefile index 7ae8246..182f30e 100644 --- a/Rakefile +++ b/Rakefile @@ -1,11 +1,22 @@ # frozen_string_literal: true require_relative 'vk_informer_bot' -require 'rspec/core/rake_task' -require 'rubocop/rake_task' -RSpec::Core::RakeTask.new -RuboCop::RakeTask.new +begin + require 'rspec/core/rake_task' +rescue LoadError + puts 'No rspec found' +else + RSpec::Core::RakeTask.new +end + +begin + require 'rubocop/rake_task' +rescue LoadError + puts 'No rubocop found' +else + RuboCop::RakeTask.new +end import 'lib/rake/db.rake'