teacup 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
data/lib/dummy.rb
CHANGED
data/lib/teacup/version.rb
CHANGED
@@ -5,16 +5,15 @@ class UIView
|
|
5
5
|
# get one stylesheet by stylename
|
6
6
|
# my_view[:button] :button => #<UIButton..>
|
7
7
|
def viewWithStylename name
|
8
|
-
subviews.
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
end
|
8
|
+
view = subviews.find {|view| view.stylename == name}
|
9
|
+
return view if view
|
10
|
+
|
11
|
+
# found_subview will get assigned to the view we want, but the subview is
|
12
|
+
# what is returned.
|
13
|
+
found_subview = nil
|
14
|
+
view = subviews.find {|subview| found_subview = subview.viewWithStylename(name) }
|
15
|
+
return found_subview if view
|
16
|
+
|
18
17
|
nil # couldn't find it
|
19
18
|
end
|
20
19
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teacup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70165559986140 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,15 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
24
|
+
version_requirements: *70165559986140
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: rspec
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &70165559985480 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
30
|
- - ! '>='
|
@@ -37,12 +32,7 @@ dependencies:
|
|
37
32
|
version: '0'
|
38
33
|
type: :development
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
35
|
+
version_requirements: *70165559985480
|
46
36
|
description: ! 'Teacup is a community-driven DSL for making CSS-like styling, and
|
47
37
|
layouts for
|
48
38
|
|
@@ -121,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
111
|
version: '0'
|
122
112
|
requirements: []
|
123
113
|
rubyforge_project:
|
124
|
-
rubygems_version: 1.8.
|
114
|
+
rubygems_version: 1.8.11
|
125
115
|
signing_key:
|
126
116
|
specification_version: 3
|
127
117
|
summary: A community-driven DSL for creating user interfaces on iOS.
|