Rakefile in karousel-0.9.14 vs Rakefile in karousel-0.9.15

- old
+ new

@@ -1,21 +1,19 @@ +# frozen_string_literal: true # encoding: utf-8 -require 'bundler' -require 'rake' -require 'rspec/core' + +require 'bundler/gem_tasks' require 'rspec/core/rake_task' +require 'rubocop/rake_task' -Bundler::GemHelper.install_tasks - -begin - Bundler.setup(:default, :development) -rescue Bundler::BundlerError => e - $stderr.puts e.message - $stderr.puts 'Run `bundle install` to install missing gems' - exit e.status_code +RSpec::Core::RakeTask.new(:rspec) do |rspec| + rspec.pattern = 'spec/**/*_spec.rb' end -task :default => :spec +RuboCop::RakeTask.new -RSpec::Core::RakeTask.new do |t| - t.pattern = 'spec/**/*spec.rb' +task default: %i[rubocop rspec] + +desc 'open an irb session preloaded with this gem' +task :console do + sh 'irb -r pp -r ./lib/gn_crossmap.rb' end