glyph_imager 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
data/glyph_imager.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{glyph_imager}
8
- s.version = "0.0.7"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["William Melody"]
data/lib/glyph_imager.rb CHANGED
@@ -88,7 +88,7 @@ module GlyphImager
88
88
  end
89
89
 
90
90
  def output_path
91
- "#{@options[:output_dir]}/#{@options[:code_point]}.png"
91
+ "#{@options[:output_dir]}/#{@options[:code_point]}-#{@options[:size]}.png"
92
92
  end
93
93
 
94
94
 
@@ -9,8 +9,8 @@ class TestGlyphImager < Test::Unit::TestCase
9
9
  end
10
10
 
11
11
  def teardown
12
- if File.exists?("/tmp/0021.png")
13
- File.delete("/tmp/0021.png")
12
+ if File.exists?("/tmp/0021-80x80.png")
13
+ File.delete("/tmp/0021-80x80.png")
14
14
  end
15
15
  end
16
16
 
@@ -39,7 +39,7 @@ class TestGlyphImager < Test::Unit::TestCase
39
39
  :output_dir => "/tmp"
40
40
  })
41
41
  @imager.create_image
42
- assert File.exists?("/tmp/0021.png")
42
+ assert File.exists?("/tmp/0021-80x80.png")
43
43
  end
44
44
 
45
45
  should "create new image for character supported by font" do
@@ -48,7 +48,7 @@ class TestGlyphImager < Test::Unit::TestCase
48
48
  :font_path => @font_path,
49
49
  :output_dir => "/tmp"
50
50
  })
51
- assert File.exists?("/tmp/0021.png")
51
+ assert File.exists?("/tmp/0021-80x80.png")
52
52
  end
53
53
 
54
54
  should "not create new image for character not supported by font" do
@@ -57,7 +57,7 @@ class TestGlyphImager < Test::Unit::TestCase
57
57
  :font_path => @font_path,
58
58
  :output_dir => "/tmp"
59
59
  })
60
- assert !File.exists?("/tmp/11B14.png")
60
+ assert !File.exists?("/tmp/11B14-80x80.png")
61
61
  end
62
62
 
63
63
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 7
9
- version: 0.0.7
8
+ - 8
9
+ version: 0.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - William Melody