Sha256: 3a1dc416fbf8c94e026080d97c3f27cd49f12442bdfb466c0f3ba8e68e9c46a4
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
require "image_optim_bin/version" module ImageOptimBin def self.set_env if `uname`.to_s.strip == 'Linux' && `uname -m`.to_s.strip == 'x86_64' %w(jpegoptim jpegtran optipng pngcrush pngout advpng advdef advmng advzip gifsicle).each do |name| ENV["#{name}_bin".upcase] = File.expand_path(File.join(File.dirname(__FILE__), "..", "vendor", name)) end end end end ImageOptimBin.set_env
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
image_optim_bin-0.0.7 | lib/image_optim_bin.rb |
image_optim_bin-0.0.6 | lib/image_optim_bin.rb |