paperclip-compression 0.2.1 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/paperclip-compression.rb +2 -2
  2. metadata +2 -2
@@ -64,7 +64,7 @@ module Paperclip
64
64
 
65
65
  begin
66
66
  if @jpegtran_opts
67
- Paperclip.run('jpegtran', "#{@jpegtran_opts} #{src_path} > #{dst_path}")
67
+ Paperclip.run('jpegtran', "#{@jpegtran_opts} '#{src_path}' > '#{dst_path}'")
68
68
  dst
69
69
  else
70
70
  src
@@ -81,7 +81,7 @@ module Paperclip
81
81
  src_path = File.expand_path(src.path)
82
82
 
83
83
  begin
84
- Paperclip.run('optipng', "#{@optipng_opts} #{src_path}") if @optipng_opts
84
+ Paperclip.run('optipng', "#{@optipng_opts} '#{src_path}'") if @optipng_opts
85
85
  src
86
86
  rescue Cocaine::ExitStatusError => e
87
87
  raise Paperclip::Error, "OPTIPNG : There was an error processing the thumbnail for #{@basename}" if @whiny
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-compression
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-04 00:00:00.000000000 Z
12
+ date: 2013-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: paperclip