Sha256: f99acc1734e70d946aefb95860ffd1e044200e57e57c87f43ba71340de6ed1dc

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 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).each do |name|
        ENV["#{name}_bin".upcase] = File.expand_path(File.join(File.dirname(__FILE__), "..", "bin", name))
      end
    end
  end
end

ImageOptimBin.set_env

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
image_optim_bin-0.0.2 lib/image_optim_bin.rb