image_optim 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/image_optim.gemspec +2 -2
- data/lib/image_optim/image_meta.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGYwMjk1NTg3NjgwZWExMmQzN2YzYzg0YWYwNGM2MWVkOGZhZDMwYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTNjNjBmYTQ4YjhiNzExYmE4NzJmYjQwYWQwY2JiZjczZTJlNjhiYw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWNjOGFiOTkwNjE4NmM4ZTViN2QxZjMzOTA4ZjAwMDIxYTAxMzI1YjZhN2My
|
10
|
+
YzE0OGVlN2M4NzBmYmVlMGFlYjJlNDk5ZjM3ZmQzYzZjZTg4YTI4NGRkNDI5
|
11
|
+
N2ZlYzUyZDI3NDBhMDQwYTkwZDYyZmRmYzZhZWVjMThlZjNkYTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODYxMmFmNzg0N2Q1N2FiMzg0OGZiYjFlNDNhNWNlYWM0NmNkODRmZTQ0OGNl
|
14
|
+
OTNlNGRjNThjNDQxOGU2ZTFkMzkyNGU1ZDg5NjE0OGU2Nzk3OWUxMzYxMGI0
|
15
|
+
YmI5YTFiMjliODc2MjVhNWZmNjA3NWQ1NWQzNzY0OGE3ZWQ1ZTc=
|
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.13.
|
5
|
+
s.version = '0.13.1'
|
6
6
|
s.summary = %q{Optimize (lossless compress) images (jpeg, png, gif, svg) using external utilities (advpng, gifsicle, jpegoptim, jpegtran, optipng, pngcrush, pngout, svgo)}
|
7
7
|
s.homepage = "http://github.com/toy/#{s.name}"
|
8
8
|
s.authors = ['Ivan Kuchin']
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.require_paths = %w[lib]
|
17
17
|
|
18
18
|
s.add_dependency 'fspath', '~> 2.1.0'
|
19
|
-
s.add_dependency 'image_size', '~> 1.
|
19
|
+
s.add_dependency 'image_size', '~> 1.3.0'
|
20
20
|
s.add_dependency 'exifr', '~> 1.1.3'
|
21
21
|
s.add_dependency 'progress', '~> 3.0.0'
|
22
22
|
s.add_dependency 'in_threads', '~> 1.2.0'
|
@@ -5,14 +5,14 @@ class ImageOptim
|
|
5
5
|
def self.for_path(path)
|
6
6
|
is = ImageSize.path(path)
|
7
7
|
new(is.format)
|
8
|
-
rescue => e
|
8
|
+
rescue ImageSize::FormatError => e
|
9
9
|
warn "#{e} (detecting format of image at #{path})"
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.for_data(data)
|
13
13
|
is = ImageSize.new(data)
|
14
14
|
new(is.format)
|
15
|
-
rescue => e
|
15
|
+
rescue ImageSize::FormatError => e
|
16
16
|
warn "#{e} (detecting format of image data)"
|
17
17
|
end
|
18
18
|
|
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.13.
|
4
|
+
version: 0.13.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: 2014-04-
|
11
|
+
date: 2014-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fspath
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: exifr
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|