run_loop 2.1.8 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/run_loop.rb +17 -17
- data/lib/run_loop/core.rb +1 -1
- data/lib/run_loop/device_agent/client.rb +1 -1
- data/lib/run_loop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27742f67d963e5adb2a2593eacf8a2c2424fa91d
|
4
|
+
data.tar.gz: d45659fcb0afe6f1ca718258f79151855b3de433
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7740754d0a410b6309f93b7798182a439cf792d6abaa2861dc6a163a444937e39853fb0e550fa6e4b025cc575a265628f0f52df3a0d338a86da3bd5060cf37ef
|
7
|
+
data.tar.gz: 52faa616a1eee66cedf4889bac0b1d6b43f6fce7f52574b635b2e4bf1281c8445ba6e8889819af1b1c4fd4a8d2dd9309f112ccb9be3983dd1e3165f59aefea04
|
data/lib/run_loop.rb
CHANGED
@@ -108,8 +108,8 @@ module RunLoop
|
|
108
108
|
device = Device.detect_device(cloned_options, xcode, simctl, instruments)
|
109
109
|
cloned_options[:device] = device
|
110
110
|
|
111
|
-
|
112
|
-
if
|
111
|
+
automator = RunLoop.detect_automator(cloned_options, xcode, device)
|
112
|
+
if automator == :device_agent
|
113
113
|
RunLoop::DeviceAgent::Client.run(cloned_options)
|
114
114
|
else
|
115
115
|
if RunLoop::Instruments.new.instruments_app_running?
|
@@ -247,7 +247,7 @@ Please quit the Instruments.app and try again.)
|
|
247
247
|
#
|
248
248
|
# @param [RunLoop::Xcode] xcode The active Xcode
|
249
249
|
# @param [RunLoop::Device] device The device under test.
|
250
|
-
def self.
|
250
|
+
def self.default_automator(xcode, device)
|
251
251
|
# TODO XTC support
|
252
252
|
return :instruments if RunLoop::Environment.xtc?
|
253
253
|
|
@@ -286,21 +286,21 @@ $ DEVELOPER_DIR=/path/to/Xcode/7.3.1/Xcode.app/Contents/Developer cucumber
|
|
286
286
|
# @param [Hash] options The options passed by the user
|
287
287
|
# @param [RunLoop::Xcode] xcode The active Xcode
|
288
288
|
# @param [RunLoop::Device] device The device under test
|
289
|
-
def self.
|
289
|
+
def self.detect_automator(options, xcode, device)
|
290
290
|
# TODO XTC support
|
291
291
|
return :instruments if RunLoop::Environment.xtc?
|
292
292
|
|
293
|
-
|
293
|
+
automator = options[:automator]
|
294
294
|
|
295
|
-
if
|
295
|
+
if automator
|
296
296
|
if xcode.version_gte_8?
|
297
|
-
if
|
297
|
+
if automator == :instruments
|
298
298
|
raise RuntimeError, %Q[
|
299
|
-
Incompatible :
|
299
|
+
Incompatible :automator option for active Xcode.
|
300
300
|
|
301
|
-
Detected :
|
301
|
+
Detected :automator => :instruments and Xcode #{xcode.version}.
|
302
302
|
|
303
|
-
Don't set the :
|
303
|
+
Don't set the :automator option unless you are gem maintainer.
|
304
304
|
|
305
305
|
]
|
306
306
|
elsif device.version < RunLoop::Version.new("9.0")
|
@@ -318,25 +318,25 @@ You can rerun your test if you have Xcode 7 installed:
|
|
318
318
|
|
319
319
|
$ DEVELOPER_DIR=/path/to/Xcode/7.3.1/Xcode.app/Contents/Developer cucumber
|
320
320
|
|
321
|
-
Don't set the :
|
321
|
+
Don't set the :automator option unless you are gem maintainer.
|
322
322
|
|
323
323
|
]
|
324
324
|
end
|
325
325
|
end
|
326
326
|
|
327
|
-
if ![:device_agent, :instruments].include?(
|
327
|
+
if ![:device_agent, :instruments].include?(automator)
|
328
328
|
raise RuntimeError, %Q[
|
329
|
-
Invalid :
|
329
|
+
Invalid :automator option: #{automator}
|
330
330
|
|
331
|
-
Allowed
|
331
|
+
Allowed automators: :device_agent or :instruments.
|
332
332
|
|
333
|
-
Don't set the :
|
333
|
+
Don't set the :automator option unless you are gem maintainer.
|
334
334
|
|
335
335
|
]
|
336
336
|
end
|
337
|
-
|
337
|
+
automator
|
338
338
|
else
|
339
|
-
RunLoop.
|
339
|
+
RunLoop.default_automator(xcode, device)
|
340
340
|
end
|
341
341
|
end
|
342
342
|
end
|
data/lib/run_loop/core.rb
CHANGED
@@ -222,7 +222,7 @@ means that the APP variable is pointing to a .app that does not exist.
|
|
222
222
|
:repl_path => repl_path,
|
223
223
|
:log_file => log_file,
|
224
224
|
:results_dir => results_dir,
|
225
|
-
:
|
225
|
+
:automator => :instruments
|
226
226
|
}
|
227
227
|
|
228
228
|
uia_timeout = options[:uia_timeout] || RunLoop::Environment.uia_timeout || 10
|
@@ -85,7 +85,7 @@ $ xcrun security find-identity -v -p codesigning
|
|
85
85
|
:cbx_launcher => cbx_launcher.name,
|
86
86
|
:udid => device.udid,
|
87
87
|
:app => bundle_id,
|
88
|
-
:
|
88
|
+
:automator => :device_agent,
|
89
89
|
:code_sign_identity => code_sign_identity
|
90
90
|
}
|
91
91
|
RunLoop::Cache.default.write(cache)
|
data/lib/run_loop/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run_loop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-09-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|