teacup 2.1.9 → 2.1.10
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/Gemfile.lock
    CHANGED
    
    
| 
         @@ -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
         
     | 
    
        data/lib/teacup/handler.rb
    CHANGED
    
    
    
        data/lib/teacup/version.rb
    CHANGED
    
    
| 
         @@ -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,  
     | 
| 
      
 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. 
     | 
| 
      
 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- 
     | 
| 
      
 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
         
     |