closure-compiler 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +2 -2
- data/LICENSE +2 -2
- data/README.textile +2 -2
- data/closure-compiler.gemspec +2 -2
- data/lib/closure-compiler.rb +2 -2
- data/lib/closure/compiler.rb +4 -2
- data/vendor/{closure-compiler-20091217.jar → closure-compiler-20100201.jar} +0 -0
- metadata +3 -3
data/COPYING
CHANGED
@@ -188,10 +188,10 @@ APPENDIX: How to apply the Apache License to your work.
|
|
188
188
|
identification within third-party archives.
|
189
189
|
|
190
190
|
closure-compiler.jar
|
191
|
-
Copyright
|
191
|
+
Copyright 2010 Google Inc.
|
192
192
|
|
193
193
|
"closure-compiler" RubyGem
|
194
|
-
Copyright
|
194
|
+
Copyright 2010 DocumentCloud Inc.
|
195
195
|
|
196
196
|
Licensed under the Apache License, Version 2.0 (the "License");
|
197
197
|
you may not use this file except in compliance with the License.
|
data/LICENSE
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
/*
|
2
2
|
* closure-compiler.jar
|
3
|
-
* Copyright
|
3
|
+
* Copyright 2010 Google Inc.
|
4
4
|
*
|
5
5
|
* "closure-compiler" RubyGem
|
6
|
-
* Copyright
|
6
|
+
* Copyright 2010 DocumentCloud Inc.
|
7
7
|
*
|
8
8
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
9
|
* you may not use this file except in compliance with the License.
|
data/README.textile
CHANGED
@@ -2,9 +2,9 @@ h1. The Closure Compiler (as a Ruby Gem)
|
|
2
2
|
|
3
3
|
The *closure-compiler* gem is a svelte wrapper around the "Google Closure Compiler":http://code.google.com/closure/compiler/ for JavaScript compression.
|
4
4
|
|
5
|
-
Latest Version: *"0.
|
5
|
+
Latest Version: *"0.2.0":http://gemcutter.org/gems/closure-compiler*
|
6
6
|
|
7
|
-
The Closure Compiler's *
|
7
|
+
The Closure Compiler's *2010-02-01* JAR-file is included with the gem, so you'll need *Java 6* installed in order to run the compiler.
|
8
8
|
|
9
9
|
h2. Installation
|
10
10
|
|
data/closure-compiler.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'closure-compiler'
|
3
|
-
s.version = '0.
|
4
|
-
s.date = '2010-1
|
3
|
+
s.version = '0.2.0' # Keep version in sync with closure-compiler.rb
|
4
|
+
s.date = '2010-2-1'
|
5
5
|
|
6
6
|
s.homepage = "http://github.com/documentcloud/closure-compiler/"
|
7
7
|
s.summary = "Ruby Wrapper for the Google Closure Compiler"
|
data/lib/closure-compiler.rb
CHANGED
data/lib/closure/compiler.rb
CHANGED
@@ -32,8 +32,10 @@ module Closure
|
|
32
32
|
stdin.write(io.to_s)
|
33
33
|
end
|
34
34
|
stdin.close
|
35
|
-
|
36
|
-
|
35
|
+
out_thread = Thread.new { result = stdout.read }
|
36
|
+
err_thread = Thread.new { error = stderr.read }
|
37
|
+
out_thread.join and err_thread.join
|
38
|
+
yield(StringIO.new(result)) if block_given?
|
37
39
|
end
|
38
40
|
raise Error, error unless status.success?
|
39
41
|
result
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: closure-compiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Ashkenas
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2010-01
|
13
|
+
date: 2010-02-01 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -34,7 +34,7 @@ extra_rdoc_files: []
|
|
34
34
|
files:
|
35
35
|
- lib/closure/compiler.rb
|
36
36
|
- lib/closure-compiler.rb
|
37
|
-
- vendor/closure-compiler-
|
37
|
+
- vendor/closure-compiler-20100201.jar
|
38
38
|
- closure-compiler.gemspec
|
39
39
|
- README.textile
|
40
40
|
- LICENSE
|