Sha256: 64920495c71754194bf25a9067a3b2c56dc1507f400e3311c2936f8526a6cc45

Contents?: true

Size: 728 Bytes

Versions: 1

Compression:

Stored size: 728 Bytes

Contents

require "bundler/gem_tasks"

unless Rake::Task.task_defined?('spec')
  begin
    require 'rspec/core/rake_task'
    RSpec::Core::RakeTask.new(:spec) do |t|
      t.pattern = "./spec/**/*_spec.rb"
      ENV['COVERAGE'] = 'true'
    end
  rescue LoadError
    $stdout.puts "RSpec failed to load; You won't be able to run tests."
  end
end

require 'rubocop/rake_task'
RuboCop::RakeTask.new do |task|
  task.requires << 'rubocop-rspec'
  task.options << "--config=.hound.yml"
end

require 'reek/rake/task'
Reek::Rake::Task.new do |task|
  task.verbose = true
end

require 'flay_task'
FlayTask.new do |task|
  task.verbose = true
  task.threshold = 20
end

task(default: ['rubocop', 'reek', 'flay', 'spec'])
task(release: :default)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
democritus-0.2.1 Rakefile