sugarcube 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sugarcube/core_graphics.rb +4 -4
- data/lib/sugarcube/symbol.rb +19 -0
- data/lib/sugarcube/version.rb +1 -1
- metadata +5 -5
@@ -6,10 +6,10 @@ class CGRectArray < Array
|
|
6
6
|
super [CGPointArray.new([args[0], args[1]]), CGSizeArray.new([args[2], args[3]])]
|
7
7
|
else
|
8
8
|
unless CGPointArray === args[0]
|
9
|
-
args[0] = Point(args[0])
|
9
|
+
args[0] = SugarCube::CoreGraphics::Point(args[0])
|
10
10
|
end
|
11
11
|
unless CGSizeArray === args[1]
|
12
|
-
args[1] = Size(args[1])
|
12
|
+
args[1] = SugarCube::CoreGraphics::Size(args[1])
|
13
13
|
end
|
14
14
|
super [args[0], args[1]]
|
15
15
|
end
|
@@ -20,7 +20,7 @@ class CGRectArray < Array
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def origin= val
|
23
|
-
self[0] = Point(val)
|
23
|
+
self[0] = SugarCube::CoreGraphics::Point(val)
|
24
24
|
end
|
25
25
|
|
26
26
|
def size
|
@@ -28,7 +28,7 @@ class CGRectArray < Array
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def size= val
|
31
|
-
self[1] = Size(val)
|
31
|
+
self[1] = SugarCube::CoreGraphics::Size(val)
|
32
32
|
end
|
33
33
|
|
34
34
|
end
|
data/lib/sugarcube/symbol.rb
CHANGED
@@ -33,6 +33,7 @@ class Symbol
|
|
33
33
|
attr_accessor :controlevents
|
34
34
|
attr_accessor :system_fonts
|
35
35
|
attr_accessor :font_sizes
|
36
|
+
attr_accessor :returnkeys
|
36
37
|
end
|
37
38
|
|
38
39
|
@devices = {
|
@@ -122,6 +123,20 @@ class Symbol
|
|
122
123
|
system: :systemFontSize,
|
123
124
|
}
|
124
125
|
|
126
|
+
@returnkeys = {
|
127
|
+
default: UIReturnKeyDefault,
|
128
|
+
go: UIReturnKeyGo,
|
129
|
+
google: UIReturnKeyGoogle,
|
130
|
+
join: UIReturnKeyJoin,
|
131
|
+
next: UIReturnKeyNext,
|
132
|
+
route: UIReturnKeyRoute,
|
133
|
+
search: UIReturnKeySearch,
|
134
|
+
send: UIReturnKeySend,
|
135
|
+
yahoo: UIReturnKeyYahoo,
|
136
|
+
done: UIReturnKeyDone,
|
137
|
+
emergencycall: UIReturnKeyEmergencyCall,
|
138
|
+
}
|
139
|
+
|
125
140
|
private
|
126
141
|
def look_in(here)
|
127
142
|
return here[self] if here.has_key? self
|
@@ -161,6 +176,10 @@ class Symbol
|
|
161
176
|
look_in(Symbol.controlevents)
|
162
177
|
end
|
163
178
|
|
179
|
+
def uireturnkey
|
180
|
+
look_in(Symbol.returnkeys)
|
181
|
+
end
|
182
|
+
|
164
183
|
def uifont(size=UIFont.systemFontSize)
|
165
184
|
# system fonts
|
166
185
|
begin
|
data/lib/sugarcube/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2012-07-14 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
|
-
requirement: &
|
17
|
+
requirement: &70314746913920 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70314746913920
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rspec
|
28
|
-
requirement: &
|
28
|
+
requirement: &70314746929400 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70314746929400
|
37
37
|
description: ! 'CocoaTouch/iOS is a *verbose* framework. These extensions hope to
|
38
38
|
make
|
39
39
|
|