image8 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/image8.gemspec +1 -1
  2. data/lib/image8.rb +2 -1
  3. metadata +2 -2
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "image8"
3
- s.version = "0.3.2"
3
+ s.version = "0.3.3"
4
4
  s.date = "2010-06-24"
5
5
  s.summary = "dynamic image resizing."
6
6
  s.email = "harry@vangberg.name"
@@ -101,7 +101,8 @@ class Image8 < Sinatra::Base
101
101
  image.resize! width, height
102
102
  }
103
103
  when "crop" then
104
- image.resize_to_fill! format.to_i
104
+ width, height = format.split("x").map {|x| x.to_i}
105
+ image.resize_to_fill! width, height
105
106
  end
106
107
  image
107
108
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Harry Vangberg