Permalink
Browse files

Bumping to 1.1.3 with default logging to quiet. Overrideable, natch.

  • Loading branch information...
1 parent 4f99f4a commit 637abe13b282db514dfbce25ca5abcfc1c788767 @jashkenas jashkenas committed Aug 12, 2011
View
@@ -2,7 +2,7 @@ h1. The Closure Compiler (as a Ruby Gem)
The *closure-compiler* gem is a svelte wrapper around the "Google Closure Compiler":http://code.google.com/closure/compiler/ for JavaScript compression.
-Latest Version: *"1.1.2":http://gemcutter.org/gems/closure-compiler*
+Latest Version: *"1.1.3":http://gemcutter.org/gems/closure-compiler*
The Closure Compiler's *2011-08-11* JAR-file is included with the gem.
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'closure-compiler'
- s.version = '1.1.2' # Keep version in sync with closure-compiler.rb
+ s.version = '1.1.3' # Keep version in sync with closure-compiler.rb
s.date = '2011-08-12'
s.homepage = "http://github.com/documentcloud/closure-compiler/"
Binary file not shown.
View
@@ -1,6 +1,6 @@
module Closure
- VERSION = "1.1.2"
+ VERSION = "1.1.3"
COMPILER_VERSION = "20110811"
View
@@ -9,12 +9,14 @@ class Error < StandardError; end
# The Closure::Compiler is a basic wrapper around the actual JAR. There's not
# much to see here.
class Compiler
+
+ DEFAULT_OPTIONS = {:warning_level => 'QUIET'}
# When you create a Compiler, pass in the flags and options.
def initialize(options={})
@java = options.delete(:java) || JAVA_COMMAND
@jar = options.delete(:jar_file) || COMPILER_JAR
- @options = serialize_options(options)
+ @options = serialize_options(DEFAULT_OPTIONS.merge(options))
end
# Can compile a JavaScript string or open IO object. Returns the compiled

0 comments on commit 637abe1

Please sign in to comment.