teacup 2.1.9 → 2.1.10

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- teacup (2.1.9)
4
+ teacup (2.1.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -4,9 +4,7 @@ class MemoryLeakController < UIViewController
4
4
  stylesheet :memory_leak
5
5
 
6
6
  layout do
7
- puts("=============== memory_leak_controller.rb line #{__LINE__} ===============")
8
7
  subview(UIView, :view) do
9
- puts("=============== memory_leak_controller.rb line #{__LINE__} ===============")
10
8
  subview(UIView)
11
9
  end
12
10
  end
@@ -31,6 +31,7 @@ module Teacup
31
31
  Priorities = {
32
32
  frame: 2,
33
33
  size: 1,
34
+ sizeToFit: 1,
34
35
  width: 1,
35
36
  height: 1,
36
37
  }
@@ -1,5 +1,5 @@
1
1
  module Teacup
2
2
 
3
- VERSION = '2.1.9'
3
+ VERSION = '2.1.10'
4
4
 
5
5
  end
@@ -8,6 +8,11 @@ end
8
8
  ##|
9
9
  ##| UIView.frame
10
10
  ##|
11
+ Teacup.handler UIView, :sizeToFit do |target, truthy|
12
+ target.sizeToFit if truthy
13
+ end
14
+
15
+
11
16
  Teacup.handler UIView, :left, :x do |target, x|
12
17
  f = target.frame
13
18
  f.origin.x = Teacup::calculate(target, :width, x)
@@ -56,7 +56,7 @@ class UIViewController
56
56
  def autorotateMask
57
57
  device = UIDevice.currentDevice.userInterfaceIdiom
58
58
  if view.stylesheet and view.stylesheet.is_a?(Teacup::Stylesheet) and view.stylename
59
- properties = view.stylesheet.query(view.stylename, self, orientation)
59
+ properties = view.stylesheet.query(view.stylename, self, nil)
60
60
 
61
61
  orientations = 0
62
62
  if properties.supports?(:portrait) or properties.supports?(:upside_up)
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: 2.1.9
4
+ version: 2.1.10
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-08-06 00:00:00.000000000 Z
12
+ date: 2013-09-09 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'Teacup is a community-driven DSL for making CSS-like styling, and
15
15
  layouts for