Sha256: ed935fb60ae0cdee95cc9e74f0d8534240f80f08a19a0aa2e3de807a41f8c6c8

Contents?: true

Size: 640 Bytes

Versions: 1

Compression:

Stored size: 640 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'

begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new(:spec)
rescue LoadError
  warn 'Could not load rspec rake task'
end

begin
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new(:lint)
rescue LoadError
  warn 'Could not load rubocop rake task'
end

begin
  require 'yard'
  YARD::Rake::YardocTask.new(:doc)
rescue LoadError
  warn 'Could not load yarddoc rake task'
end

task default: %i[spec lint doc]

namespace :examples do
  desc 'Run all examples'
  task :run do
    Dir['examples/*.rb'].each do |filename|
      system "ruby #{filename}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attr-gather-1.5.1 Rakefile