@@ -22,7 +22,7 @@ module Jammit
2222
2323 DEFAULT_JST_NAMESPACE = "window.JST"
2424
25- AVAILABLE_COMPRESSORS = [ :yui , :closure , :uglifier ]
25+ COMPRESSORS = [ :yui , :closure , :uglifier ]
2626
2727 DEFAULT_COMPRESSOR = :yui
2828
@@ -46,18 +46,18 @@ class OutputNotWritable < StandardError; end
4646 class DeprecationError < StandardError ; end
4747
4848 class << self
49- attr_reader :configuration , :template_function , :template_namespace ,
50- :embed_assets , :package_assets , :compress_assets , :gzip_assets ,
51- :package_path , :mhtml_enabled , :include_jst_script , :config_path ,
52- :javascript_compressor , :compressor_options , :css_compressor_options ,
53- :template_extension , :template_extension_matcher , :allow_debugging
54- attr_accessor :loaded_compressors
49+ attr_reader :configuration , :template_function , :template_namespace ,
50+ :embed_assets , :package_assets , :compress_assets , :gzip_assets ,
51+ :package_path , :mhtml_enabled , :include_jst_script , :config_path ,
52+ :javascript_compressor , :compressor_options , :css_compressor_options ,
53+ :template_extension , :template_extension_matcher , :allow_debugging
54+ attr_accessor :compressors
5555 end
5656
5757 # The minimal required configuration.
58- @configuration = { }
59- @package_path = DEFAULT_PACKAGE_PATH
60- @loaded_compressors = AVAILABLE_COMPRESSORS
58+ @configuration = { }
59+ @package_path = DEFAULT_PACKAGE_PATH
60+ @compressors = COMPRESSORS
6161
6262 # Load the complete asset configuration from the specified @config_path@.
6363 # If we're loading softly, don't let missing configuration error out.
@@ -136,7 +136,7 @@ def self.package!(options={})
136136 # Ensure that the JavaScript compressor is a valid choice.
137137 def self . set_javascript_compressor ( value )
138138 value = value && value . to_sym
139- @javascript_compressor = loaded_compressors . include? ( value ) ? value : DEFAULT_COMPRESSOR
139+ @javascript_compressor = compressors . include? ( value ) ? value : DEFAULT_COMPRESSOR
140140 end
141141
142142 # Turn asset packaging on or off, depending on configuration and environment.
0 commit comments