From e0cb21bf04e3934e13a6025a09f0e3e9cfaf016a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Rish=C3=B8j?= Date: Thu, 16 Oct 2014 12:59:38 +0200 Subject: [PATCH] Mention binary dependency in a post install message --- bin/sim_launcher | 0 lib/sim_launcher/simulator.rb | 2 +- sim_launcher.gemspec | 11 +++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) mode change 100644 => 100755 bin/sim_launcher diff --git a/bin/sim_launcher b/bin/sim_launcher old mode 100644 new mode 100755 diff --git a/lib/sim_launcher/simulator.rb b/lib/sim_launcher/simulator.rb index 543ecb9..ccbe151 100644 --- a/lib/sim_launcher/simulator.rb +++ b/lib/sim_launcher/simulator.rb @@ -105,7 +105,7 @@ def iphonesim_path return $1 end - raise "Didn't find ios-sim in your $PATH. Please install, e.g. using\n\n\tbrew install ios-sim" + raise "Didn't find the ios-sim binary in your $PATH.\n\nPlease install, e.g. using Homebrew:\n\tbrew install ios-sim\n\n" end end end diff --git a/sim_launcher.gemspec b/sim_launcher.gemspec index 13650e9..1eb21b9 100644 --- a/sim_launcher.gemspec +++ b/sim_launcher.gemspec @@ -16,5 +16,16 @@ Gem::Specification.new do |s| s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = ["lib"] + s.post_install_message = <<-EOS + + **************************************************************************************** + * sim_launcher expects the ios-sim binary in your $PATH. Install using e.g. Homebrew: * + * * + * brew install ios-sim * + * * + **************************************************************************************** + + EOS + s.add_dependency "sinatra" end