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 +1 -1
- data/bin/calabash-ios-sim.rb +12 -3
- data/lib/calabash-cucumber/version.rb +2 -2
- data/scripts/reset_simulator.scpt +0 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/bin/calabash-ios-sim.rb
CHANGED
@@ -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
|
-
|
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(
|
20
|
+
launcher.launch_ios_app(app_bundle_path, sdk_path_str, "ipad")
|
12
21
|
system("osascript #{reset_script}")
|
13
|
-
launcher.launch_ios_app(
|
22
|
+
launcher.launch_ios_app(app_bundle_path, sdk_path_str, "iphone")
|
14
23
|
system("osascript #{reset_script}")
|
15
24
|
end
|
16
25
|
|
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.
|
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-
|
12
|
+
date: 2012-10-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|