Sha256: e2ca9ada16570e204b81c5ce025fd85432195d652fb64b7fdd88bedadd543eed

Contents?: true

Size: 636 Bytes

Versions: 8

Compression:

Stored size: 636 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]

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

8 entries across 8 versions & 1 rubygems

Version Path
attr-gather-1.4.0 Rakefile
attr-gather-1.2.1 Rakefile
attr-gather-1.3.0 Rakefile
attr-gather-1.2.0 Rakefile
attr-gather-1.1.3 Rakefile
attr-gather-1.1.2 Rakefile
attr-gather-1.1.1 Rakefile
attr-gather-1.1.0 Rakefile