teacup 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ class DummyScrollView < UIScrollView
10
10
  private
11
11
  def dummy
12
12
  setScrollEnabled(nil)
13
+ setShowsHorizontalScrollIndicator(nil)
13
14
  setShowsVerticalScrollIndicator(nil)
14
15
  end
15
16
  end
@@ -1,5 +1,5 @@
1
1
  module Teacup
2
2
 
3
- VERSION = '0.3.6'
3
+ VERSION = '0.3.7'
4
4
 
5
5
  end
@@ -109,7 +109,6 @@ class UIViewController
109
109
  # If you want to use Teacup in your controller, please hook into layoutDidLoad,
110
110
  # not viewDidLoad.
111
111
  def viewDidLoad
112
-
113
112
  if not self.stylesheet
114
113
  self.stylesheet = self.class.stylesheet
115
114
  end
@@ -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.each do |view|
9
- if view.stylename == name
10
- return view
11
- end
12
- end
13
- subviews.each do |view|
14
- if v = view.viewWithStylename(name)
15
- return v
16
- end
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.6
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-09 00:00:00.000000000 Z
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: !ruby/object:Gem::Requirement
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: !ruby/object:Gem::Requirement
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.19
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.