Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions closure-compiler.gemspec
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Binary file removed lib/closure-compiler-20130411.jar
Binary file not shown.
Binary file added lib/closure-compiler-20140730.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions lib/closure-compiler.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module Closure

VERSION = "1.1.10"
VERSION = "1.1.11"

COMPILER_VERSION = "20130411"
COMPILER_VERSION = "20140730"

JAVA_COMMAND = 'java'

Expand Down
5 changes: 3 additions & 2 deletions lib/closure/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Error < StandardError; end
class Compiler

attr_accessor :options

DEFAULT_OPTIONS = {
:warning_level => 'QUIET',
:language_in => 'ECMASCRIPT5'
Expand Down Expand Up @@ -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
Expand Down