Sha256: 5392c740a164e3a756fea51d466aa7ebde5c2a5da04aed40ac70f43ad7b46582

Contents?: true

Size: 803 Bytes

Versions: 8

Compression:

Stored size: 803 Bytes

Contents

guard :rspec, cmd: 'bundle exec rspec' do
  watch(%r{^spec/phut/.+_spec\.rb$})
  watch(%r{^lib/phut/(.+)\.rb$})     { |m| "spec/phut/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb')  { 'spec' }
end

guard :bundler do
  watch('Gemfile')
  watch(/^.+\.gemspec/)
end

guard :rubocop, all_on_start: false do
  watch('Gemfile')
  watch('Guardfile')
  watch('Rakefile')
  watch('bin/phut')
  watch(/.+\.rake$/)
  watch(/.+\.rb$/)
  watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end

guard 'cucumber', cli: '--tags ~@sudo --tags ~@shell' do
  watch('bin/phut') { 'features' }
  watch(%r{^features/.+\.feature$})
  watch(%r{^features/support/.+$}) { 'features' }
  watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m|
    Dir[File.join("**/#{m[1]}.feature")][0] || 'features'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phut-0.6.6 Guardfile
phut-0.6.5 Guardfile
phut-0.6.4 Guardfile
phut-0.6.3 Guardfile
phut-0.6.2 Guardfile
phut-0.6.1 Guardfile
phut-0.6.0 Guardfile
phut-0.5.0 Guardfile