Sha256: 5c488481993fee0ccc4feed1a5424c308108ded6efc3562d80ddc953b6d2d10d

Contents?: true

Size: 751 Bytes

Versions: 5

Compression:

Stored size: 751 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'inch/rake'

RSpec::Core::RakeTask.new(:spec)

# rubocop is not compatible with Ruby < 2.0
if RUBY_VERSION >= '2.0'
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new do |task|
    task.options << 'lib' << 'exe'
    task.fail_on_error = false
  end
else
  task :rubocop do
    # Empty task
  end
end

Inch::Rake::Suggest.new do |suggest|
  suggest.args << '--pedantic'
end

# reek is not compatible with Ruby < 2.0
if RUBY_VERSION >= '2.0'
  require 'reek/rake/task'
  Reek::Rake::Task.new do |t|
    t.fail_on_error = false
    t.verbose       = true
    t.reek_opts     = '-U'
  end
else
  task :reek do
    # Empty task
  end
end

task default: [:rubocop, :reek, :spec, :build]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
update_repo-0.8.0 Rakefile
update_repo-0.7.3 Rakefile
update_repo-0.7.2 Rakefile
update_repo-0.7.1 Rakefile
update_repo-0.7.0 Rakefile