ghazel-jammit 0.4.4.1 → 0.4.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/jammit.gemspec +1 -1
- data/lib/jammit.rb +2 -0
- metadata +1 -1
data/jammit.gemspec
CHANGED
data/lib/jammit.rb
CHANGED
|
@@ -126,12 +126,14 @@ module Jammit
|
|
|
126
126
|
|
|
127
127
|
# The YUI Compressor requires Java > 1.4, and Closure requires Java > 1.6.
|
|
128
128
|
def self.check_java_version
|
|
129
|
+
return true if @checked_java_version
|
|
129
130
|
java = @compressor_options[:java] || 'java'
|
|
130
131
|
@css_compressor_options[:java] ||= java if @compressor_options[:java]
|
|
131
132
|
version = (`#{java} -version 2>&1`)[/\d+\.\d+/]
|
|
132
133
|
disable_compression if !version ||
|
|
133
134
|
(@javascript_compressor == :closure && version < '1.6') ||
|
|
134
135
|
(@javascript_compressor == :yui && version < '1.4')
|
|
136
|
+
@checked_java_version = true
|
|
135
137
|
end
|
|
136
138
|
|
|
137
139
|
# If we don't have a working Java VM, then disable asset compression and
|