sugarcube 2.12.2 → 2.12.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0448c30eed49d1e0f4c6d2f17c7d5e6d64b05e1
4
- data.tar.gz: 12537ee989f7d55faecbfe7a5cb0d65ee5698aa8
3
+ metadata.gz: 752d7dc0ceb544310335899b60a7a0fe6318e67e
4
+ data.tar.gz: d9b262efcddb013f30fbe2df46a16c82901917e3
5
5
  SHA512:
6
- metadata.gz: 617ea6c569c95711f6f4752f1591e10b716e20f89f01aeff2197399ff43ce8de866306b8eebb5cc5844d045d3654d6798ef7c5e5b54ace486fc7c42925ed30d2
7
- data.tar.gz: e1636c9d11fc783eec52ba7afd20893fafb301029c3874eaa2bbdb577dc6f5383cb3bb66bab1979fd928508afc7225c915f93ebecd6af7a69c53ff9d06f42f3e
6
+ metadata.gz: 987362220aa71265af8616f58eb50520f5b16438e67c6b527b829de9c334139d45f80ca4b6f9aa219841a7a16bfa057fbef6e946a2c58b2b787c3f355a18cf27
7
+ data.tar.gz: 09470def3535035ddf877bff1e0977e9ce7e42a545e6c683053e741178d0986d09d86dc1dc607c284547bfef33ac9f4cb000d58d1ec8238441baed2b74b53c67
@@ -181,11 +181,12 @@ class UIColor
181
181
  private
182
182
  def _sugarcube_hsb_colors
183
183
  @sugarcube_hsb_colors ||= begin
184
- hue = Pointer.new(:float)
185
- saturation = Pointer.new(:float)
186
- brightness = Pointer.new(:float)
187
- alpha = Pointer.new(:float)
188
- white = Pointer.new(:float)
184
+ type = CGSize.type[/(f|d)/]
185
+ hue = Pointer.new(type)
186
+ saturation = Pointer.new(type)
187
+ brightness = Pointer.new(type)
188
+ alpha = Pointer.new(type)
189
+ white = Pointer.new(type)
189
190
 
190
191
  if self.getHue(hue, saturation:saturation, brightness:brightness, alpha:alpha)
191
192
  {
@@ -209,11 +210,12 @@ private
209
210
 
210
211
  def _sugarcube_rgb_colors
211
212
  @sugarcube_rgb_colors ||= begin
212
- red = Pointer.new(:float)
213
- green = Pointer.new(:float)
214
- blue = Pointer.new(:float)
215
- alpha = Pointer.new(:float)
216
- white = Pointer.new(:float)
213
+ type = CGSize.type[/(f|d)/]
214
+ red = Pointer.new(type)
215
+ green = Pointer.new(type)
216
+ blue = Pointer.new(type)
217
+ alpha = Pointer.new(type)
218
+ white = Pointer.new(type)
217
219
  if self.getRed(red, green:green, blue:blue, alpha:alpha)
218
220
  {
219
221
  red: red[0],
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '2.12.2'
2
+ Version = '2.12.3'
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: 2.12.2
4
+ version: 2.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin T.A. Gray