image_optim 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/image_optim.gemspec +1 -1
  2. data/lib/image_optim.rb +5 -5
  3. metadata +4 -4
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'image_optim'
5
- s.version = '0.7.1'
5
+ s.version = '0.7.2'
6
6
  s.summary = %q{Optimize (lossless compress) images (jpeg, png, gif) using external utilities (advpng, gifsicle, jpegoptim, jpegtran, optipng, pngcrush, pngout)}
7
7
  s.homepage = "http://github.com/toy/#{s.name}"
8
8
  s.authors = ['Ivan Kuchin']
@@ -199,12 +199,12 @@ private
199
199
  end
200
200
  end
201
201
 
202
- # Apply threading if threading is allowed and array is longer than 1
203
- def apply_threading(array)
204
- if threads > 1 && array.length > 1
205
- array.in_threads(threads)
202
+ # Apply threading if threading is allowed
203
+ def apply_threading(enum)
204
+ if threads > 1
205
+ enum.in_threads(threads)
206
206
  else
207
- array
207
+ enum
208
208
  end
209
209
  end
210
210
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_optim
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 1
10
- version: 0.7.1
9
+ - 2
10
+ version: 0.7.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ivan Kuchin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-01-17 00:00:00 Z
18
+ date: 2013-01-18 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: fspath