image_optim 0.20.0 → 0.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.markdown +4 -0
- data/image_optim.gemspec +1 -1
- data/lib/image_optim/railtie.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDlmMzUzY2MzZTU3ZDEwYTAwZjIzZjlhYzM5Y2U1ZjkzM2NjN2YyNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODY3YWE2ZjQyMWM2MWU3YTcwMGExYThjMmJmNzQ1ZWFlNzYxZDA3Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTQ4YmVkNjliOTQ5NTNjZWQ3Y2EyNzI5NGU5ZWExNjk0N2RjNDI3NzlmOWRm
|
10
|
+
OTBiYTQ5MzBmYzI2ZThhOGMwMmFkNzJhNmI4NmFlODZmYTA3NmRmOGZjZWRl
|
11
|
+
YWI5ZmNlM2ZhODY5Zjc1Yzk0YjM4YWJhZGRjMWNhMTdlNDE3ODE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjUxYWJlY2RmZWIzMDIwYzMzYTJkMDBmNzkxMDI1ZDc3OWFmN2Y3ODU0MTNh
|
14
|
+
M2JjNTRhZDk4Nzc0YzQxZWMyNWQ2MWIzOTYyYTcxZjQ4NjlkZmU0NmY1MzEx
|
15
|
+
MjI4NGIxMDVmNmJlYTk4NmRiNTJiZjUyYmZhYTdkZGNlNzBlMmQ=
|
data/CHANGELOG.markdown
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## unreleased
|
4
4
|
|
5
|
+
## v0.20.1 (2014-12-19)
|
6
|
+
|
7
|
+
* Fix [paperclip-optimizer issue #13](https://github.com/janfoeh/paperclip-optimizer/issues/13): railtie broken with `undefined local variable or method 'app'` [#72](https://github.com/toy/image_optim/issues/72) [@janfoeh](https://github.com/janfoeh)
|
8
|
+
|
5
9
|
## v0.20.0 (2014-12-15)
|
6
10
|
|
7
11
|
* Ignore and show warning for lossy options `jpegoptim#max_quality` and `pngquant#quality` in default/lossless mode [#71](https://github.com/toy/image_optim/issues/71) [@toy](https://github.com/toy)
|
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.20.
|
5
|
+
s.version = '0.20.1'
|
6
6
|
s.summary = %q{Optimize (lossless compress, optionally lossy) images (jpeg, png, gif, svg) using external utilities (advpng, gifsicle, jhead, jpeg-recompress, jpegoptim, jpegrescan, jpegtran, optipng, pngcrush, pngout, pngquant, svgo)}
|
7
7
|
s.homepage = "http://github.com/toy/#{s.name}"
|
8
8
|
s.authors = ['Ivan Kuchin']
|
data/lib/image_optim/railtie.rb
CHANGED
@@ -14,7 +14,7 @@ class ImageOptim
|
|
14
14
|
app.assets
|
15
15
|
end
|
16
16
|
|
17
|
-
def options
|
17
|
+
def options(app)
|
18
18
|
if app.config.assets.image_optim == true
|
19
19
|
{}
|
20
20
|
else
|
@@ -23,7 +23,7 @@ class ImageOptim
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def register_preprocessor(app)
|
26
|
-
image_optim = ImageOptim.new(options)
|
26
|
+
image_optim = ImageOptim.new(options(app))
|
27
27
|
|
28
28
|
processor = proc do |_context, data|
|
29
29
|
image_optim.optimize_image_data(data) || data
|
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.20.
|
4
|
+
version: 0.20.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-12-
|
11
|
+
date: 2014-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fspath
|