nutils 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nutils/filters/crop.rb +3 -3
- data/lib/nutils.rb +1 -1
- metadata +4 -4
data/lib/nutils/filters/crop.rb
CHANGED
@@ -3,7 +3,7 @@ module Nutils
|
|
3
3
|
|
4
4
|
# @author Arnau Siches
|
5
5
|
#
|
6
|
-
# @version 0.1.
|
6
|
+
# @version 0.1.1
|
7
7
|
#
|
8
8
|
# @note Requires «RMagick»
|
9
9
|
class Crop < Nanoc3::Filter
|
@@ -37,8 +37,8 @@ module Nutils
|
|
37
37
|
|
38
38
|
image = Magick::ImageList.new filename
|
39
39
|
|
40
|
-
width = eval(opts[:width])
|
41
|
-
height = eval(opts[:height])
|
40
|
+
width = eval(opts[:width].to_s)
|
41
|
+
height = eval(opts[:height].to_s)
|
42
42
|
|
43
43
|
image.crop(opts[:x], opts[:y], width, height).write output_filename
|
44
44
|
|
data/lib/nutils.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Arnau Siches
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-10 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|