closure-compiler 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ 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.7":http://gemcutter.org/gems/closure-compiler*
5
+ Latest Version: *"0.1.8":http://gemcutter.org/gems/closure-compiler*
6
6
 
7
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.
8
8
 
@@ -35,6 +35,8 @@ closure.compile(File.open('underscore.js', 'r'))
35
35
 
36
36
  The default values of all the compiler flags are identical to the command-line version. The default *compilation_level* is "SIMPLE_OPTIMIZATIONS".
37
37
 
38
+ A @Closure::Error@ exception will be raised, explaining the JavaScript syntax error, if compilation fails for any reason.
39
+
38
40
  h2. YUI Compressor Compatibility
39
41
 
40
42
  Effort has been made to make the "closure-compiler" gem a drop-in alternative to the "ruby-yui-compressor". To that end, @Closure::Compiler#compile@ has been aliased as @compress@, and can take the same string or IO argument that a @YUI::JavaScriptCompressor#compress@ can. In addition, the @Closure::Compiler@ initializer can take @java@ and @jar_file@ options, overriding the location of the Java command and the Closure Compiler JAR file, respectively.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'closure-compiler'
3
- s.version = '0.1.7' # Keep version in sync with closure-compiler.rb
4
- s.date = '2010-1-23'
3
+ s.version = '0.1.8' # Keep version in sync with closure-compiler.rb
4
+ s.date = '2010-1-27'
5
5
 
6
6
  s.homepage = "http://github.com/documentcloud/closure-compiler/"
7
7
  s.summary = "Ruby Wrapper for the Google Closure Compiler"
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  EOS
11
11
 
12
12
  s.rubyforge_project = "closure-compiler"
13
- s.authors = ['Jeremy Ashkenas']
13
+ s.authors = ['Jeremy Ashkenas', 'Jordan Brough']
14
14
  s.email = 'jeremy@documentcloud.org'
15
15
 
16
16
  s.require_paths = ['lib']
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  '--exclude' << 'test' <<
21
21
  '--all'
22
22
 
23
- s.add_dependency 'popen4', ['>= 0.1.2']
23
+ s.add_dependency 'POpen4', ['>= 0.1.4']
24
24
 
25
25
  s.files = Dir['lib/**/*', 'vendor/**/*', 'closure-compiler.gemspec', 'README.textile', 'LICENSE', 'COPYING']
26
26
 
@@ -2,7 +2,7 @@ require File.expand_path(File.dirname(__FILE__) + '/closure/compiler')
2
2
 
3
3
  module Closure
4
4
 
5
- VERSION = "0.1.7"
5
+ VERSION = "0.1.8"
6
6
 
7
7
  COMPILER_VERSION = "20091217"
8
8
 
@@ -1,5 +1,5 @@
1
1
  require 'rubygems'
2
- require 'popen4'
2
+ require 'POpen4'
3
3
  require 'stringio'
4
4
 
5
5
  module Closure
metadata CHANGED
@@ -1,26 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: closure-compiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas
8
+ - Jordan Brough
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2010-01-23 00:00:00 -05:00
13
+ date: 2010-01-27 00:00:00 -05:00
13
14
  default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
- name: popen4
17
+ name: POpen4
17
18
  type: :runtime
18
19
  version_requirement:
19
20
  version_requirements: !ruby/object:Gem::Requirement
20
21
  requirements:
21
22
  - - ">="
22
23
  - !ruby/object:Gem::Version
23
- version: 0.1.2
24
+ version: 0.1.4
24
25
  version:
25
26
  description: " A Ruby Wrapper for the Google Closure Compiler.\n"
26
27
  email: jeremy@documentcloud.org