Sha256: 62dd6aec18002de34438fd84b245af0f1178e27b82a278f2529edb25b6f63c14

Contents?: true

Size: 463 Bytes

Versions: 3

Compression:

Stored size: 463 Bytes

Contents

#
# Ubi Guard
#
guard :rubocop, all_on_start: false, keep_failed: false, cli: ['-D'] do
  watch(/.+\.rb$/)
  watch(/(?:.+\/)?\.rubocop\.yml$/) { |m| File.dirname(m[0]) }
end

guard :rspec, cmd: 'bundle exec rspec' do
  watch(/^spec\/.+_spec\.rb$/)
  watch(/^lib\/(.+)\.rb$/)     { |m| "spec/#{m[1]}_spec.rb" }
  watch(/^generators\/(.+)\.rb$/) { |_m| 'spec/schemaless/worker_spec' }

  watch('lib/ubi.rb') { 'spec' }
  watch('spec/spec_helper.rb') { 'spec' }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ubi-0.0.8 Guardfile
ubi-0.0.7 Guardfile
ubi-0.0.5 Guardfile