piet 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/piet.rb +1 -1
- data/lib/piet/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4d8f840cc9e1aa7708725ed3d9a888a0b378857
|
4
|
+
data.tar.gz: 60ae4572c09a4cd8516c42beafee4fc79c531207
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac8d8600011eca99037da2ca3caadfb1ce14f0017eb5e267abb668b8119d813b586807828dd873f0dce5b5b5abcb4883c11420affd04fc87e06e3d06a44feab
|
7
|
+
data.tar.gz: db3743b0f5375344bcea349c99a392e792c742cac9f78ba7740fb3b65fcf682689ebdffd50f3d3a28527c796f4bd763a6b685a0975090399793f109af14c1c7c
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -206,6 +206,7 @@ TODO
|
|
206
206
|
Changelog
|
207
207
|
---------
|
208
208
|
|
209
|
+
* v.0.2.6 Strip metadata for PNGs (same way we do with JPEGs) thanks to @PikachuEXE.
|
209
210
|
* v.0.2.5 Improved CI coverage & dropped support for Ruby 1.9
|
210
211
|
* v.0.2.4 Fixed Gemfile issues!
|
211
212
|
* v.0.2.3 More efficient treatment of open files thanks to @lavrovdv.
|
data/lib/piet.rb
CHANGED
@@ -30,7 +30,7 @@ module Piet
|
|
30
30
|
level = (0..7).include?(opts[:level]) ? opts[:level] : 7
|
31
31
|
vo = opts[:verbose] ? "-v" : "-quiet"
|
32
32
|
path.gsub!(/([\(\)\[\]\{\}\*\?\\])/, '\\\\\1')
|
33
|
-
`#{command_path("optipng")} -o#{level} #{opts[:command_options]} #{vo} #{path}`
|
33
|
+
`#{command_path("optipng")} -o#{level} −strip all #{opts[:command_options]} #{vo} #{path}`
|
34
34
|
end
|
35
35
|
|
36
36
|
def optimize_jpg(path, opts)
|
data/lib/piet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert Bellonch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: png_quantizator
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
version: '0'
|
153
153
|
requirements: []
|
154
154
|
rubyforge_project: piet
|
155
|
-
rubygems_version: 2.
|
155
|
+
rubygems_version: 2.6.11
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: An image optimizer
|