Sha256: 06717aa563c48ebb8f09260bd09ee9dec27ea485d64e6f27382c289b6d7a5001

Contents?: true

Size: 308 Bytes

Versions: 29

Compression:

Stored size: 308 Bytes

Contents

# encoding: utf-8
module LocalPac
  class JavaScriptCompressor
    private

    attr_reader :compressor

    public

    def initialize(compressor = Uglifier.new)
      @compressor = compressor
    end

    def prepare(file)
      file.compressed_content = compressor.compile(file.content)
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
local_pac-0.10.2 lib/local_pac/java_script_compressor.rb
local_pac-0.10.1 lib/local_pac/java_script_compressor.rb
local_pac-0.10.0 lib/local_pac/java_script_compressor.rb
local_pac-0.9.0 lib/local_pac/java_script_compressor.rb
local_pac-0.7.0 lib/local_pac/java_script_compressor.rb
local_pac-0.6.3 lib/local_pac/java_script_compressor.rb
local_pac-0.6.2 lib/local_pac/java_script_compressor.rb
local_pac-0.6.1 lib/local_pac/java_script_compressor.rb
local_pac-0.5.0 lib/local_pac/java_script_compressor.rb
local_pac-0.4.0 lib/local_pac/java_script_compressor.rb
local_pac-0.3.0 lib/local_pac/java_script_compressor.rb
local_pac-0.2.3 lib/local_pac/java_script_compressor.rb
local_pac-0.2.2 lib/local_pac/java_script_compressor.rb
local_pac-0.2.1 lib/local_pac/java_script_compressor.rb
local_pac-0.2.0 lib/local_pac/java_script_compressor.rb
local_pac-0.1.13 lib/local_pac/java_script_compressor.rb
local_pac-0.1.11 lib/local_pac/java_script_compressor.rb
local_pac-0.1.10 lib/local_pac/java_script_compressor.rb
local_pac-0.1.9 lib/local_pac/java_script_compressor.rb
local_pac-0.1.8 lib/local_pac/java_script_compressor.rb