Permalink
Browse files

Merge pull request #8 from colszowka/guardfile

Added Guardfile.
  • Loading branch information...
2 parents c670809 + 90e0755 commit 562d948b6c8f458e46bcdbf36bb947f4e2ca8dd5 @vizjerai committed Jul 2, 2012
Showing with 20 additions and 0 deletions.
  1. +10 −0 Gemfile
  2. +10 −0 Guardfile
View
10 Gemfile
@@ -2,3 +2,13 @@ source 'http://rubygems.org'
# Specify your gem's dependencies in guard-spin.gemspec
gemspec
+
+gem 'guard-bundler'
+gem 'guard-rspec'
+
+if RbConfig::CONFIG['target_os'] =~ /darwin/i
+ gem 'growl', :require => false
@bronson

bronson Oct 20, 2012

Why include growl? I'm on OS X and definitely don't want to use it.

guard-spin doesn't actually need growl, does it?

+end
+if RbConfig::CONFIG['target_os'] =~ /linux/i
+ gem 'libnotify', '~> 0.7.1', :require => false
+end
View
@@ -0,0 +1,10 @@
+guard 'bundler' do
+ watch('Gemfile')
+ watch(%r{^.+\.gemspec$})
+end
+
+guard 'rspec', :version => 2 do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { 'spec' }
+end

0 comments on commit 562d948

Please sign in to comment.