AXElements 7.0.0 → 7.0.1

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: 27c2ab0e5f551e930564c657754b5832410584c0
4
- data.tar.gz: 9be9780c14312a8c8d395b55e110e655762f90f0
3
+ metadata.gz: 9b6a0e8ddb41bf435b79ca03d077e928b41ded56
4
+ data.tar.gz: 56d36d5e645c0e68f9fdd11122525178bc3dd513
5
5
  SHA512:
6
- metadata.gz: 2534f8e74ec7d9ec97b2ff56e3053a554e0ca10fb52230ae9fc53d72c410a8205b4bd1b9cf4ac495f662918cd99ccb9e5967f94aa6e85cbb18d93b68472f04bb
7
- data.tar.gz: 8bac00e64a61e96c63b993230869dc09df7b224a787e4283b715f59e6ea95cbd0bc37f00d79a288f39ee9e7d92448d2402ac99e39f6ba56bd285259843825e7a
6
+ metadata.gz: cb7603372618b02f6d8d92765387f7af00c6b754eb83245d384104e5372dcae8ce26128b9b73b3e1f362c5ec1c9eeb4e33ae788e73ae8a101be52b03188b0f97
7
+ data.tar.gz: 0d663e7d7a47dd9ac49b6f048d0b23425f420b4ad0349dac198dbe1f9e9e851ec6fe1c5a2ceaaebd16babecc8a65f8a4f8906242eb633392aa911e15d7cc6b49
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- �>�U�k]� �<]xko
2
- Ʌދ]Q�V��W�b�}��+H=�*�K'eT����9��.:l���ʜ+�t'����o�S��AH:�p�g*O�c����B�{GjD���i60�^��,U8v���!�9J�;ve^�����n�{S�[�O4RV�t�t�C�Bi"\_��������Y���6d����Q'�M��,0C���n|�lX�vB���w�2�h��Gv�4Yx�!V�5���yca
1
+ 7�A��%^� �ὮN>��R��4l'����bb���Z�v.�{1Ϭ�o_�ӝ�Z8㩇4��ՙ�iO#��
@@ -1,3 +1,7 @@
1
+ # 7.0.1
2
+
3
+ * Workaround issue using `DSL#wait_for` with apps that become unresponsive when busy
4
+
1
5
  # 7.0.0
2
6
 
3
7
  * Compatibility with Yosemite (OS X 10.10)
@@ -399,7 +399,17 @@ module Accessibility::DSL
399
399
  timeout = filters.delete(:timeout) || 5
400
400
  start = Time.now
401
401
  until Time.now - start > timeout
402
- result = ancestor.search(descendant, filters, &block)
402
+ result = nil
403
+
404
+ begin
405
+ result = ancestor.search(descendant, filters, &block)
406
+ rescue RuntimeError => e
407
+ # This is a temporary workaround; accessibility_core should
408
+ # raise a specific error class for this issue or not use
409
+ # exceptions for this problem at all...
410
+ raise e unless e.message.match(/application is busy/)
411
+ end
412
+
403
413
  return result unless result.blank?
404
414
  sleep 0.1
405
415
  end
@@ -430,7 +440,17 @@ module Accessibility::DSL
430
440
  start = Time.now
431
441
  q = Accessibility::Qualifier.new(child, filters, &block)
432
442
  until Time.now - start > timeout
433
- result = parent.children.find { |x| q.qualifies? x }
443
+ result = nil
444
+
445
+ begin
446
+ result = parent.children.find { |x| q.qualifies? x }
447
+ rescue RuntimeError => e
448
+ # This is a temporary workaround; accessibility_core should
449
+ # raise a specific error class for this issue or not use
450
+ # exceptions for this problem at all...
451
+ raise e unless e.message.match(/application is busy/)
452
+ end
453
+
434
454
  return result unless result.blank?
435
455
  sleep 0.1
436
456
  end
@@ -4,7 +4,7 @@
4
4
  # The main AXElements namespace.
5
5
  module Accessibility
6
6
  # @return [String]
7
- VERSION = '7.0.0'
7
+ VERSION = '7.0.1'
8
8
 
9
9
  # @return [String]
10
10
  CODE_NAME = 'ニンフィア'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: AXElements
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rada
@@ -30,7 +30,7 @@ cert_chain:
30
30
  0WHcut5WdsOnrIkVkbvgxDUtQclWeulaIRqGkvnajtp2FJdRsi/n8zo3nAfeR6QM
31
31
  vkReJWGG0H8U/JJqYfQBZopYOUMnLJQxN+NA4w==
32
32
  -----END CERTIFICATE-----
33
- date: 2015-06-22 00:00:00.000000000 Z
33
+ date: 2015-09-01 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: mouse
metadata.gz.sig CHANGED
Binary file