run_loop 1.5.3 → 1.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a6a812fac74ce686b9501edae905826812cf6e1
4
- data.tar.gz: e2dcad70da420dcacc3c438c737b6fb3b9483699
3
+ metadata.gz: 2912f8769ebd18c671989ea3db4dcf73e22522d0
4
+ data.tar.gz: f1463e434006a9cab612ff2a574169806c992842
5
5
  SHA512:
6
- metadata.gz: 33a12720abdb976ce512c27d3df0cd57e6c13a5c957e6bbae8e7f7af39846c781cfa0f5608b9084ef408f0d5526914e7639deef0ace8319bef5fa11d47bf8449
7
- data.tar.gz: ae2f20ae670f32d1171aef066c1c41c5c76b38b2b187058077ad6611c9ca53f6cbdb9feb61491c6d6ac9bacbac68011e422d411717fc23c50468721fd038ab41
6
+ metadata.gz: f1a1a854eab024c26b38a9db6d5c9b6ee5c000acfcd9858cc6a82cf27f0acddc1566749fc2d0981778e34312568cf42f2559902846800980dc3bcb5b86a84b4a
7
+ data.tar.gz: ebd998b3cfbdd5a10ecd1d053bf7ff7a79ff8fb15088b760fe75e83da4b63738e69ccfccab4ce1d088fdfdd84c22b938f77d5a56ffd9976afeb3cadabe3fb307
@@ -241,7 +241,30 @@ Please update your sources to pass an instance of RunLoop::Xcode))
241
241
  def spawn_arguments(automation_template, options)
242
242
  array = ['instruments']
243
243
  array << '-w'
244
- array << options[:udid]
244
+
245
+ # Xcode 7 simulators must be launched with UDID to avoid
246
+ # Ambiguous device name/identifier errors (from instruments)
247
+ if xcode.version_gte_7?
248
+ udid = options[:udid]
249
+
250
+ if udid[DEVICE_UDID_REGEX, 0]
251
+ array << udid
252
+ else
253
+ match = simulators.find do |simulator|
254
+ [simulator.name == udid,
255
+ simulator.udid == udid,
256
+ simulator.instruments_identifier(xcode) == udid].any?
257
+ end
258
+
259
+ if match
260
+ array << match.udid
261
+ else
262
+ array << udid
263
+ end
264
+ end
265
+ else
266
+ array << options[:udid]
267
+ end
245
268
 
246
269
  trace = options[:results_dir_trace]
247
270
  if trace
@@ -291,6 +291,8 @@ module RunLoop
291
291
 
292
292
  RunLoop.log_debug("Installed #{app} on CoreSimulator #{device.udid}")
293
293
 
294
+ clear_device_launch_csstore
295
+
294
296
  true
295
297
  end
296
298
 
@@ -452,6 +454,19 @@ module RunLoop
452
454
  in_state
453
455
  end
454
456
 
457
+ # @!visibility private
458
+ def device_caches_dir
459
+ @device_caches_dir ||= File.join(device_data_dir, 'Library', 'Caches')
460
+ end
461
+
462
+ # @!visibility private
463
+ def clear_device_launch_csstore
464
+ glob = File.join(device_caches_dir, "com.apple.LaunchServices-*.csstore")
465
+ Dir.glob(glob) do | ccstore |
466
+ FileUtils.rm_f ccstore
467
+ end
468
+ end
469
+
455
470
  # @!visibility private
456
471
  def reset_app_sandbox_internal_shared
457
472
  [app_documents_dir, app_tmp_dir].each do |dir|
@@ -18,7 +18,7 @@ module RunLoop
18
18
 
19
19
  # @deprecated 1.5.0 - replaced by #xcode
20
20
  def xctools
21
- RunLoop.deprecated('1.5.0', 'Replaced by RunLoop::Xcode')
21
+ RunLoop.deprecated('1.5.0', 'Replaced by RunLoop::Xcode') if RunLoop::Environment.debug?
22
22
  @xctools ||= RunLoop::XCTools.new
23
23
  end
24
24
 
@@ -1,5 +1,5 @@
1
1
  module RunLoop
2
- VERSION = '1.5.3'
2
+ VERSION = '1.5.4'
3
3
 
4
4
  # A model of a software release version that can be used to compare two versions.
5
5
  #
@@ -213,7 +213,11 @@ function isLocationPrompt(alert) {
213
213
  ["OK", /Would Like to Access Your Calendar/],
214
214
  ["OK", /Would Like to Access Your Reminders/],
215
215
  ["OK", /Would Like to Access Your Motion Activity/],
216
- ["OK", /Would Like to Access the Camera/]
216
+ ["OK", /Would Like to Access the Camera/],
217
+
218
+ //iOS 9 - English
219
+ ["OK", /Would Like to Access Your Motion & Fitness Activity/],
220
+ ["OK", /Would Like Access to Twitter Accounts/]
217
221
  ],
218
222
  ans, exp,
219
223
  txt;
@@ -218,10 +218,10 @@ function isLocationPrompt(alert) {
218
218
  var exps = [
219
219
  ["OK", /vil bruge din aktuelle placering/],
220
220
  ["OK", /Would Like to Use Your Current Location/],
221
+ ["Ja", /Darf (?:.)+ Ihren aktuellen Ort verwenden/],
221
222
  ["OK", /Would Like to Send You Notifications/],
222
223
  ["OK", /would like to send you Push Notifications/],
223
224
  ["Allow", /access your location/],
224
- ["Ja", /Darf (?:.)+ Ihren aktuellen Ort verwenden/],
225
225
  ["OK", /Would Like to Access Your Photos/],
226
226
  ["OK", /Would Like to Access Your Contacts/],
227
227
  ["OK", /Location Accuracy/],
@@ -231,7 +231,11 @@ function isLocationPrompt(alert) {
231
231
  ["OK", /Would Like to Access Your Calendar/],
232
232
  ["OK", /Would Like to Access Your Reminders/],
233
233
  ["OK", /Would Like to Access Your Motion Activity/],
234
- ["OK", /Would Like to Access the Camera/]
234
+ ["OK", /Would Like to Access the Camera/],
235
+
236
+ //iOS 9 - English
237
+ ["OK", /Would Like to Access Your Motion & Fitness Activity/],
238
+ ["OK", /Would Like Access to Twitter Accounts/]
235
239
  ],
236
240
  ans, exp,
237
241
  txt;
@@ -213,7 +213,11 @@ function isLocationPrompt(alert) {
213
213
  ["OK", /Would Like to Access Your Calendar/],
214
214
  ["OK", /Would Like to Access Your Reminders/],
215
215
  ["OK", /Would Like to Access Your Motion Activity/],
216
- ["OK", /Would Like to Access the Camera/]
216
+ ["OK", /Would Like to Access the Camera/],
217
+
218
+ //iOS 9 - English
219
+ ["OK", /Would Like to Access Your Motion & Fitness Activity/],
220
+ ["OK", /Would Like Access to Twitter Accounts/]
217
221
  ],
218
222
  ans, exp,
219
223
  txt;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: run_loop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -341,4 +341,3 @@ specification_version: 4
341
341
  summary: The bridge between Calabash iOS and Xcode command-line tools like instruments
342
342
  and simctl.
343
343
  test_files: []
344
- has_rdoc: