moredip/Sim-Launcher — pull request #11 by krukow (2012-11-16 09:50:38+00:00)
Title: Support for starting simulator without launch

Support for starting simulator without launch
(new ios-sim gem:
calabash/ios-sim@84e2070
).

Support for resetting simulator via applescript.

Example

krukow:~/github/Sim-Launcher$ rake install
sim_launcher 0.4.7 built to pkg/sim_launcher-0.4.7.gem
sim_launcher (0.4.7) installed
krukow:~/github/Sim-Launcher$ irb
irb(main):001:0> require 'sim_launcher'
=> true
irb(main):002:0> l=SimLauncher::Simulator.new
=> #
irb(main):003:0> l.reset
«class butT» Reset of window 1 of «class pcap» iPhone Simulator
«class butT» Reset of window 1 of «class pcap» iPhone Simulator
«class butT» Reset of window 1 of «class pcap» iPhone Simulator
«class butT» Reset of window 1 of «class pcap» iPhone Simulator
«class butT» Reset of window 1 of «class pcap» iPhone Simulator
«class butT» Reset of window 1 of «class pcap» iPhone Simulator
«class butT» Reset of window 1 of «class pcap» iPhone Simulator
«class butT» Reset of window 1 of «class pcap» iPhone Simulator
=> ""
irb(main):004:0> l.reset ["6.0"]
«class butT» Reset of window 1 of «class pcap» iPhone Simulator
«class butT» Reset of window 1 of «class pcap» iPhone Simulator