Sha256: ee97496dbcb03092d6b113db970c915d5826801538f68e383d99bb8903d84164
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
scope(groups: %w(specs)) directories %w(spec lib) group :specs, halt_on_fail: true do guard :rspec, cmd: 'bundle exec rspec', failed_mode: :keep 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, all_on_start: false, cli: '--rails' do watch(%r{.+\.rb$}) { |m| m[0] } watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } end end # vim: ft=ruby
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jkf-0.5.2 | Guardfile |
jkf-0.5.1 | Guardfile |