Sha256: a5caca09e9b6e96034b9a4efeb948a105faedf8c88c860dbb12d6eeee31ad6b5

Contents?: true

Size: 760 Bytes

Versions: 12

Compression:

Stored size: 760 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.1
if RUBY_VERSION >= '2.1'
  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

12 entries across 12 versions & 1 rubygems

Version Path
update_repo-0.9.10 Rakefile
update_repo-0.9.9 Rakefile
update_repo-0.9.8 Rakefile
update_repo-0.9.7 Rakefile
update_repo-0.9.6 Rakefile
update_repo-0.9.5 Rakefile
update_repo-0.9.4 Rakefile
update_repo-0.9.3 Rakefile
update_repo-0.9.2 Rakefile
update_repo-0.9.1 Rakefile
update_repo-0.9.0 Rakefile
update_repo-0.8.8 Rakefile