sugarcube 0.18.2 → 0.18.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -673,7 +673,7 @@ class Symbol
673
673
  if Symbol.system_fonts.has_key? self
674
674
  font = look_in(Symbol.system_fonts)
675
675
  if size.is_a?(Symbol)
676
- size = Symbol.font_sizes.fetch(size).uifontsize
676
+ size = size.uifontsize
677
677
  end
678
678
 
679
679
  if font.is_a?(Symbol)
@@ -682,7 +682,7 @@ class Symbol
682
682
  return font.uifont(size)
683
683
  end
684
684
  else
685
- size = look_in(font_sizes).uifontsize
685
+ size = size.uifontsize
686
686
  return UIFont.systemFontOfSize(size)
687
687
  end
688
688
  end
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '0.18.2'
2
+ Version = '0.18.3'
3
3
  end
@@ -22,8 +22,10 @@ describe "Symbol" do
22
22
 
23
23
  it "should accept point size" do
24
24
  :system.uifont(40).pointSize.should == 40
25
- :bold.uifont(40).pointSize.should == 40
26
- :italic.uifont(40).pointSize.should == 40
25
+ end
26
+
27
+ it "should accept symbol size" do
28
+ :system.uifont(:label).pointSize.should == UIFont.labelFontSize
27
29
  end
28
30
 
29
31
  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: 0.18.2
4
+ version: 0.18.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: