Sha256: 53fb98657c27b74a984ed22658ca36d29abc465d0742c1786f5e6d626b68e312

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
frise-0.2.0 Rakefile
frise-0.1.0 Rakefile