Sha256: 876fac383adfd272264b193ff0966659516fca63bcd34b42137748b6764e2b98

Contents?: true

Size: 566 Bytes

Versions: 9

Compression:

Stored size: 566 Bytes

Contents

def watch_all
  # watch /lib/rspreadsheet/ files
  watch(%r{^lib/rspreadsheet/(.+).rb$}) do |m|
    "spec/#{m[1]}_spec.rb"
  end

  # watch /spec/ files
  watch(%r{^spec/(.+).rb$}) do |m|
    "spec/#{m[1]}.rb"
  end
end

# classical part
scope group: :normal

group :normal do
  guard 'rspec' do watch_all end
end

# see http://stackoverflow.com/questions/18501471/guard-how-to-run-specific-tags-from-w-in-guards-console
group :focus do
  guard 'rspec', cli: '--tag focus' do watch_all end
end

#group :f do
#  guard 'rspec', cli: '--tag focus' do watch_all end
#end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rspreadsheet-0.2.15 Guardfile
rspreadsheet-0.2.14 Guardfile
rspreadsheet-0.2.12 Guardfile
rspreadsheet-0.2.11 Guardfile
rspreadsheet-0.2.10 Guardfile
rspreadsheet-0.2.9 Guardfile
rspreadsheet-0.2.7 Guardfile
rspreadsheet-0.2.5 Guardfile
rspreadsheet-0.2.4 Guardfile