image_optimizer 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +3 -0
- data/checksum/image_optimizer-1.7.2.gem.sha512 +1 -0
- data/lib/image_optimizer/pngquant_optimizer.rb +2 -0
- data/lib/image_optimizer/version.rb +1 -1
- data/spec/image_optimizer/pngquant_optimizer_spec.rb +10 -0
- metadata +3 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 969a4901be9795c5603fe6da08a149216663c2ec
|
4
|
+
data.tar.gz: 47b0be6953e9d2fe6a58c5ae3c0aa7403b6c5b98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4685d83bd013a3aa95e58a0abe28c916f8b71c12b737be3bfa9e8fa362265b158c6220c2905fff8fdeaf4591a4b2cd3f158b144b59088cca1f6b99643f340cb7
|
7
|
+
data.tar.gz: '002002468cc274240a6a40c9db842a729ca761b7a830c661b954bd451aadcbbe8d28f808ff6ec02a873f9da833f651d6126f932eaeb36f7607bb6ffe75ac2f4c'
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,2 +1,5 @@
|
|
1
|
+
## [1.7.2](https://github.com/jtescher/image_optimizer/releases/tag/v1.7.2) 2018-01-10
|
2
|
+
* Added quiet option support for pngquant optimizer - https://github.com/jtescher/image_optimizer/pull/19
|
3
|
+
|
1
4
|
## [1.7.1](https://github.com/jtescher/image_optimizer/releases/tag/v1.7.1) 2017-11-29
|
2
5
|
* Fix PNGQuantOptimizer `Unrecognised option` error - https://github.com/jtescher/image_optimizer/issues/17
|
@@ -0,0 +1 @@
|
|
1
|
+
309cf3bfe33c8afccbac2b99ad23dd124ff6230f66a23aec444f22494f3726b3e22fad4656cf72984ed029f1149e4dbfcbdec203b143d259959f41b4825310ae
|
@@ -43,6 +43,16 @@ describe ImageOptimizer::PNGQuantOptimizer do
|
|
43
43
|
subject
|
44
44
|
end
|
45
45
|
end
|
46
|
+
|
47
|
+
context 'with quiet parameter' do
|
48
|
+
let(:options) { { :quiet => true } }
|
49
|
+
|
50
|
+
it 'optimizes the png with the quality' do
|
51
|
+
expected_cmd = "/usr/local/bin/pngquant --skip-if-larger --speed\ 1 --force --ext\ .png --quality\ 100 /path/to/file.png"
|
52
|
+
expect(pngquant_optimizer).to receive(:system).with(expected_cmd)
|
53
|
+
subject
|
54
|
+
end
|
55
|
+
end
|
46
56
|
end
|
47
57
|
|
48
58
|
context 'optimizing utility is not installed' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_optimizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Tescher
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
QwZpjX6ObAC8UUVzMUl9zs9rGj05QmK5Se0ZfFZYzfO71Z8Kx7vpePbGco/fzPvk
|
31
31
|
15Xsz7dTwTgNTPwj2HLuCxQjiUskbdzv
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rspec
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- checksum/image_optimizer-1.6.1.gem.sha512
|
131
131
|
- checksum/image_optimizer-1.7.0.gem.sha512
|
132
132
|
- checksum/image_optimizer-1.7.1.gem.sha512
|
133
|
+
- checksum/image_optimizer-1.7.2.gem.sha512
|
133
134
|
- image_optimizer.gemspec
|
134
135
|
- lib/image_optimizer.rb
|
135
136
|
- lib/image_optimizer/gif_optimizer.rb
|
metadata.gz.sig
CHANGED
Binary file
|