実行結果に色をつけて、さらに Teminal notifier でデスクトップ通知もします。
bundler を使っている前提で。
gem 'guard-motion'
gem 'terminal-notifier-guard'
で、インストール
$ bundle install
Rakefile に以下のように書いてください。
# snip...
require 'bundler/setup' # この行と
Bundler.require :default # この行を追加
Motion::Project::App.setup do |app|
# snip...
Guard の設定をします。
$ guard init motion
Guardfile を編集します。
guard 'motion', env: {output: 'colorized'} do # この一行を変更している
watch(%r{^spec/.+_spec\.rb$})
# RubyMotion App example
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
# RubyMotion gem example
watch(%r{^lib/[^/]+/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
end
実行します。
$ guard start
以上。
追記
Rakefile について追記しました。
katsuyoshi さん、補足ありがとうございます。