Skip to content

Commit

Permalink
Bumping to 1.1.3 with default logging to quiet. Overrideable, natch.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Aug 12, 2011
1 parent 4f99f4a commit 637abe1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.textile
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion closure-compiler.gemspec
@@ -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/"
Expand Down
Binary file added lib/closure-compiler-20110322.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/closure-compiler.rb
@@ -1,6 +1,6 @@
module Closure

VERSION = "1.1.2"
VERSION = "1.1.3"

COMPILER_VERSION = "20110811"

Expand Down
4 changes: 3 additions & 1 deletion lib/closure/compiler.rb
Expand Up @@ -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
Expand Down

0 comments on commit 637abe1

Please sign in to comment.