Skip to content

Commit 17eb474

Browse files
committed
Closure Compiler 1.1.4
1 parent 637abe1 commit 17eb474

8 files changed

Lines changed: 110 additions & 109 deletions

README.textile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ h1. The Closure Compiler (as a Ruby Gem)
22

33
The *closure-compiler* gem is a svelte wrapper around the "Google Closure Compiler":http://code.google.com/closure/compiler/ for JavaScript compression.
44

5-
Latest Version: *"1.1.3":http://gemcutter.org/gems/closure-compiler*
5+
Latest Version: *"1.1.4":http://gemcutter.org/gems/closure-compiler*
66

7-
The Closure Compiler's *2011-08-11* JAR-file is included with the gem.
7+
The Closure Compiler's *2011-10-03* JAR-file is included with the gem.
88

99
h2. Installation
1010

closure-compiler.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22
s.name = 'closure-compiler'
3-
s.version = '1.1.3' # Keep version in sync with closure-compiler.rb
4-
s.date = '2011-08-12'
3+
s.version = '1.1.4' # Keep version in sync with closure-compiler.rb
4+
s.date = '2011-10-03'
55

66
s.homepage = "http://github.com/documentcloud/closure-compiler/"
77
s.summary = "Ruby Wrapper for the Google Closure Compiler"

lib/closure-compiler-20110322.jar

-4.06 MB
Binary file not shown.

lib/closure-compiler.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module Closure
22

3-
VERSION = "1.1.3"
3+
VERSION = "1.1.4"
44

5-
COMPILER_VERSION = "20110811"
5+
COMPILER_VERSION = "20111003"
66

77
JAVA_COMMAND = 'java'
88

lib/closure/compiler.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def compile(io)
3434
tempfile.flush
3535

3636
begin
37-
result = `#{command} --js #{tempfile.path}`
37+
result = `#{command} --js #{tempfile.path} 2>&1`
3838
rescue Exception
39-
raise Error, "compression failed"
39+
raise Error, "compression failed: #{result}"
4040
ensure
4141
tempfile.close!
4242
end

test/fixtures/precompressed-compiled.js

Lines changed: 101 additions & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/unit/closure_compiler_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def test_exceptions
5757

5858
def test_stderr_reading
5959
js = Compiler.new.compile(File.read('test/fixtures/precompressed.js'))
60+
File.open('test/fixtures/precompressed-compiled.js', 'w+') {|f| f.write js }
6061
assert js == File.read('test/fixtures/precompressed-compiled.js')
6162
end
6263

0 commit comments

Comments
 (0)