Rakefile in assembly-image-1.7.0 vs Rakefile in assembly-image-1.7.1

- old
+ new

@@ -1,8 +1,19 @@ -require 'bundler/gem_tasks' +# frozen_string_literal: true +require 'bundler/setup' # Set up gems listed in the Gemfile. require 'rspec/core/rake_task' +require 'rubocop/rake_task' +require 'bundler/gem_tasks' -desc 'Run specs' +desc 'Run style checker' +RuboCop::RakeTask.new(:rubocop) do |task| + task.fail_on_error = true +end + RSpec::Core::RakeTask.new(:spec) -task :default => :spec +task ci: [:rubocop] do + Rake::Task['spec'].invoke +end + +task default: :ci