enhance 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/enhance/enhancer.rb +1 -1
- data/lib/enhance/version.rb +1 -1
- metadata +3 -3
data/lib/enhance/enhancer.rb
CHANGED
@@ -38,7 +38,7 @@ class Enhance::Enhancer
|
|
38
38
|
# Finds the image and resizes it if needs be
|
39
39
|
def convert path, filename, geometry
|
40
40
|
# Extract the width and height
|
41
|
-
if sizes = geometry.match(/^(?<width>\d+)?x?(?<height>\d+)([\>\<\@\%^!])?$/)
|
41
|
+
if sizes = geometry.match(/^(?<width>\d+)?x?(?<height>\d+)?([\>\<\@\%^!])?$/)
|
42
42
|
w, h = sizes['width'], sizes['height']
|
43
43
|
ow, oh = original_size path
|
44
44
|
|
data/lib/enhance/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enhance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Guillaume Malette
|