Sha256: 610a080bbcd133abc83159497e835dcac1b5c179fd354453661c777fe109a24b

Contents?: true

Size: 736 Bytes

Versions: 93

Compression:

Stored size: 736 Bytes

Contents

group :red_green_refactor, halt_on_fail: true do
  guard :rspec, cmd: "rspec", all_on_start: true do
    # run all specs if Gemfile.lock is modified
    watch('Gemfile.lock') { 'spec' }

    # run all specs if any library code is modified
    watch(%r{\Alib/.+\.rb\z}) { 'spec' }

    # run all specs if supporting files are modified
    watch('spec/spec_helper.rb') { 'spec' }
    watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { 'spec' }

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

    notification :tmux, display_message: true if ENV.key?('TMUX')
  end

  guard :rubocop do
    # run rubocop on modified file
    watch(%r{\Alib/.+\.rb\z})
    watch(%r{\Aspec/.+\.rb\z})
  end
end

Version data entries

93 entries across 93 versions & 4 rubygems

Version Path
rom-3.3.3 Guardfile
rom-3.3.2 Guardfile
rom-sql-1.3.5 Guardfile
rom-sql-1.3.4 Guardfile
rom-3.3.1 Guardfile
rom-sql-2.0.0.beta2 Guardfile
rom-3.3.0 Guardfile
rom-sql-2.0.0.beta1 Guardfile
rom-3.2.3 Guardfile
rom-sql-1.3.3 Guardfile
rom-sql-1.3.2 Guardfile
rom-sql-1.3.1 Guardfile
rom-3.2.2 Guardfile
rom-sql-1.3.0 Guardfile
rom-3.2.1 Guardfile
rom-yesql-0.5.1 Guardfile
rom-yesql-0.5.0 Guardfile
rom-sql-1.2.2 Guardfile
rom-3.2.0 Guardfile
rom-sql-1.2.1 Guardfile