Skip to content

Commit 2c3d2cb

Browse files
committed
Merge pull request #30 from alubbe/master
Fixed compression output error in Windows & bumped compiler to 20140730
2 parents 7a9b34b + d532ba9 commit 2c3d2cb

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

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.10' # Keep version in sync with closure-compiler.rb
4-
s.date = '2013-05-28'
3+
s.version = '1.1.11' # Keep version in sync with closure-compiler.rb
4+
s.date = '2014-07-30'
55

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

lib/closure-compiler-20130411.jar

-5.98 MB
Binary file not shown.

lib/closure-compiler-20140730.jar

5.68 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.10"
3+
VERSION = "1.1.11"
44

5-
COMPILER_VERSION = "20130411"
5+
COMPILER_VERSION = "20140730"
66

77
JAVA_COMMAND = 'java'
88

lib/closure/compiler.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Error < StandardError; end
1111
class Compiler
1212

1313
attr_accessor :options
14-
14+
1515
DEFAULT_OPTIONS = {
1616
:warning_level => 'QUIET',
1717
:language_in => 'ECMASCRIPT5'
@@ -58,7 +58,8 @@ def compile_files(files)
5858
@options.merge!(:js => files)
5959

6060
begin
61-
result = `#{command} 2>&1`
61+
redirect_stderr = "2>&1" if !Gem.win_platform?
62+
result = `#{command} #{redirect_stderr}`
6263
rescue Exception
6364
raise Error, "compression failed: #{result}"
6465
end

0 commit comments

Comments
 (0)