Rakefile in rspec-pending_for-0.1.7 vs Rakefile in rspec-pending_for-0.1.8

- old
+ new

@@ -1,14 +1,29 @@ require 'bundler/gem_tasks' -# rubocop:disable Lint/HandleExceptions begin require 'wwtd/tasks' +rescue LoadError + puts 'failed to load wwtd' +end + +begin require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) - task :test => :spec rescue LoadError # puts "failed to load wwtd or rspec, probably because bundled --without-development" + task :spec do + warn 'rspec is disabled' + end end -# rubocop:enable Lint/HandleExceptions +task :test => :spec -task :default => :test +begin + require 'rubocop/rake_task' + RuboCop::RakeTask.new +rescue LoadError + task :rubocop do + warn 'RuboCop is disabled' + end +end + +task :default => [:test, :rubocop]