faster_asset_compiler 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/closure-compiler.rb +3 -2
- data/lib/faster_asset_compiler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4280161da61777635f7eb56b33860a661e6fbf3f
|
|
4
|
+
data.tar.gz: 7cb471855efc7347ad5733276bce2881220caeab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab98f7740b2f525f0a54a9da81b8fef091a276d24e94656a90a9094ea0d56ba16b65b3e82b553ecfd16c13eccc4171b1569f828d8755a125e9d18330349dafc2
|
|
7
|
+
data.tar.gz: 3ba7e6ced04797e94ad4b58a2d73bddb86ade0e2aa6568db6594c4e3378238cda3a15759e8cd4d082005997caea826e63c0acc32626978e62ea8bfd7ebb3a537
|
data/lib/closure-compiler.rb
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
module Closure
|
|
3
2
|
class Compiler
|
|
4
3
|
def initialize
|
|
@@ -24,7 +23,7 @@ module Closure
|
|
|
24
23
|
com.google.javascript.jscomp.Compiler.setLoggingLevel(Level::SEVERE)
|
|
25
24
|
end
|
|
26
25
|
|
|
27
|
-
def
|
|
26
|
+
def compile(js)
|
|
28
27
|
source = JSSourceFile.fromCode("unknown", js)
|
|
29
28
|
compiler ||= Java::ComGoogleJavascriptJscomp::Compiler.new
|
|
30
29
|
|
|
@@ -34,5 +33,7 @@ module Closure
|
|
|
34
33
|
raise Error, result unless res.success
|
|
35
34
|
return result
|
|
36
35
|
end
|
|
36
|
+
|
|
37
|
+
alias :compress :compile
|
|
37
38
|
end
|
|
38
39
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: faster_asset_compiler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jorge Falcão
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-10-
|
|
11
|
+
date: 2013-10-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|