motion-accessibility 3.0.2 → 3.0.3

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: fa9d5fbbbfed02892576e8155821914ddf559d44
4
- data.tar.gz: e046e9b1522650fbb2535dd623fdfc166e4a6097
3
+ metadata.gz: 819af2675decd0bce413fe497d7383140fe6002e
4
+ data.tar.gz: adf5becb4d1972e68aa725b484e634ea37ec0d69
5
5
  SHA512:
6
- metadata.gz: 875cfddcb1ac420b8ede156c145f595325d7e56b4d296162c7fff8a19232a9cef4f33fd23d7761f9c0d5e06a87ab112c3ca1f245f09e99634f6b3b753bf32ab2
7
- data.tar.gz: ccceddfad64f935dbb506495657ccd3b0829a75920e31d8abf23e10ce2caba185ffefd8b7267206cfbe2fd757781301c91ea4376f7606219a2072125d79659ae
6
+ metadata.gz: abe03c5e214f4a09599027896d52ce4b53b2c299b40410976989e65ebd142532a32713a8385634253aa6907c74afbabaa463e3a35034096e428e68970595f092
7
+ data.tar.gz: ba04d69277795cb9a4aadc31a5d4a18602a0664dd0cab221aeed4610d6852a94e6bb2268955c19aa4af440dcbf28f99bcd973a35f6f353b2d82286e4e77f998b
data/README.md CHANGED
@@ -56,7 +56,9 @@ Browsing UIView
56
56
  => nil
57
57
  ```
58
58
 
59
- You can refresh the browser by passing the `:refresh` or `:top` keyword.
59
+ You can return to the top of the view hierarchy by using `:top`. This also refreshes the browser.
60
+
61
+ You can refresh a table with `:refresh`.
60
62
 
61
63
  You may pass the `:scroll` keyword to scroll a UIScrollView or descendants, such as a UITableView. This still has some minor issues .
62
64
 
@@ -50,7 +50,7 @@ A11y::Console.init unless $browser_current
50
50
  A11y::Console.start_refreshing
51
51
  request=0 if request==:back
52
52
  if request.nil?
53
- elsif request==:top||request==:refresh
53
+ elsif request==:top
54
54
  A11y::Console.init
55
55
  $browser_current=$browser_tree
56
56
  $browser_path.clear
@@ -59,6 +59,9 @@ raise "You cannot go back any further" if $browser_path.length<2
59
59
  $browser_path.pop
60
60
  $browser_current=$browser_path.last
61
61
  A11y::Console.init unless A11y::Data[:refresh]
62
+ elsif request==:refresh
63
+ raise "This view cannot refresh." unless $browser_current.view.respond_to?(:reloadData)
64
+ $browser_current.view.reloadData
62
65
  elsif request==:scroll
63
66
  raise "This view cannot scroll" unless A11y::Console.scrollable_view?($browser_current.view)
64
67
  below=CGRect.new([0, $browser_current.view.size.height], $browser_current.view.size)
@@ -47,7 +47,7 @@ when "UITableViewCellAccessibilityElement"
47
47
  raise "Could not get the UITableView" unless sv.kind_of?(UITableView)
48
48
  index=options[:index]||sv.indexPathForCell(view.tableViewCell)
49
49
  raise "Could not get the index" unless index
50
- sv.delegate.tableView(self, didSelectRowAtIndexPath: index)
50
+ view.container.delegate.tableView(view.container, didSelectRowAtIndexPath: index)
51
51
  when "UINavigationItemButtonView"
52
52
  view.superview.delegate.popViewControllerAnimated(true)
53
53
  else
@@ -59,7 +59,7 @@ 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
+ control.sub!(/UITableViewCell(AccessibilityElement)?/, "Table cell") if control
63
63
  if @view.class==UITableViewCell
64
64
  name=view.text
65
65
  elsif @view.class==UITableViewCellAccessibilityElement
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.2
4
+ version: 3.0.3
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-06-23 00:00:00.000000000 Z
11
+ date: 2014-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake