Rakefile in sidekiq-datadog-0.4.1 vs Rakefile in sidekiq-datadog-0.5.0

- old
+ new

@@ -1,7 +1,23 @@ -require "bundler/gem_tasks" +require 'bundler/gem_tasks' + +begin + Bundler.setup(:default, :development) +rescue Bundler::BundlerError => e + warn e.message + warn 'Run `bundle install` to install missing gems' + exit e.status_code +end + require 'rake' + require 'rspec/core' require 'rspec/core/rake_task' -RSpec::Core::RakeTask.new(:spec) -task :default => :spec +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = FileList['spec/**/*_spec.rb'] +end + +require 'rubocop/rake_task' +RuboCop::RakeTask.new(:rubocop) + +task default: %i[spec rubocop]