calabash-cucumber 0.9.108 → 0.9.109

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- calabash-cucumber (0.9.108)
4
+ calabash-cucumber (0.9.109)
5
5
  CFPropertyList
6
6
  bundler (~> 1.1)
7
7
  cucumber
@@ -1,16 +1,25 @@
1
1
  require 'sim_launcher'
2
+ require 'calabash-cucumber/launch/simulator_helper'
2
3
 
3
4
  def quit_sim
4
5
  `echo 'application "iPhone Simulator" quit' | osascript`
5
6
  end
7
+
6
8
  def calabash_sim_reset
7
9
  reset_script = File.expand_path("#{@script_dir}/reset_simulator.scpt")
8
10
  launcher = SimLauncher::Simulator.new
9
- sdks = SimLauncher::SdkDetector.new(launcher).available_sdk_versions
11
+
12
+ sdks = ENV['SDK_VERSIONS']
13
+ if sdks
14
+ sdks = sdks.split(",")
15
+ else
16
+ sdks = SimLauncher::SdkDetector.new(launcher).available_sdk_versions
17
+ end
18
+
10
19
  sdks.each do |sdk_path_str|
11
- launcher.launch_ios_app("DUMMY_APP",sdk_path_str,"ipad")
20
+ launcher.launch_ios_app(app_bundle_path, sdk_path_str, "ipad")
12
21
  system("osascript #{reset_script}")
13
- launcher.launch_ios_app("DUMMY_APP",sdk_path_str,"iphone")
22
+ launcher.launch_ios_app(app_bundle_path, sdk_path_str, "iphone")
14
23
  system("osascript #{reset_script}")
15
24
  end
16
25
 
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.108"
4
- FRAMEWORK_VERSION = "0.9.108"
3
+ VERSION = "0.9.109"
4
+ FRAMEWORK_VERSION = "0.9.109"
5
5
  end
6
6
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.108
4
+ version: 0.9.109
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-08 00:00:00.000000000 Z
12
+ date: 2012-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber