Rakefile in ProtectedConstructor-2.0.0 vs Rakefile in ProtectedConstructor-2.0.3

- old
+ new

@@ -1,13 +1,15 @@ -require "bundler/gem_tasks" +# frozen_string_literal: true +require 'bundler/gem_tasks' + begin require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) -rescue LoadError => e - task "spec" do +rescue LoadError => _e + task 'spec' do puts "RSpec not loaded - make sure it's installed and you're using bundle exec" exit 1 end end -task :default => :spec +task default: :spec