Sha256: 4e6537e72105d8365e2ad9e9baa78849cd166600b380685d7f23f6d41ed14bad

Contents?: true

Size: 889 Bytes

Versions: 11

Compression:

Stored size: 889 Bytes

Contents

begin
  require 'bundler'
  Bundler::GemHelper.install_tasks
rescue LoadError
  # ignore if bundler does not exist
  warn 'Bundler not found'
end

require 'rubygems'
require 'rake/clean'

task default: %i[test rubocop]

desc 'Check with rubocop'
task :rubocop do
  begin
    require 'rubocop/rake_task'
    RuboCop::RakeTask.new
  rescue LoadError
    warn 'rubocop not found'
  end
end

desc 'Run tests'
task :test, :target do |_, argv|
  if argv[:target].nil?
    ruby('test/run_test.rb')
  else
    ruby('test/run_test.rb', "--pattern=#{argv[:target]}")
  end
end

begin
  require 'rdoc/task'
  Rake::RDocTask.new do |rdoc|
    version = File.exist?('VERSION') ? File.read('VERSION') : ''
    rdoc.rdoc_dir = 'rdoc'
    rdoc.title = "review #{version}"
    rdoc.rdoc_files.include('README*')
    rdoc.rdoc_files.include('lib/**/*.rb')
  end
rescue LoadError
  warn 'rdoc not found'
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
review-5.10.0 Rakefile
review-5.9.0 Rakefile
review-5.8.0 Rakefile
review-5.7.0 Rakefile
review-5.6.0 Rakefile
review-5.5.0 Rakefile
review-5.4.0 Rakefile
review-5.3.0 Rakefile
review-5.2.0 Rakefile
review-5.1.1 Rakefile
review-5.1.0 Rakefile