diff --git a/closure-compiler.gemspec b/closure-compiler.gemspec index d103006..b52bcca 100644 --- a/closure-compiler.gemspec +++ b/closure-compiler.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'closure-compiler' - s.version = '1.1.10' # Keep version in sync with closure-compiler.rb - s.date = '2013-05-28' + s.version = '1.1.11' # Keep version in sync with closure-compiler.rb + s.date = '2014-07-30' s.homepage = "http://github.com/documentcloud/closure-compiler/" s.summary = "Ruby Wrapper for the Google Closure Compiler" diff --git a/lib/closure-compiler-20130411.jar b/lib/closure-compiler-20130411.jar deleted file mode 100755 index 70cdddc..0000000 Binary files a/lib/closure-compiler-20130411.jar and /dev/null differ diff --git a/lib/closure-compiler-20140730.jar b/lib/closure-compiler-20140730.jar new file mode 100644 index 0000000..00bf145 Binary files /dev/null and b/lib/closure-compiler-20140730.jar differ diff --git a/lib/closure-compiler.rb b/lib/closure-compiler.rb index 3ba80f1..88aa63d 100644 --- a/lib/closure-compiler.rb +++ b/lib/closure-compiler.rb @@ -1,8 +1,8 @@ module Closure - VERSION = "1.1.10" + VERSION = "1.1.11" - COMPILER_VERSION = "20130411" + COMPILER_VERSION = "20140730" JAVA_COMMAND = 'java' diff --git a/lib/closure/compiler.rb b/lib/closure/compiler.rb index a891cba..9d39a6a 100644 --- a/lib/closure/compiler.rb +++ b/lib/closure/compiler.rb @@ -11,7 +11,7 @@ class Error < StandardError; end class Compiler attr_accessor :options - + DEFAULT_OPTIONS = { :warning_level => 'QUIET', :language_in => 'ECMASCRIPT5' @@ -58,7 +58,8 @@ def compile_files(files) @options.merge!(:js => files) begin - result = `#{command} 2>&1` + redirect_stderr = "2>&1" if !Gem.win_platform? + result = `#{command} #{redirect_stderr}` rescue Exception raise Error, "compression failed: #{result}" end