Sha256: 162a6f1def3ec262b4d1ea489298b552fa3c718341a736eef3227b5a6690bb5d

Contents?: true

Size: 672 Bytes

Versions: 2

Compression:

Stored size: 672 Bytes

Contents

# encoding: utf-8

guard :bundler do
  watch('Gemfile')
end

guard :rspec, :all_on_start => false, :all_after_pass => false, :cli => '--fail-fast' do
  # run all specs if the spec_helper or supporting files files are modified
  watch('spec/spec_helper.rb')                      { 'spec/unit' }
  watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { 'spec/unit' }

  # run unit specs if associated lib code is modified
  watch(%r{\Alib/(.+)\.rb\z})                                         { 'spec' }
  watch("lib/#{File.basename(File.expand_path('../', __FILE__))}.rb") { 'spec' }

  # run a spec if it is modified
  watch(%r{\Aspec/(?:unit|integration)/.+_spec\.rb\z})
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unparser-0.0.2 Guardfile
unparser-0.0.1 Guardfile