Sha256: 256ecd9620a0da0ad0d403e184f6e53b394c341491a9c1b2f5fc6a2501ecd5b4

Contents?: true

Size: 414 Bytes

Versions: 4

Compression:

Stored size: 414 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

4 entries across 4 versions & 1 rubygems

Version Path
compact_index-0.14.0 Rakefile
compact_index-0.13.0 Rakefile
compact_index-0.12.1 Rakefile
compact_index-0.12.0 Rakefile