Sha256: c28a3446f5e082fc9a7481ca9aa070df0bf8d7b09b7876bee2a4a3c07e8fdefc

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true
require "bundler/gem_tasks"

begin
  require "rspec/core/rake_task"

  desc "Run specs"
  RSpec::Core::RakeTask.new(:spec) do |t|
    t.rspec_opts = %w(--color)
  end

  begin
    require "rubocop/rake_task"
    RuboCop::RakeTask.new
  rescue LoadError
    task :rubocop
  end

  task :default => [:rubocop, :spec]
rescue LoadError => e
  # rspec won't exist on production
  nil
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
compact_index-0.11.0 Rakefile
compact_index-0.10.0 Rakefile