sugarcube 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,6 +26,8 @@ class Symbol
26
26
  class << self
27
27
  attr_accessor :devices
28
28
  attr_accessor :alignments
29
+ attr_accessor :linebreakmodes
30
+ attr_accessor :baselineadjustments
29
31
  attr_accessor :orientations
30
32
  attr_accessor :buttontypes
31
33
  attr_accessor :bordertypes
@@ -53,6 +55,21 @@ class Symbol
53
55
  center: UITextAlignmentCenter,
54
56
  }
55
57
 
58
+ @linebreakmodes = {
59
+ wordwrap: UILineBreakModeWordWrap,
60
+ characterwrap: UILineBreakModeCharacterWrap,
61
+ clip: UILineBreakModeClip,
62
+ headtruncation: UILineBreakModeHeadTruncation,
63
+ tailtruncation: UILineBreakModeTailTruncation,
64
+ middletruncation: UILineBreakModeMiddleTruncation,
65
+ }
66
+
67
+ @baselineadjustments = {
68
+ alignbaselines: UIBaselineAdjustmentAlignBaselines,
69
+ aligncenters: UIBaselineAdjustmentAlignCenters,
70
+ none: UIBaselineAdjustmentNone,
71
+ }
72
+
56
73
  @orientations = {
57
74
  portrait: UIInterfaceOrientationPortrait,
58
75
  upside_down: UIInterfaceOrientationPortraitUpsideDown,
@@ -222,6 +239,16 @@ class Symbol
222
239
  def uialignment
223
240
  look_in(Symbol.alignments)
224
241
  end
242
+ alias :uitextalignment :uialignment
243
+
244
+ def uilinebreakmode
245
+ look_in(Symbol.linebreakmodes)
246
+ end
247
+
248
+ def uibaselineadjustment
249
+ look_in(Symbol.baselineadjustments)
250
+ end
251
+ alias :uibaseline :uibaselineadjustment
225
252
 
226
253
  def uiorientation
227
254
  look_in(Symbol.orientations)
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '0.3.0'
2
+ Version = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sugarcube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-07-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
17
- requirement: &70233201675040 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,15 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70233201675040
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: rspec
28
- requirement: &70233201690520 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ! '>='
@@ -33,7 +38,12 @@ dependencies:
33
38
  version: '0'
34
39
  type: :development
35
40
  prerelease: false
36
- version_requirements: *70233201690520
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
37
47
  description: ! 'CocoaTouch/iOS is a *verbose* framework. These extensions hope to
38
48
  make
39
49
 
@@ -106,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
116
  version: '0'
107
117
  requirements: []
108
118
  rubyforge_project:
109
- rubygems_version: 1.8.11
119
+ rubygems_version: 1.8.19
110
120
  signing_key:
111
121
  specification_version: 3
112
122
  summary: Extensions for Ruby to make Rubymotion development more enjoyable, and hopefully