teacup 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,3 @@
1
-
2
1
  module Teacup
3
2
  # Teacup::Layout defines a layout and subview function that can be used to
4
3
  # declare and configure the layout of views and the view hierarchy in your
@@ -56,9 +55,9 @@ module Teacup
56
55
  # image to a carousel:
57
56
  #
58
57
  # @example
59
- # layout(carousel) {
58
+ # layout(carousel) do
60
59
  # subview(UIImage, backgroundColor: UIColor.colorWithImagePattern(image)
61
- # }
60
+ # end
62
61
  #
63
62
  def layout(view, name_or_properties=nil, properties_or_nil=nil, &block)
64
63
  name = nil
@@ -110,7 +109,7 @@ module Teacup
110
109
  #
111
110
  # @example
112
111
  # MyViewController < UIViewController
113
- # heirarchy(:my_view) do
112
+ # layout(:my_view) do
114
113
  # subview(UILabel, text: 'Test')
115
114
  # subview(UILabel, :styled_label)
116
115
  # end
@@ -119,9 +118,9 @@ module Teacup
119
118
  # If you need to add a new image at runtime, you can also do that:
120
119
  #
121
120
  # @example
122
- # layout(carousel) {
121
+ # layout(carousel) do
123
122
  # subview(UIImage, backgroundColor: UIColor.colorWithImagePattern(image)
124
- # }
123
+ # end
125
124
  #
126
125
  def subview(class_or_instance, *args, &block)
127
126
  if Class === class_or_instance
@@ -1,5 +1,5 @@
1
1
  module Teacup
2
2
 
3
- VERSION = '0.3.7'
3
+ VERSION = '0.3.8'
4
4
 
5
5
  end
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.7
4
+ version: 0.3.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70165559986140 !ruby/object:Gem::Requirement
16
+ requirement: &70122065202280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70165559986140
24
+ version_requirements: *70122065202280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70165559985480 !ruby/object:Gem::Requirement
27
+ requirement: &70122065201680 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70165559985480
35
+ version_requirements: *70122065201680
36
36
  description: ! 'Teacup is a community-driven DSL for making CSS-like styling, and
37
37
  layouts for
38
38