Rakefile in mini_scheduler-0.12.2 vs Rakefile in mini_scheduler-0.12.3
- old
+ new
@@ -1,6 +1,19 @@
-require "bundler/gem_tasks"
+#!/usr/bin/env rake
+# frozen_string_literal: true
+
require "rspec/core/rake_task"
+require 'bundler'
+begin
+ Bundler.setup :default, :development
+ Bundler::GemHelper.install_tasks
+rescue Bundler::BundlerError => error
+ $stderr.puts error.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit error.status_code
+end
+
RSpec::Core::RakeTask.new(:spec)
-task default: :spec
+desc "Default: run tests"
+task default: [ :spec ]