Skip to content
Browse files

Remove Guard dependencies. Use `rake spec:kick` for auto-test-running.

  • Loading branch information...
1 parent d66e82a commit 97840d459293675cf850c6e2175e76ccb7fdbcbe @alloy alloy committed Mar 26, 2012
Showing with 16 additions and 27 deletions.
  1. +11 −0 .kick
  2. +0 −3 Gemfile
  3. +0 −9 Gemfile.lock
  4. +0 −15 Guardfile
  5. +5 −0 Rakefile
View
11 .kick
@@ -12,3 +12,14 @@ process do |files|
end
Kicker::Recipes::Ruby.run_tests(specs)
end
+
+# Have written this so many times, probably should make a recipe out of it.
+process do |files|
+ files.each do |file|
+ case file
+ when 'Gemfile'
+ files.delete(file)
+ execute 'bundle install'
+ end
+ end
+end
View
3 Gemfile
@@ -6,9 +6,6 @@ group :development do
gem "xcodeproj", :git => "git://github.com/CocoaPods/Xcodeproj.git"
gem "bacon"
- gem "guard"
- gem "guard-shell"
- gem "growl"
gem "kicker"
gem "mocha-on-bacon"
gem "rake"
View
9 Gemfile.lock
@@ -10,11 +10,6 @@ GEM
addressable (2.2.7)
bacon (1.1.0)
crack (0.3.1)
- growl (1.0.3)
- guard (0.8.8)
- thor (~> 0.14.6)
- guard-shell (0.3.0)
- guard (>= 0.2.0)
kicker (2.5.0)
rb-fsevent
metaclass (0.0.1)
@@ -25,7 +20,6 @@ GEM
open4 (1.3.0)
rake (0.9.2.2)
rb-fsevent (0.9.0)
- thor (0.14.6)
vcr (2.0.0)
webmock (1.8.0)
addressable (>= 2.2.7)
@@ -36,9 +30,6 @@ PLATFORMS
DEPENDENCIES
bacon
- growl
- guard
- guard-shell
kicker
mocha-on-bacon
open4
View
15 Guardfile
@@ -1,15 +0,0 @@
-# A sample Guardfile
-# More info at https://github.com/guard/guard#readme
-
-def run_spec(s)
- `bundle exec bacon #{s}`
-end
-
-# parameters:
-# output => the formatted to use
-# backtrace => number of lines, nil = everything
-guard :shell do
- watch(%r{^lib/cocoapods/(.+)\.rb$}) { |m| run_spec("spec/unit/#{m[1]}_spec.rb") }
- watch(%r{spec/.+\.rb$}) { |s| run_spec(s) }
-end
-
View
5 Rakefile
@@ -94,6 +94,11 @@ namespace :spec do
FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
end
+ desc "Automatically run specs for updated files"
+ task :kick do
+ exec "bundle exec kicker -c"
+ end
+
desc "Run the unit specs"
task :unit => :unpack_fixture_tarballs do
sh "bundle exec bacon #{specs('unit/**')} -q"

0 comments on commit 97840d4

Please sign in to comment.
Something went wrong with that request. Please try again.