sugarcube 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sugarcube (1.0.6)
4
+ sugarcube (1.0.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -0,0 +1,5 @@
1
+ class NSSet
2
+
3
+ alias :to_a :allObjects
4
+
5
+ end
@@ -1,6 +1,8 @@
1
1
  class NSIndexPath
2
2
 
3
3
  def to_s
4
+ return super unless self.respond_to?(:to_a)
5
+
4
6
  "<NSIndexPath #{to_a.to_s}>"
5
7
  end
6
8
 
@@ -4,6 +4,4 @@ class NSSet
4
4
  "NSSet(#{self.count}){#{self.allObjects.map{|o| o.inspect}.join(', ')}}"
5
5
  end
6
6
 
7
- alias :to_a :allObjects
8
-
9
7
  end
@@ -1,6 +1,8 @@
1
1
  class UIColor
2
2
 
3
3
  def to_s
4
+ return super unless self.respond_to?(:alpha)
5
+
4
6
  alpha_s = ((alpha || 1) < 1 ? "(#{alpha})" : '')
5
7
  system_color = system_name
6
8
  return "UIColor.#{system_color}#{alpha_s}" if system_color
@@ -15,6 +17,8 @@ class UIColor
15
17
  end
16
18
 
17
19
  def inspect
20
+ return super unless self.respond_to?(:alpha)
21
+
18
22
  alpha_s = ((alpha || 1) < 1 ? "(#{alpha})" : '')
19
23
  if system_name
20
24
  return "UIColor.#{system_name}#{alpha_s}"
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '1.0.6'
2
+ Version = '1.0.7'
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: 1.0.6
4
+ version: 1.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-08-04 00:00:00.000000000 Z
15
+ date: 2013-08-19 00:00:00.000000000 Z
16
16
  dependencies: []
17
17
  description: ! '== Description
18
18
 
@@ -100,6 +100,7 @@ files:
100
100
  - lib/sugarcube-foundation/nsarray.rb
101
101
  - lib/sugarcube-foundation/nsindexpath.rb
102
102
  - lib/sugarcube-foundation/nsindexset.rb
103
+ - lib/sugarcube-foundation/nsset.rb
103
104
  - lib/sugarcube-foundation/nsstring.rb
104
105
  - lib/sugarcube-foundation/nsurl.rb
105
106
  - lib/sugarcube-gestures.rb