Skip to content

Commit

Permalink
Merge pull request #30 from alubbe/master
Browse files Browse the repository at this point in the history
Fixed compression output error in Windows & bumped compiler to 20140730
  • Loading branch information
knowtheory committed Aug 5, 2014
2 parents 7a9b34b + d532ba9 commit 2c3d2cb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions 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"
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
@@ -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
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

0 comments on commit 2c3d2cb

Please sign in to comment.