meme_captain 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module MemeCaptain
18
18
  :fill => 'white',
19
19
  :font => 'Impact',
20
20
  :gravity => Magick::CenterGravity,
21
- :size => "#{img.columns * 1.8}x#{img.rows / 2}",
21
+ :size => "#{img.page.width * 1.8}x#{img.page.height / 2}",
22
22
  :stroke => 'black',
23
23
  :stroke_width => 2,
24
24
  :background_color => 'none',
@@ -36,7 +36,7 @@ module MemeCaptain
36
36
  line2_caption[0].resize!(line2_caption[0].columns / 2,
37
37
  line2_caption[0].rows / 2, Magick::LanczosFilter, 1.25)
38
38
 
39
- text_layer = Magick::Image.new(img[0].columns, img[0].rows) {
39
+ text_layer = Magick::Image.new(img.page.width, img.page.height) {
40
40
  self.background_color = 'none'
41
41
  }
42
42
  text_layer.composite!(line1_caption[0], Magick::NorthGravity,
data/meme_captain.gemspec CHANGED
@@ -4,7 +4,7 @@ $:.unshift(File.join(File.dirname(__FILE__), 'lib'))
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'meme_captain'
7
- s.version = '0.0.4'
7
+ s.version = '0.0.5'
8
8
  s.summary = 'create meme images'
9
9
  s.description = s.summary
10
10
  s.homepage = 'https://github.com/mmb/meme_captain'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meme_captain
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew M. Boedicker
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-28 00:00:00 -04:00
18
+ date: 2011-04-29 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency