Permalink
Browse files

Merge pull request #30 from alubbe/master

Fixed compression output error in Windows & bumped compiler to 20140730
  • Loading branch information...
knowtheory committed Aug 5, 2014
2 parents 7a9b34b + d532ba9 commit 2c3d2cb49ce082a8b00368dbee7c90ffecc16c94
View
@@ -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"
View
Binary file not shown.
View
Binary file not shown.
View
@@ -1,8 +1,8 @@
module Closure
VERSION = "1.1.10"
VERSION = "1.1.11"
COMPILER_VERSION = "20130411"
COMPILER_VERSION = "20140730"
JAVA_COMMAND = 'java'
View
@@ -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

0 comments on commit 2c3d2cb

Please sign in to comment.