sugarcube 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
data/lib/sugarcube-to_s/nsset.rb
CHANGED
@@ -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}"
|
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: 1.0.
|
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-
|
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
|