tasks/flay.rake

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

begin
  require 'rake/tasklib'
  require 'flay'
  require 'flay_task'
  FlayTask.new do |t|
    t.dirs = FileList['lib/**/*.rb'].map do |each|
      each[%r{[^/]+}]
    end.uniq
    t.verbose = true
  end
rescue LoadError
  task :flay do
    $stderr.puts 'Flay is disabled'
  end
end