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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e281c990b3a3ffffdd7580f24d1ef8ef05b6639
4
- data.tar.gz: 62ee860019a6a691f4b3a11971c6f744d0de09e3
3
+ metadata.gz: 969a4901be9795c5603fe6da08a149216663c2ec
4
+ data.tar.gz: 47b0be6953e9d2fe6a58c5ae3c0aa7403b6c5b98
5
5
  SHA512:
6
- metadata.gz: 4fbe361fb4ed757d209e7c4510679a918167603d25685d8b44c4b5d843c57df8fa845d479f6a79fef232fc9c689bab7ce491c1562b79e6154141cb3649a911aa
7
- data.tar.gz: df8240f7998a0fe82e465032392f7ec2ed2a159602a8c647cb87493b460b0ed4802b77922c1ec1b1ba9f2d03e4bd28c877860458dad699aca352866b9f88acaf
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
@@ -10,6 +10,8 @@ class ImageOptimizer
10
10
  def command_options
11
11
  flags = ['--skip-if-larger', '--speed 1',
12
12
  '--force', '--verbose', '--ext .png']
13
+
14
+ flags -= ['--verbose'] if quiet?
13
15
  flags << quantity
14
16
  flags << path
15
17
  end
@@ -1,3 +1,3 @@
1
1
  class ImageOptimizer
2
- VERSION = '1.7.1'
2
+ VERSION = '1.7.2'
3
3
  end
@@ -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.1
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: 2017-11-29 00:00:00.000000000 Z
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