simple-view 0.6 → 0.6.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.
data/README.md CHANGED
@@ -4,7 +4,7 @@ RubyMotion DSL for UIKit.
4
4
 
5
5
  ## Change log
6
6
 
7
- __Version 0.6__
7
+ __Version 0.6.x__
8
8
 
9
9
  Breaking changes:
10
10
 
@@ -34,6 +34,8 @@ end
34
34
 
35
35
  `add` is renamed to `add_view` for clarity.
36
36
 
37
+ UIView#name is now an alias to UIView#accessibilityLabel
38
+
37
39
  ## Installation
38
40
 
39
41
  Add the gem to your Gemfile
@@ -1,5 +1,15 @@
1
1
  class UIView
2
- attr_accessor :name
2
+ def name
3
+ self.accessibilityLabel
4
+ end
5
+
6
+ def name= name
7
+ self.accessibilityLabel = name
8
+ end
9
+
10
+ def setName name
11
+ self.name = name
12
+ end
3
13
 
4
14
  def find name
5
15
  subviews.each do |subview|
@@ -1,7 +1,5 @@
1
1
  module SimpleView
2
2
  module Layout
3
- extend self
4
-
5
3
  def setup view, &block
6
4
  view_stack.push view
7
5
  block.call if block_given?
@@ -1,3 +1,3 @@
1
1
  module SimpleView
2
- VERSION = "0.6"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-view
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.6'
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-13 00:00:00.000000000 Z
12
+ date: 2013-02-14 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: RubyMotion DSL for UIKit
15
15
  email: