Permalink
Browse files

Closure Compiler 1.1.4

  • Loading branch information...
1 parent 637abe1 commit 17eb47432c1f92aadfd33ff1ba72447cb3d17874 @jashkenas jashkenas committed Oct 3, 2011
View
@@ -2,9 +2,9 @@ h1. The Closure Compiler (as a Ruby Gem)
The *closure-compiler* gem is a svelte wrapper around the "Google Closure Compiler":http://code.google.com/closure/compiler/ for JavaScript compression.
-Latest Version: *"1.1.3":http://gemcutter.org/gems/closure-compiler*
+Latest Version: *"1.1.4":http://gemcutter.org/gems/closure-compiler*
-The Closure Compiler's *2011-08-11* JAR-file is included with the gem.
+The Closure Compiler's *2011-10-03* JAR-file is included with the gem.
h2. Installation
View
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = 'closure-compiler'
- s.version = '1.1.3' # Keep version in sync with closure-compiler.rb
- s.date = '2011-08-12'
+ s.version = '1.1.4' # Keep version in sync with closure-compiler.rb
+ s.date = '2011-10-03'
s.homepage = "http://github.com/documentcloud/closure-compiler/"
s.summary = "Ruby Wrapper for the Google Closure Compiler"
Binary file not shown.
View
@@ -1,8 +1,8 @@
module Closure
- VERSION = "1.1.3"
+ VERSION = "1.1.4"
- COMPILER_VERSION = "20110811"
+ COMPILER_VERSION = "20111003"
JAVA_COMMAND = 'java'
View
@@ -34,9 +34,9 @@ def compile(io)
tempfile.flush
begin
- result = `#{command} --js #{tempfile.path}`
+ result = `#{command} --js #{tempfile.path} 2>&1`
rescue Exception
- raise Error, "compression failed"
+ raise Error, "compression failed: #{result}"
ensure
tempfile.close!
end

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -57,6 +57,7 @@ def test_exceptions
def test_stderr_reading
js = Compiler.new.compile(File.read('test/fixtures/precompressed.js'))
+ File.open('test/fixtures/precompressed-compiled.js', 'w+') {|f| f.write js }
assert js == File.read('test/fixtures/precompressed-compiled.js')
end

0 comments on commit 17eb474

Please sign in to comment.