nutils 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ module Nutils
3
3
 
4
4
  # @author Arnau Siches
5
5
  #
6
- # @version 0.1.0
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
@@ -3,7 +3,7 @@
3
3
  module Nutils
4
4
 
5
5
  # The current nutils version.
6
- VERSION = "0.6.1"
6
+ VERSION = "0.6.2"
7
7
 
8
8
  end
9
9
 
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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
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-04 00:00:00 -05:00
18
+ date: 2011-01-10 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency