ghazel-jammit 0.4.4.1 → 0.4.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/jammit.gemspec +1 -1
  2. data/lib/jammit.rb +2 -0
  3. metadata +1 -1
data/jammit.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ghazel-jammit'
3
- s.version = '0.4.4.1' # Keep version in sync with jammit.rb
3
+ s.version = '0.4.4.2' # Keep version in sync with jammit.rb
4
4
  s.date = '2010-2-6'
5
5
 
6
6
  s.homepage = "http://documentcloud.github.com/jammit/"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghazel-jammit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4.1
4
+ version: 0.4.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas