image_optim 0.9.0 → 0.9.1

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
- MTRmMzViYWYwZjQ2ZDQ3NzI4MzQ0MWZiNTA2MDgzNjc2OGU2MGM5ZA==
4
+ OGFiMDdmODY3N2ZkMTgwZWNmMTlhOTFkNmY1NjVjZGRjMmI3ZDQ0MA==
5
5
  data.tar.gz: !binary |-
6
- NjEzZTE5MmQ5NzcyM2M5NzQ0YTc4Zjk0YTcxODAzN2IyOTM2ODJjNg==
6
+ MmNjYTZlNDFkMGVmM2U1NmUyNDQ3NDIxYWFmNjAzYTUzMGY0YWQ2Mg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjZmMzM0YWIzMGI2ODg4NWVjZGMyY2U0NjBkMjdjM2U2ZTQ0NzM1YTk1NzU2
10
- ZjI1OTk5Mzk3ODZmY2Q5MTM3NTI4ZmI4ZGJjMWViNzA2NDJlN2Q1NWE2ZjBj
11
- YjAyMDBiYzFhZWM4ZTA2NzdlOGEzYjU1MzgwMDEzNTJhMThmZGY=
9
+ ZjVkYWZkM2ExYWU2MDAxODU1MGNmNDI2OWNhNGZiNTI2YzU1NWYzN2QyYzRh
10
+ M2E3Njg0ZjA1MmVlOTc3ZGNkYjdlZTY1NDk1MDJhYzg3NjhkM2I2ZTYxNmNi
11
+ MmQwMjc4OWJlYTRlMDNiZmE2YzkxMTQ4YWIwMTlmZTM0Zjk4NjM=
12
12
  data.tar.gz: !binary |-
13
- NGM2YmE2MGU3MDI0MjhjYWM5NzdjOWMwNWIyYzM2NzJmMTA3OWI4MzVhOGYy
14
- YjUwZWFhMDQxNTg5MDk2YWY0YzUxODM2NTdkNjU3OGZhZjU0OTA5MTg5ZTY4
15
- Y2Q2MGIzNjhjMmM4NDIyOTFiZTQzMzU5ZDhkYzAxODQ4MDJmZjQ=
13
+ NDAxMzU2ODRiYzNhZGMwZDM2M2MzYzk0M2VhYTQ2MjZlMGFlZGNiMTM3Yzk0
14
+ YmRkZDk1MTQ2M2U4ZmJiOThjNzBjN2YxNzAzMDFhOGUxNmZlYmNkMGNkNjk0
15
+ YjFlMmUzNDM0NTFiMGMyOTQ1MGE1YmRjM2YyYWI0NWM3MWE4Mzk=
data/README.markdown CHANGED
@@ -13,6 +13,8 @@ Optimize (lossless compress) images (jpeg, png, gif) using external utilities:
13
13
 
14
14
  Based on [ImageOptim.app](http://imageoptim.com/).
15
15
 
16
+ [![Build Status](https://travis-ci.org/toy/image_optim.png?branch=master)](https://travis-ci.org/toy/image_optim)
17
+
16
18
  ## Gem installation
17
19
 
18
20
  gem install image_optim
data/TODO CHANGED
@@ -2,7 +2,11 @@ preserve color (leave_color branch)
2
2
  preserve all extra stuff
3
3
  global level of optimization #10
4
4
  timeout workers?
5
- based on file size?
5
+ based on file size?
6
6
  fail worker instead of process on bin not present?
7
7
  preserve time/attrs option?
8
8
  file based config
9
+ http://www.erickcantwell.com/code/config.rb
10
+ https://github.com/derks/ruby-parseconfig
11
+ http://stick.gk2.sk/2009/03/the-ugly-duckling-called-xdg_config_home/
12
+ http://css-ig.net/png-tools-overview
data/bin/image_optim CHANGED
@@ -145,7 +145,6 @@ else
145
145
  end
146
146
  end
147
147
  end
148
- paths = paths.with_progress('optimizing') if paths.length > 1
149
148
 
150
149
  module Space
151
150
  SIZE_SYMBOLS = %w[B K M G T P E Z Y].freeze
@@ -185,6 +184,7 @@ else
185
184
  '%5.2f%% %s' % [100 - 100.0 * dst_size / src_size, Space.space(src_size - dst_size)]
186
185
  end
187
186
 
187
+ paths = paths.with_progress('optimizing')
188
188
  results = image_optim.optimize_images(paths) do |src, dst|
189
189
  if dst
190
190
  src_size, dst_size = src.size, dst.size
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.9.0'
5
+ s.version = '0.9.1'
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']
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.add_dependency 'fspath', '~> 2.0.5'
19
19
  s.add_dependency 'image_size', '~> 1.1.2'
20
20
  s.add_dependency 'exifr', '~> 1.1.3'
21
- s.add_dependency 'progress', '~> 2.4.0'
22
- s.add_dependency 'in_threads', '~> 1.1.1'
21
+ s.add_dependency 'progress', '~> 3.0.0'
22
+ s.add_dependency 'in_threads', '~> 1.2.0'
23
23
  s.add_development_dependency 'rspec'
24
24
  end
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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-30 00:00:00.000000000 Z
11
+ date: 2013-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fspath
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 2.4.0
61
+ version: 3.0.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 2.4.0
68
+ version: 3.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: in_threads
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: 1.1.1
75
+ version: 1.2.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: 1.1.1
82
+ version: 1.2.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement