Sha256: 829dd699cfd954da34e306682c9b61336d635057e5f6f3524937746736bc35b1

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rake/testtask'
require 'rubocop/rake_task'

desc 'Run specs'
RSpec::Core::RakeTask.new(:spec) do |t|
  t.pattern = Dir.glob('spec/**/*_spec.rb')
end

desc 'Run tests'
Rake::TestTask.new(:test) do |t|
  t.libs << 'test'
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
end

desc 'Run lint'
RuboCop::RakeTask.new

namespace 'doc' do
  desc 'Generate README and preview in browser'
  task 'readme' do
    sh 'markdown README.md > README.html && open README.html'
  end
end

task default: %i[spec test rubocop]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
with_model-2.1.6 Rakefile