image_optim 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmIyYWJlYjg2ODQ0YmE1MzZmMTE2ODI5Njk0OGZlZmFlMjAwODAzNg==
4
+ ZWNmYzAxNjlhZjg3NzNiMjhlZTNiZThhNWVkNDQ0NjQzOGViZjhjMQ==
5
5
  data.tar.gz: !binary |-
6
- NjI2NTE5ZmNiMjNkMWM0MTc3ZmJlY2FhNzJlODQ5MDg1ZWVmYzllYg==
6
+ ZWVhMDlmOWRhYjgxYjI0MzM2NzA2NzlmODE4MzY2MDQyYjE5NWQ4Mw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTQwMDk3ZDE3YTBiNzdmOTBiMzU5NzkxNDI4ZDI1ODJhOWY3Y2Q3NzdlZjcy
10
- NmJiZDE0MDdkODhjZmZhNjlhYmNlMGYyYmJmMzliYzdiM2RiOGI5OTk3ZjBm
11
- YWQyN2RlMTFiMjVmY2M2NDFhMjJiMWFhYzE5OTlmNDQ2Y2RiOTY=
9
+ ZmNlNGQzZjBjOTZiYjk0OWI4OWEwZDgxYjc5MGI0YWQ3Y2I1ZTRhNDYxY2Mz
10
+ OWM4MTA4YjBlNjc4MWM5NWRlZWYyYmI5NjNlN2FlODRmMmZjOTdiNzEzNzY5
11
+ NzZiOTMyZDBkMzVmYTBmY2E4ZTg2YjI1ODViYWFjOTUxODM5OTI=
12
12
  data.tar.gz: !binary |-
13
- NDcwZWMyMzg3YWRkM2RmYmM5NTRmOTgyYTlhOGJiMTc2M2RmN2Q3MjMyM2Yx
14
- NzA1ZmMwZTFlNjYyYWRhMDg4MDNhYWRlNjM5Y2M1ODQzZDk1ODViZThjYTg0
15
- ZTVkMzFlY2UxNGY5MzlhNzJlNjVkZDVmODI4ZDI5MmE1NGVmYmM=
13
+ YTk5YTAwZDgwZDYwODJjNmQ1NTcxMTYyNDZlM2I3MTJkNWUwOGU4N2YyNzQz
14
+ MmE3YTQwMGI5ZjQ2M2ZlYTQzNzcwOTZjNDE0NjQ2YzM2NGEzOTUwNjRlNzll
15
+ ZDAxMDRlMDFjNDgyYmRiYjYyODhhMzBiNDIzOTRmMzFjOGU3NTc=
data/image_optim.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'image_optim'
5
- s.version = '0.10.1'
5
+ s.version = '0.10.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']
data/lib/image_optim.rb CHANGED
@@ -108,14 +108,14 @@ class ImageOptim
108
108
  # if block given yields path and result for each image and returns array of yield results
109
109
  # else return array of results
110
110
  def optimize_images(paths, &block)
111
- run_method_for(paths.map{ |path| ImagePath.convert(path) }, :optimize_image, &block)
111
+ run_method_for(paths, :optimize_image, &block)
112
112
  end
113
113
 
114
114
  # Optimize multiple images in place
115
115
  # if block given yields path and result for each image and returns array of yield results
116
116
  # else return array of results
117
117
  def optimize_images!(paths, &block)
118
- run_method_for(paths.map{ |path| ImagePath.convert(path) }, :optimize_image!, &block)
118
+ run_method_for(paths, :optimize_image!, &block)
119
119
  end
120
120
 
121
121
  # Optimize multiple image datas
@@ -170,12 +170,6 @@ describe ImageOptim do
170
170
  describe "optimize multiple" do
171
171
  let(:srcs){ ('a'..'z').to_a }
172
172
 
173
- before do
174
- srcs.each do |src|
175
- ImageOptim::ImagePath.should_receive(:new).with(src).and_return(src)
176
- end
177
- end
178
-
179
173
  %w[optimize_images optimize_images!].each do |list_method|
180
174
  describe list_method do
181
175
  single_method = list_method.sub('images', 'image')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_optim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-22 00:00:00.000000000 Z
11
+ date: 2014-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fspath