memegen 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/meme_generator.rb +2 -3
  2. metadata +3 -3
@@ -3,8 +3,7 @@ require "bundler/setup"
3
3
  require "RMagick"
4
4
 
5
5
  class MemeGenerator
6
- VERSION = "0.0.7"
7
- IMPACT_PATH = "fonts/Impact.ttf" # If you don't have OS X, fork me :)
6
+ VERSION = "0.0.8"
8
7
 
9
8
  class << self
10
9
  def generate(path, top, bottom)
@@ -15,7 +14,7 @@ class MemeGenerator
15
14
  image = canvas.first
16
15
 
17
16
  draw = Magick::Draw.new
18
- draw.font = IMPACT_PATH if File.exists?(IMPACT_PATH)
17
+ draw.font = "fonts/Impact.ttf"
19
18
  draw.font_weight = Magick::BoldWeight
20
19
 
21
20
  pointsize = image.columns / 5.0
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memegen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brandon Keene