motion-accessibility 3.0.1 → 3.0.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa9d5fbbbfed02892576e8155821914ddf559d44
|
|
4
|
+
data.tar.gz: e046e9b1522650fbb2535dd623fdfc166e4a6097
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 875cfddcb1ac420b8ede156c145f595325d7e56b4d296162c7fff8a19232a9cef4f33fd23d7761f9c0d5e06a87ab112c3ca1f245f09e99634f6b3b753bf32ab2
|
|
7
|
+
data.tar.gz: ccceddfad64f935dbb506495657ccd3b0829a75920e31d8abf23e10ce2caba185ffefd8b7267206cfbe2fd757781301c91ea4376f7606219a2072125d79659ae
|
data/lib/project/constants.rb
CHANGED
|
@@ -199,13 +199,13 @@ end
|
|
|
199
199
|
|
|
200
200
|
Touchable_Types = ["UITextField", "UIButton", "UIPickerView", "UIDatePicker",
|
|
201
201
|
"UISegmentedControl", "UISlider", "UIStepper", "UISwitch",
|
|
202
|
-
"UITableViewCell", "UITabBarButton","UINavigationItemButtonView"]
|
|
202
|
+
"UITableViewCell", "UITableViewCellAccessibilityElement", "UITabBarButton","UINavigationItemButtonView"]
|
|
203
203
|
|
|
204
204
|
Ignored_Views = ["UILayoutContainerView", "UITransitionView", "UINavigationTransitionView", "UIViewControllerWrapperView", "UITableViewCellContentView", "UINavigationItemView", "UITableViewWrapperView"]
|
|
205
205
|
|
|
206
206
|
Ignored_ImageViews = ["UINavigationBar", "UITabBar", "UITableView"]
|
|
207
207
|
|
|
208
|
-
Reverse_Views = ["
|
|
208
|
+
Reverse_Views = ["UINavigationBar", "UITabBar"]
|
|
209
209
|
|
|
210
210
|
View_Names = {"UINavigationItemButtonView" => "Back Button"}
|
|
211
211
|
|
|
@@ -43,6 +43,11 @@ raise "Could not get the UITableView" unless sv.kind_of?(UITableView)
|
|
|
43
43
|
index=options[:index]||sv.indexPathForCell(view)
|
|
44
44
|
raise "Could not get the index" unless index
|
|
45
45
|
sv.delegate.tableView(self, didSelectRowAtIndexPath: index)
|
|
46
|
+
when "UITableViewCellAccessibilityElement"
|
|
47
|
+
raise "Could not get the UITableView" unless sv.kind_of?(UITableView)
|
|
48
|
+
index=options[:index]||sv.indexPathForCell(view.tableViewCell)
|
|
49
|
+
raise "Could not get the index" unless index
|
|
50
|
+
sv.delegate.tableView(self, didSelectRowAtIndexPath: index)
|
|
46
51
|
when "UINavigationItemButtonView"
|
|
47
52
|
view.superview.delegate.popViewControllerAnimated(true)
|
|
48
53
|
else
|
|
@@ -59,13 +59,11 @@ display=Array.new
|
|
|
59
59
|
control=@view.class.to_s
|
|
60
60
|
control=nil if A11y::View_Names[control]
|
|
61
61
|
control="Superview #{control}" if index==0
|
|
62
|
+
control.sub!(/UITableViewCell(AccessibilityElement)?/, "Table cell")
|
|
62
63
|
if @view.class==UITableViewCell
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
end
|
|
67
|
-
raise "Could not find the UITableViewCell's label" unless label.kind_of?(UILabel)
|
|
68
|
-
name=label.text
|
|
64
|
+
name=view.text
|
|
65
|
+
elsif @view.class==UITableViewCellAccessibilityElement
|
|
66
|
+
name=view.tableViewCell.text
|
|
69
67
|
elsif @view.class==UITextField
|
|
70
68
|
name=@view.text
|
|
71
69
|
else
|
|
@@ -115,8 +113,7 @@ if A11y::Element.container?(view)
|
|
|
115
113
|
subview_tree=self.build(element, tree)
|
|
116
114
|
subviews<<subview_tree
|
|
117
115
|
end
|
|
118
|
-
|
|
119
|
-
if view.respond_to?(:subviews)
|
|
116
|
+
elsif view.respond_to?(:subviews)
|
|
120
117
|
view.subviews.each do |subview|
|
|
121
118
|
subview_tree=self.build(subview, tree)
|
|
122
119
|
if self.ignore_view?(subview)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Austin Seraphin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
version: '0'
|
|
67
67
|
requirements: []
|
|
68
68
|
rubyforge_project:
|
|
69
|
-
rubygems_version: 2.0.
|
|
69
|
+
rubygems_version: 2.0.3
|
|
70
70
|
signing_key:
|
|
71
71
|
specification_version: 4
|
|
72
72
|
summary: This gem provides easy ruby-like wrappers around the protocols which interact
|