
require 'guard/bundler'
require 'guard/rspec'

notification :growl
# notification :terminal_notifier

group :frontend do
  guard 'bundler' do
    watch('Gemfile')
    # Uncomment next line if Gemfile contain `gemspec' command
    watch(/^.+\.gemspec/)
  end
end

group :singleruby do

  guard 'rspec', :rvm => ['system'], :notification  => true  do

    watch(%r{^spec/.+_spec\.rb$})
    watch(%r{^lib/(.+)\.rb$})     { |m| "spec/#{m[1]}_spec.rb" }
    watch('spec/spec_helper.rb')  { "spec" }
  end

end

group :multirubies do

  guard 'rspec', :rvm => ['system', '1.9.3', '1.8.7'], :notification  => true  do

    watch(%r{^spec/.+_spec\.rb$})
    watch(%r{^lib/(.+)\.rb$})     { |m| "spec/#{m[1]}_spec.rb" }
    watch('spec/spec_helper.rb')  { "spec" }
  end

end




