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