stefan-kolb/nucleus

View on GitHub
Guardfile

Summary

Maintainability
Test Coverage
interactor :simple

guard 'bundler' do
  watch('Gemfile')
end

guard 'rack', server: 'thin' do
  watch('Gemfile.lock')
  watch('config.ru')
  watch(%r{^config|app|public|lib|schemas|scripts\/.*})
end

guard 'yard', port: '8808', cli: '--reload' do
  watch(%r{app\/.+\.rb})
  watch(%r{lib\/.+\.rb})
  watch(/.+\.md/)
end

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