moredip/Sim-Launcher — pull request #8 by krukow (2012-10-09 19:32:15+00:00)
Title: support for starting and resetting (updated ios-sim dep)

Support for starting simulator without launch
(new ios-sim gem:
https://github.com/calabash/ios-sim/commit/84e2070bd952a8011cbfee4347e2d3a09b7d73bb
).

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