Sha256: e324c41b1e0e40b96d9721ac556e1c3b5f18575c633247159b873848a81ae075

Contents?: true

Size: 758 Bytes

Versions: 6

Compression:

Stored size: 758 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, :inch, :build]

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
update_repo-0.8.6 Rakefile
update_repo-0.8.5 Rakefile
update_repo-0.8.4 Rakefile
update_repo-0.8.3 Rakefile
update_repo-0.8.2 Rakefile
update_repo-0.8.1 Rakefile