teacup 2.1.14 → 2.1.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c551f8010c0ba5d659985b422ca9e7909a12e88e
4
+ data.tar.gz: c3339bd9f207b0a35d8c8abe6dfc75771c29360d
5
+ SHA512:
6
+ metadata.gz: 8050555846711ae11753c20f4ce7c0083a04ec2a262801190ddb54535c5e8f70ad19074f7de1d51dc59375e4c6182a0584e6983333005c9e913fef57b9258627
7
+ data.tar.gz: a4da4b90638697520519ca4576feb1492eed5d3f3c892c833403c872b448bf77a2d4f4af87394c43aea9e750edefd8196588fc0150cc6c134f0336fe3462336d
@@ -26,16 +26,17 @@ module Teacup
26
26
  module_function
27
27
 
28
28
  # Some properties need to be assigned before others (size in particular, so
29
- # that `:center_x` can work properly). This hash makes sure higher priority
30
- # style names before lower-numbers.
29
+ # that `:center_x` can work properly). This hash makes sure the lower
30
+ # priority styles (default priority is 0) get applied before higher ones.
31
31
  Priorities = {
32
- frame: 2,
33
- size: 1,
34
- sizeToFit: 1,
35
- width: 1,
36
- height: 1,
32
+ frame: 1,
33
+ sizeToFit: 2,
34
+ size: 2,
35
+ width: 2,
36
+ height: 2,
37
+ center: 3, # set the center last; this is the main reason for all this priority nonsense
37
38
  }
38
- Priorities.default = -1
39
+ Priorities.default = 0
39
40
 
40
41
  # applies a Hash of styles, and converts the frame styles (origin, size, top,
41
42
  # left, width, height) into one frame property.
@@ -46,7 +47,7 @@ module Teacup
46
47
  properties.sort do |a, b|
47
48
  priority_a = Priorities[a[0]]
48
49
  priority_b = Priorities[b[0]]
49
- priority_b <=> priority_a
50
+ priority_a <=> priority_b
50
51
  end.each do |key, value|
51
52
  Teacup.apply target, key, value, klass
52
53
  end
@@ -1,5 +1,5 @@
1
1
  module Teacup
2
2
 
3
- VERSION = '2.1.14'
3
+ VERSION = '2.1.15'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,27 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teacup
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.14
5
- prerelease:
4
+ version: 2.1.15
6
5
  platform: ruby
7
6
  authors:
8
7
  - the rubymotion community
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2014-02-27 00:00:00.000000000 Z
13
12
  dependencies: []
14
- description: ! 'Teacup is a community-driven DSL for RubyMotion. It has CSS-like
15
- styling, and
16
-
13
+ description: |
14
+ Teacup is a community-driven DSL for RubyMotion. It has CSS-like styling, and
17
15
  helps create complex and simple layouts in iOS and OS X apps.
18
16
 
19
-
20
- Teacup aims at making UI develpoment in RubyMotion less tedious. It''s like
21
-
17
+ Teacup aims at making UI develpoment in RubyMotion less tedious. It's like
22
18
  Interface Builder for RubyMotion!
23
-
24
- '
25
19
  email:
26
20
  executables: []
27
21
  extensions: []
@@ -85,27 +79,26 @@ files:
85
79
  homepage: https://github.com/rubymotion/teacup
86
80
  licenses:
87
81
  - BSD
82
+ metadata: {}
88
83
  post_install_message:
89
84
  rdoc_options: []
90
85
  require_paths:
91
86
  - lib
92
87
  required_ruby_version: !ruby/object:Gem::Requirement
93
- none: false
94
88
  requirements:
95
- - - ! '>='
89
+ - - '>='
96
90
  - !ruby/object:Gem::Version
97
91
  version: '0'
98
92
  required_rubygems_version: !ruby/object:Gem::Requirement
99
- none: false
100
93
  requirements:
101
- - - ! '>='
94
+ - - '>='
102
95
  - !ruby/object:Gem::Version
103
96
  version: '0'
104
97
  requirements: []
105
98
  rubyforge_project:
106
- rubygems_version: 1.8.11
99
+ rubygems_version: 2.0.3
107
100
  signing_key:
108
- specification_version: 3
101
+ specification_version: 4
109
102
  summary: A community-driven DSL for creating user interfaces on iOS and OS X.
110
103
  test_files:
111
104
  - spec/ios/appearance_spec.rb