Sha256: 6053e0902dbc4bf0a60a8f81bbce54395a3385f532a1bc46a9505172871d7eab

Contents?: true

Size: 568 Bytes

Versions: 2

Compression:

Stored size: 568 Bytes

Contents

# typed: strict
# frozen_string_literal: true

guard :rspec, cmd: 'bin/rspec' do
  require 'guard/rspec/dsl'
  dsl = Guard::RSpec::Dsl.new(self)

  # RSpec files
  rspec = dsl.rspec
  watch(rspec.spec_helper) { rspec.spec_dir }
  watch(rspec.spec_support) { rspec.spec_dir }
  watch(rspec.spec_files)

  # Ruby files
  ruby = dsl.ruby
  dsl.watch_spec_files_for(ruby.lib_files)
end

guard :rubocop do
  watch(/.+\.rb$/)
  watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
end

guard(:shell) { watch(/(.*)_spec.rb/) { `mutant run --fail-fast` } }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
muina-0.2.8 Guardfile
muina-0.2.7 Guardfile