sugarcube 0.8 → 0.8.1
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/lib/sugarcube/adjust.rb +1 -1
- data/lib/sugarcube/to_s/uiview.rb +2 -2
- data/lib/sugarcube/version.rb +1 -1
- data/sugarcube.gemspec +4 -4
- metadata +10 -10
data/lib/sugarcube/adjust.rb
CHANGED
@@ -203,7 +203,7 @@ module SugarCube
|
|
203
203
|
print ". "
|
204
204
|
tab = ""
|
205
205
|
end
|
206
|
-
puts "#{view.class.name}(##{view.object_id}, #{view.frame.to_s})"
|
206
|
+
puts "#{view.class.name}(##{view.object_id.to_s(16)}, #{view.frame.to_s})"
|
207
207
|
|
208
208
|
view.subviews.each_index {|index|
|
209
209
|
subview = view.subviews[index]
|
@@ -1,8 +1,8 @@
|
|
1
1
|
class UIView
|
2
2
|
|
3
3
|
def to_s
|
4
|
-
"#{self.class.name}(##{self.object_id
|
5
|
-
|
4
|
+
"#{self.class.name}(##{self.object_id.to_s(16)}, #{self.frame}, " +
|
5
|
+
self.superview ? " child of #{self.superview.class.name}(##{self.superview.object_id.to_s(16)})" : ''
|
6
6
|
end
|
7
7
|
|
8
8
|
end
|
data/lib/sugarcube/version.rb
CHANGED
data/sugarcube.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
|
|
9
9
|
gem.email = ['colinta@gmail.com']
|
10
10
|
gem.summary = %{Extensions for Ruby to make Rubymotion development more enjoyable, and hopefully more rubyesque!}
|
11
11
|
gem.description = <<-DESC
|
12
|
-
|
12
|
+
== Description
|
13
13
|
|
14
14
|
CocoaTouch/iOS is a *verbose* framework. These extensions hope to make
|
15
15
|
development in rubymotion more enjoyable by tacking "UI" methods onto the
|
@@ -17,9 +17,9 @@ base classes (String, Fixnum, Float). With sugarcube, you can create a
|
|
17
17
|
color from an integer or symbol, or create a UIFont or UIImage from a
|
18
18
|
string.
|
19
19
|
|
20
|
-
Some UI classes are opened up as well, like adding the
|
21
|
-
|
22
|
-
idiomatic:
|
20
|
+
Some UI classes are opened up as well, like adding the <tt><<</tt> operator to a
|
21
|
+
<tt>UIView</tt> instance, instead of <tt>view.addSubview(subview)</tt>, you can
|
22
|
+
use the more idiomatic: <tt>view << subview</tt>.
|
23
23
|
DESC
|
24
24
|
|
25
25
|
gem.homepage = 'https://github.com/rubymotion/sugarcube'
|
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:
|
4
|
+
version: 0.8.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-08-
|
13
|
+
date: 2012-08-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
|
-
requirement: &
|
17
|
+
requirement: &70148652592240 !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: *70148652592240
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rspec
|
28
|
-
requirement: &
|
28
|
+
requirement: &70148652591640 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,8 +33,8 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
37
|
-
description: ! '
|
36
|
+
version_requirements: *70148652591640
|
37
|
+
description: ! '== Description
|
38
38
|
|
39
39
|
|
40
40
|
CocoaTouch/iOS is a *verbose* framework. These extensions hope to make
|
@@ -48,11 +48,11 @@ description: ! '=== Description
|
|
48
48
|
string.
|
49
49
|
|
50
50
|
|
51
|
-
Some UI classes are opened up as well, like adding the
|
51
|
+
Some UI classes are opened up as well, like adding the <tt><<</tt> operator to a
|
52
52
|
|
53
|
-
|
53
|
+
<tt>UIView</tt> instance, instead of <tt>view.addSubview(subview)</tt>, you can
|
54
54
|
|
55
|
-
idiomatic:
|
55
|
+
use the more idiomatic: <tt>view << subview</tt>.
|
56
56
|
|
57
57
|
'
|
58
58
|
email:
|