Sha256: 1a8ba9e0331610ec0ec9e8083bdd65f8d830e7316442ec974a3836a1a29a8e8c

Contents?: true

Size: 355 Bytes

Versions: 7

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'

def load_if_available(req_path)
  require req_path
  yield
rescue LoadError
  false # req not available
end

load_if_available('rspec/core/rake_task') { RSpec::Core::RakeTask.new(:spec) }
load_if_available('rubocop/rake_task') { RuboCop::RakeTask.new(:rubocop) }

task default: %i[rubocop spec]

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
frise-0.6.1 Rakefile
frise-0.6.0 Rakefile
frise-0.5.1 Rakefile
frise-0.4.1 Rakefile
frise-0.4.0 Rakefile
frise-0.3.0 Rakefile
frise-0.3.0.pre Rakefile