Skip to content

Commit 637abe1

Browse files
committed
Bumping to 1.1.3 with default logging to quiet. Overrideable, natch.
1 parent 4f99f4a commit 637abe1

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.textile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ h1. The Closure Compiler (as a Ruby Gem)
22

33
The *closure-compiler* gem is a svelte wrapper around the "Google Closure Compiler":http://code.google.com/closure/compiler/ for JavaScript compression.
44

5-
Latest Version: *"1.1.2":http://gemcutter.org/gems/closure-compiler*
5+
Latest Version: *"1.1.3":http://gemcutter.org/gems/closure-compiler*
66

77
The Closure Compiler's *2011-08-11* JAR-file is included with the gem.
88

closure-compiler.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'closure-compiler'
3-
s.version = '1.1.2' # Keep version in sync with closure-compiler.rb
3+
s.version = '1.1.3' # Keep version in sync with closure-compiler.rb
44
s.date = '2011-08-12'
55

66
s.homepage = "http://github.com/documentcloud/closure-compiler/"

lib/closure-compiler-20110322.jar

4.06 MB
Binary file not shown.

lib/closure-compiler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Closure
22

3-
VERSION = "1.1.2"
3+
VERSION = "1.1.3"
44

55
COMPILER_VERSION = "20110811"
66

lib/closure/compiler.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ class Error < StandardError; end
99
# The Closure::Compiler is a basic wrapper around the actual JAR. There's not
1010
# much to see here.
1111
class Compiler
12+
13+
DEFAULT_OPTIONS = {:warning_level => 'QUIET'}
1214

1315
# When you create a Compiler, pass in the flags and options.
1416
def initialize(options={})
1517
@java = options.delete(:java) || JAVA_COMMAND
1618
@jar = options.delete(:jar_file) || COMPILER_JAR
17-
@options = serialize_options(options)
19+
@options = serialize_options(DEFAULT_OPTIONS.merge(options))
1820
end
1921

2022
# Can compile a JavaScript string or open IO object. Returns the compiled

0 commit comments

Comments
 (0)