recipe :ruby

Kicker::Recipes::Ruby.runner_bin = 'bacon'

process do |files|
  specs = files.take_and_map do |file|
    case file
    when %r{lib/cocoapods/(.+?)\.rb$}
      s = Dir.glob("spec/**/#{$1}_spec.rb")
      s unless s.empty?
    end
  end
  Kicker::Recipes::Ruby.run_tests(specs)
end
