closure-compiler 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 2009 Google Inc.
191
+ Copyright 2010 Google Inc.
192
192
 
193
193
  "closure-compiler" RubyGem
194
- Copyright 2009 DocumentCloud Inc.
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 2009 Google Inc.
3
+ * Copyright 2010 Google Inc.
4
4
  *
5
5
  * "closure-compiler" RubyGem
6
- * Copyright 2009 DocumentCloud Inc.
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.
@@ -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.1.9":http://gemcutter.org/gems/closure-compiler*
5
+ Latest Version: *"0.2.0":http://gemcutter.org/gems/closure-compiler*
6
6
 
7
- The Closure Compiler's *2009-12-17* JAR-file is included with the gem, so you'll need *Java 6* installed in order to run the compiler.
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
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'closure-compiler'
3
- s.version = '0.1.9' # Keep version in sync with closure-compiler.rb
4
- s.date = '2010-1-27'
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"
@@ -2,9 +2,9 @@ require File.expand_path(File.dirname(__FILE__) + '/closure/compiler')
2
2
 
3
3
  module Closure
4
4
 
5
- VERSION = "0.1.9"
5
+ VERSION = "0.2.0"
6
6
 
7
- COMPILER_VERSION = "20091217"
7
+ COMPILER_VERSION = "20100201"
8
8
 
9
9
  JAVA_COMMAND = 'java'
10
10
 
@@ -32,8 +32,10 @@ module Closure
32
32
  stdin.write(io.to_s)
33
33
  end
34
34
  stdin.close
35
- result = block_given? ? yield(stdout) : stdout.read
36
- error = stderr.read
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
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.1.9
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-27 00:00:00 -05:00
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-20091217.jar
37
+ - vendor/closure-compiler-20100201.jar
38
38
  - closure-compiler.gemspec
39
39
  - README.textile
40
40
  - LICENSE