motion-accessibility 3.0 → 3.0.1
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/README.md +1 -1
- data/lib/project/motion-accessibility-console/tree.rb +2 -0
- data/lib/project/test.rb +4 -1
- metadata +3 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4150c018d1be2a6180a1d67dcaa55f7d20ce6cc4
|
|
4
|
+
data.tar.gz: 459d1f764c72c9e2c6613b1f1e4ac4f5e3da582d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 469077cb8fc6da75082d7eaf8547caa69739ee440e108d041cb5bbc1e4678345f5fe545a244066488cb659ad602511ddb0a93a7cbaa94e58ea4620c4a5365d08
|
|
7
|
+
data.tar.gz: 43d52b29c62a0741a4d383a5b660f3d4f5bf33e7ff98d358aa9267dc5d9bfee97af749ae273a67dbbd193d0f52cbf115bbf83f414dc5425fdd650b0d8dd72e8b
|
data/README.md
CHANGED
|
@@ -182,7 +182,7 @@ end
|
|
|
182
182
|
You may not want to do this however, because it can get confusing navigating down subview hierarchies, though it will report the path taken. Still, better to do that then nothing at all.
|
|
183
183
|
|
|
184
184
|
#### `Accessibility.doctor`
|
|
185
|
-
The accessibility doctor will report on what you have to do. It writes this to the NSLog. If given no arguments it will report on the last object called with the `accessible?` predicate. It returns the object with the problem, or nil if it finds nothing wrong. The accessibility inspector returns this as well. If a spec fails
|
|
185
|
+
The accessibility doctor will report on what you have to do. It writes this to the NSLog. If given no arguments it will report on the last object called with the `accessible?` predicate. It returns the object with the problem, or nil if it finds nothing wrong. The accessibility inspector returns this as well. If a spec fails, `accessible?` will call this automatically..
|
|
186
186
|
|
|
187
187
|
#### `accessibility_test`
|
|
188
188
|
Finally, you can specify which accessibility test applies to an object by setting this value. You may do this in the same way you set other attributes. You can use a setter:
|
|
@@ -106,6 +106,7 @@ A11y::Ignored_Views.member?(class_name)
|
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
def self.build(view=nil, superview=nil)
|
|
109
|
+
A11y::Test::Data[:quiet]=true
|
|
109
110
|
tree=self.new
|
|
110
111
|
view=UIApplication.sharedApplication.keyWindow if view.nil?
|
|
111
112
|
subviews=[]
|
|
@@ -129,6 +130,7 @@ end
|
|
|
129
130
|
tree.view=view
|
|
130
131
|
tree.subviews=subviews
|
|
131
132
|
tree.superview=superview
|
|
133
|
+
A11y::Test::Data[:quiet]=false
|
|
132
134
|
tree
|
|
133
135
|
end
|
|
134
136
|
|
data/lib/project/test.rb
CHANGED
|
@@ -4,6 +4,7 @@ module Accessibility
|
|
|
4
4
|
Path=Array.new
|
|
5
5
|
Data= {
|
|
6
6
|
depth: 0,
|
|
7
|
+
quiet: false,
|
|
7
8
|
debug: false
|
|
8
9
|
}
|
|
9
10
|
|
|
@@ -449,7 +450,9 @@ end
|
|
|
449
450
|
|
|
450
451
|
def accessible?
|
|
451
452
|
A11y::Test::Data[:depth]=0
|
|
452
|
-
A11y::Test.run_tests(self)
|
|
453
|
+
result=A11y::Test.run_tests(self)
|
|
454
|
+
A11y.doctor if RUBYMOTION_ENV=='test'&&!A11y::Test::Data[:quiet]
|
|
455
|
+
result
|
|
453
456
|
end
|
|
454
457
|
|
|
455
458
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: motion-accessibility
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Austin Seraphin
|
|
@@ -24,8 +24,7 @@ dependencies:
|
|
|
24
24
|
- - '>='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
|
-
description:
|
|
28
|
-
blind developer
|
|
27
|
+
description: AA RubyMotion wrapper around the UIAccessibility procotols
|
|
29
28
|
email:
|
|
30
29
|
- austin@austinseraphin.com
|
|
31
30
|
executables: []
|
|
@@ -71,6 +70,5 @@ rubygems_version: 2.0.6
|
|
|
71
70
|
signing_key:
|
|
72
71
|
specification_version: 4
|
|
73
72
|
summary: This gem provides easy ruby-like wrappers around the protocols which interact
|
|
74
|
-
with VoiceOver and other assistive technologies.
|
|
75
|
-
a text console, and automated testing. Making accessibility accessible!
|
|
73
|
+
with VoiceOver and other assistive technologies. Making accessibility accessible!
|
|
76
74
|
test_files: []
|