Sha256: 434ce87ecf2aff4d1ded6bc12a0c1e3ef9b12005a454e93fc58c56c7633b026a

Contents?: true

Size: 1.23 KB

Versions: 7

Compression:

Stored size: 1.23 KB

Contents

# frozen_string_literal: true

begin
  require 'dotenv/load'
rescue LoadError # rubocop:disable Lint/HandleExceptions
end

begin
  require 'bundler/gem_tasks'
rescue LoadError # rubocop:disable Lint/HandleExceptions
end

begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new(:spec) do |spec|
    spec.rspec_opts = '--tag ~remote'
  end
  namespace :spec do
    RSpec::Core::RakeTask.new(:all)
  end
  task(:default).prerequisites << task(:spec)
rescue LoadError # rubocop:disable Lint/HandleExceptions
end

begin
  require 'yard'
  require 'yard/rake/yardoc_task'
  YARD::Rake::YardocTask.new
rescue LoadError # rubocop:disable Lint/HandleExceptions
end

begin
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new
  namespace :rubocop do
    desc "Run 'rubocop --auto-gen-config'"
    task :todo do
      sh 'rubocop --auto-gen-config'
    end
  end
  task(:default).prerequisites << task(:rubocop)
rescue LoadError # rubocop:disable Lint/HandleExceptions
end

begin
  require 'rubycritic/rake_task'
  RubyCritic::RakeTask.new do |task|
    task.paths = FileList['**/*.rb'] - FileList['spec/**/*_spec.rb']
    task.options = '--no-browser' + (ENV['CI'] ? ' --format console' : '')
  end
rescue LoadError # rubocop:disable Lint/HandleExceptions
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
uu-0.2.2 Rakefile
uu-0.2.1 Rakefile
uu-0.2.0 Rakefile
uu-0.1.3 Rakefile
uu-0.1.2 Rakefile
uu-0.1.1 Rakefile
uu-0.1.0 Rakefile