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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb41a07a0fa98366aaea91ba4883972e01d2a146
4
- data.tar.gz: acd5f48f32e0592e315ae7c3bc0d8b6d58202724
3
+ metadata.gz: 5be71e74d10ebef0018105429444bb84223d2994
4
+ data.tar.gz: 26c25578b712446ca0ffddbda1e0f79af30f835a
5
5
  SHA512:
6
- metadata.gz: 35e45aa7f14d1f29d9079b509fff4ffed262a5098d42bc19d2a8dbbd290c59deac0994d1fa28cf0e477560dae9347e2e09e56f5127ec48068d9917f6dc9fc38b
7
- data.tar.gz: cb627304dc67a4be5615aa0d5a905402c803eec122038d7c1862dc0eb090588958e3f862f0bb575efc8ff7de4de572863878d5dfeadb34264a5e7814328aa164
6
+ metadata.gz: 2eeeaae7992b1cdc0b4faa747667053b7a9cc6d6b8afd56c690770b73d133a3a5221b9911ea3c7bed1e80420c498fce1d35dac0fb307894f25076e76ecf15dda
7
+ data.tar.gz: a35ff933f3b1850b237786887bcb1f1716bd7f712d8a72e51e789d946a9e5c48837c8fee9d446d28601c11f64b00753b3cabae930b0b11e3f083396b8695f895
data/.travis.yml CHANGED
@@ -2,3 +2,6 @@ rvm:
2
2
  - "1.9.3"
3
3
  - "2.0.0"
4
4
  - "2.1.5"
5
+
6
+ before_install:
7
+ - gem update bundler
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
@@ -1,3 +1,3 @@
1
1
  module Piet
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.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: 2015-02-25 00:00:00.000000000 Z
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.2.2
154
+ rubygems_version: 2.4.5.1
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: An image optimizer