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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c821b39f3467d6525a96b0a695bed9b4450ee98
4
- data.tar.gz: e6abe481288ab71e3b52d18dd9ff8ffc0856dc11
3
+ metadata.gz: 4150c018d1be2a6180a1d67dcaa55f7d20ce6cc4
4
+ data.tar.gz: 459d1f764c72c9e2c6613b1f1e4ac4f5e3da582d
5
5
  SHA512:
6
- metadata.gz: 92fda9f928f534f81fc2f45bf1d7b834c60927a7ec51880b79f15fcdbcb7775c8ec27d1ad9e5eb37435b196d78dbe5f8858ca4add557ceb2b97777611efbfe14
7
- data.tar.gz: 9c61a401a1ccb1fcef1b0d02140cc3be343981e9f7f265609e9cd12de1883bc5d93ecc0d7c8cc04aeca2901c19713e68a3c9875700b732f40fc94277e8f59119
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 remember to put this before the test.
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: '3.0'
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: A RubyMotion gem to make iOS accessibility easier for the sighted and
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. It has an accessibiity inspector,
75
- a text console, and automated testing. Making accessibility accessible!
73
+ with VoiceOver and other assistive technologies. Making accessibility accessible!
76
74
  test_files: []