fastimage_resize 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/fastimage_resize.rb +2 -2
  3. metadata +4 -4
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 2
4
4
  :build:
5
5
  :minor: 0
@@ -56,7 +56,7 @@ class FastImage
56
56
  # Name of a file to store the output in, in this case a temp file is not used
57
57
  #
58
58
  def self.resize(input, w, h, options={})
59
- jpeg_quality = options[:jpeg_quality].to_i || -1
59
+ jpeg_quality = options[:jpeg_quality] || -1
60
60
  file_out = options[:outfile]
61
61
 
62
62
  if input.respond_to?(:read)
@@ -83,7 +83,7 @@ class FastImage
83
83
 
84
84
  in_path = file_in.respond_to?(:path) ? file_in.path : file_in
85
85
 
86
- fast_image.resize_image(in_path, file_out.to_s, w.to_i, h.to_i, type_index, jpeg_quality)
86
+ fast_image.resize_image(in_path, file_out.to_s, w.to_i, h.to_i, type_index, jpeg_quality.to_i)
87
87
 
88
88
  if file_in.respond_to?(:close)
89
89
  file_in.close
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastimage_resize
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stephen Sykes
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-03 00:00:00 +03:00
18
+ date: 2011-10-14 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency