Skip to content

Commit

Permalink
Add a kicker file. Unfortunately it isn't working properly with RubyM…
Browse files Browse the repository at this point in the history
…otion yet.
  • Loading branch information
alloy committed Jul 7, 2012
1 parent b4ff939 commit d737cc5
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .kick
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
process do |files|
specs = files.take_and_map do |file|
case file
when %r{app/(.+)\.rb$}
Dir.glob("spec/#{$1}_spec.rb")
when %r{spec/.+_spec\.rb$}
file
end
end
execute "rake spec files=#{specs.uniq.join(',')}" unless specs.empty?
end
1 change: 1 addition & 0 deletions .rbenv-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.9.3-p194
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source :rubygems

gem 'motion-cocoapods'
gem 'kicker'
59 changes: 59 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
GEM
remote: http://rubygems.org/
specs:
activesupport (3.2.6)
i18n (~> 0.6)
multi_json (~> 1.0)
addressable (2.2.8)
cocoapods (0.7.0)
activesupport (~> 3.2.6)
colored (~> 1.2)
escape (~> 0.0.4)
faraday (~> 0.8.1)
json (~> 1.7.3)
octokit (~> 1.7.0)
open4 (~> 1.3.0)
rake (~> 0.9.0)
xcodeproj (~> 0.2.2)
colored (1.2)
escape (0.0.4)
faraday (0.8.1)
multipart-post (~> 1.1)
faraday_middleware (0.8.8)
faraday (>= 0.7.4, < 0.9)
ffi (1.0.11)
hashie (1.2.0)
i18n (0.6.0)
json (1.7.3)
kicker (2.6.1)
listen
listen (0.4.7)
rb-fchange (~> 0.0.5)
rb-fsevent (~> 0.9.1)
rb-inotify (~> 0.8.8)
motion-cocoapods (1.0.5)
cocoapods (>= 0.5.1)
multi_json (1.3.6)
multipart-post (1.1.5)
octokit (1.7.0)
addressable (~> 2.2)
faraday (~> 0.8)
faraday_middleware (~> 0.8)
hashie (~> 1.2)
multi_json (~> 1.3)
open4 (1.3.0)
rake (0.9.2.2)
rb-fchange (0.0.5)
ffi
rb-fsevent (0.9.1)
rb-inotify (0.8.8)
ffi (>= 0.5.0)
xcodeproj (0.2.3)
activesupport (~> 3.2.6)

PLATFORMS
ruby

DEPENDENCIES
kicker
motion-cocoapods
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ task 'spec' do
# if there are no errors
sh "osascript -e 'tell application \"iphone simulator\" to quit'"
end

namespace :spec do
desc "Auto-run specs"
task :kick do
sh "bundle exec kicker -c"
end
end

0 comments on commit d737cc5

Please sign in to comment.