Sha256: 7345091100f7db73bc109639bc45697fa9eb6e7d8a059b1266fb1bfad822f8de
Contents?: true
Size: 879 Bytes
Versions: 3
Compression:
Stored size: 879 Bytes
Contents
guard :rspec, cmd: 'bundle exec rspec --format=Fuubar' 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 :bundler do require 'guard/bundler' require 'guard/bundler/verify' helper = Guard::Bundler::Verify.new files = ['Gemfile'] files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) } # Assume files are symlinked from somewhere files.each { |file| watch(helper.real_path(file)) } end guard :rubocop, cli: ['--autocorrect', '--display-cop-names'] do watch('Gemfile') watch(%r{^(?!node_modules/).+\.rb$}) watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
maid-0.10.0 | Guardfile |
maid-0.10.0.pre.alpha.3 | Guardfile |
maid-0.10.0.pre.alpha.2 | Guardfile |