sugarcube 0.8 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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}, [[#{self.frame.origin.x}, #{self.frame.origin.y}],{#{self.frame.size.width} × #{self.frame.size.height}}], "\
5
- "#{self.superview ? ' child of ' + self.superview.class.name + ' #' + self.superview.object_id.to_s : ''})"
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
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '0.8'
2
+ Version = '0.8.1'
3
3
  end
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
- === Description
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 +<<+ operator to a
21
- +UIView+ instance, instead of +view.addSubview(subview)+, you can use the more
22
- idiomatic: +view << subview+.
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: '0.8'
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-29 00:00:00.000000000 Z
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: &70254474709740 !ruby/object:Gem::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: *70254474709740
25
+ version_requirements: *70148652592240
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &70254474709080 !ruby/object:Gem::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: *70254474709080
37
- description: ! '=== 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 +<<+ operator to a
51
+ Some UI classes are opened up as well, like adding the <tt><<</tt> operator to a
52
52
 
53
- +UIView+ instance, instead of +view.addSubview(subview)+, you can use the more
53
+ <tt>UIView</tt> instance, instead of <tt>view.addSubview(subview)</tt>, you can
54
54
 
55
- idiomatic: +view << subview+.
55
+ use the more idiomatic: <tt>view << subview</tt>.
56
56
 
57
57
  '
58
58
  email: