piet 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/README.md +1 -0
- data/lib/piet/version.rb +1 -1
- data/lib/piet.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: 5be71e74d10ebef0018105429444bb84223d2994
|
4
|
+
data.tar.gz: 26c25578b712446ca0ffddbda1e0f79af30f835a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eeeaae7992b1cdc0b4faa747667053b7a9cc6d6b8afd56c690770b73d133a3a5221b9911ea3c7bed1e80420c498fce1d35dac0fb307894f25076e76ecf15dda
|
7
|
+
data.tar.gz: a35ff933f3b1850b237786887bcb1f1716bd7f712d8a72e51e789d946a9e5c48837c8fee9d446d28601c11f64b00753b3cabae930b0b11e3f083396b8695f895
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -190,6 +190,7 @@ TODO
|
|
190
190
|
Changelog
|
191
191
|
---------
|
192
192
|
|
193
|
+
* v.0.2.3 More efficient treatment of open files thanks to @lavrovdv.
|
193
194
|
* v.0.2.2 Lighter gem weight (to be improved in the future).
|
194
195
|
* v.0.2.1 More reliable file type detection, by not using the extension but the MIME type. Thanks to @jewlofthelotus! Also, the Carrierwave
|
195
196
|
extension is now compatible with RMagick thanks to @YoranBrondsema.
|
data/lib/piet/version.rb
CHANGED
data/lib/piet.rb
CHANGED
@@ -23,7 +23,7 @@ module Piet
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def mimetype(path)
|
26
|
-
IO.popen(['file', '--brief', '--mime-type', path], in: :close, err: :close).read.chomp.sub(/image\//, '')
|
26
|
+
IO.popen(['file', '--brief', '--mime-type', path], in: :close, err: :close){|io| io.read.chomp.sub(/image\//, '')}
|
27
27
|
end
|
28
28
|
|
29
29
|
def optimize_png(path, opts)
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert Bellonch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: png_quantizator
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
requirements: []
|
153
153
|
rubyforge_project: piet
|
154
|
-
rubygems_version: 2.
|
154
|
+
rubygems_version: 2.4.5.1
|
155
155
|
signing_key:
|
156
156
|
specification_version: 4
|
157
157
|
summary: An image optimizer
|