Skip to content

Commit 6efb922

Browse files
committed
Closure Compiler 1.1.8, with 2012-12-12
1 parent e017c2c commit 6efb922

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

README.textile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ 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.7":http://rubygems.org/gems/closure-compiler*
5+
Latest Version: *"1.1.8":http://rubygems.org/gems/closure-compiler*
66

7-
The Closure Compiler's *2012-09-17* JAR-file is included with the gem.
7+
The Closure Compiler's *2012-12-12* JAR-file is included with the gem.
88

99
h2. Installation
1010

1111
<pre>
1212
sudo gem install closure-compiler
1313
</pre>
14-
14+
1515
h2. Usage
1616

1717
The @Closure::Compiler@ has a @compile@ method, which can be passed a string or an open @IO@ object, and returns the compiled JavaScript. The result is returned as a string, or, if a block is passed, yields as an @IO@ object for streaming writes.
@@ -33,13 +33,13 @@ Closure::Compiler.new.compile_files(['underscore.js', 'jasmine.js']))
3333

3434
=> "(function(){var j=this,m=j._;function i(a){......
3535
</pre>
36-
36+
3737
When creating a @Closure::Compiler@, you can pass "any options that the command-line compiler accepts":http://code.google.com/closure/compiler/docs/gettingstarted_app.html to the initializer and they'll be forwarded. For example, to raise the compilation level up a notch:
3838

3939
<pre>
4040
closure = Closure::Compiler.new(:compilation_level => 'ADVANCED_OPTIMIZATIONS')
4141
closure.compile(File.open('underscore.js', 'r'))
42-
42+
4343
=> "(function(){var j=this,m=j.h;function i(a){......
4444
</pre>
4545

closure-compiler.gemspec

Lines changed: 3 additions & 3 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.7' # Keep version in sync with closure-compiler.rb
4-
s.date = '2012-07-25'
3+
s.version = '1.1.8' # Keep version in sync with closure-compiler.rb
4+
s.date = '2012-12-28'
55

66
s.homepage = "http://github.com/documentcloud/closure-compiler/"
77
s.summary = "Ruby Wrapper for the Google Closure Compiler"
@@ -21,4 +21,4 @@ Gem::Specification.new do |s|
2121

2222
s.files = Dir['lib/**/*', 'vendor/**/*', 'closure-compiler.gemspec', 'README.textile', 'LICENSE', 'COPYING']
2323

24-
end
24+
end

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.7"
3+
VERSION = "1.1.8"
44

55
COMPILER_VERSION = "20121212"
66

test/test_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'rubygems'
2+
13
if begin
24
Gem::Specification::find_by_name 'redgreen'
35
rescue Gem::LoadError

0 commit comments

Comments
 (0)