run_loop 1.1.1.pre1 → 1.1.1.pre2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3863d38d0bd08af344764bccbfdd02fc74e305f
4
- data.tar.gz: f632568b5c4e520eefa771c9c2f94d1589963b2a
3
+ metadata.gz: 5aed9a3d8201f63a37840030f1a5f1546f1b797b
4
+ data.tar.gz: 416eaa3768ed27b66d77ea3c3df9e6c9a2f3aa6e
5
5
  SHA512:
6
- metadata.gz: 0a6d9b508d2c5478c4d47ffa55d2c194c593366664719ab5e32cebea49390f0b44bb9c990e235c90982e2c015aa6d97cd35688e856c094bd1470bfeb23668cf0
7
- data.tar.gz: 29fab379355e8b698dd89cbfcf4cd462c3ca8a033f8b17645e73a951a0ef5f12101cef85658c1f6ecd95d9d38541e43bfc89e0445fadd006826a59e151c656d0
6
+ metadata.gz: c2be0670d8965174a841caeb073066da24251dcb3c4e58585508fa5f5c122f4b763cd5cf565df61ef5e1b58dcd560bb84aa7786eaae9895a907e00de3df85d76
7
+ data.tar.gz: 56110caaf37b4b8eb4e080ea307a40854a4bc73ddacbb721f2f590ed4f477c45c3c10242bffeee3e3d877933103390a0cec5d488bda6ed84034fb1aeb37843aa
@@ -1,5 +1,5 @@
1
1
  module RunLoop
2
- VERSION = '1.1.1.pre1'
2
+ VERSION = '1.1.1.pre2'
3
3
 
4
4
  # A model of a software release version that can be used to compare two versions.
5
5
  #
@@ -288,15 +288,21 @@ var target = null,
288
288
  var sanitized = _sanitize(response),
289
289
  i = 0,
290
290
  MAX_TRIES=120,
291
- res;
291
+ res,
292
+ tmp;
292
293
 
293
294
  for (i=0; i<MAX_TRIES; i+=1) {
294
295
  UIALogger.logMessage("Write result...");
295
- target.frontMostApp().preferencesValueForKey(__calabashResponse);
296
- UIALogger.logMessage("Last response..."+__calabashResponse);
296
+ tmp = target.frontMostApp().preferencesValueForKey(__calabashResponse);
297
+ UIALogger.logMessage("Last response..."+tmp);
297
298
  target.frontMostApp().setPreferencesValueForKey(sanitized, __calabashResponse);
299
+ res = target.frontMostApp().preferencesValueForKey(__calabashRequest);
298
300
  res = target.frontMostApp().preferencesValueForKey(__calabashResponse);
299
- UIALogger.logMessage("Next response..."+__calabashResponse);
301
+ UIALogger.logMessage("Next response..."+(res && res['value']));
302
+ target.delay(0.1);
303
+ res = target.frontMostApp().preferencesValueForKey(__calabashResponse);
304
+ UIALogger.logMessage("Post delay response..."+(res && res['value']));
305
+
300
306
  if (res && res['index'] == sanitized['index']) {
301
307
  UIALogger.logMessage("Storage succeeded: "+ res['index']);
302
308
  return;
@@ -372,5 +378,5 @@ while (true) {
372
378
  continue;
373
379
  }
374
380
  _expectedIndex = Math.max(_actualIndex+1, _expectedIndex+1);
375
- target.delay(0.1);
381
+ target.delay(0.2);
376
382
  }
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: 1.1.1.pre1
4
+ version: 1.1.1.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow