secobarbital-jammit 0.5.0 → 0.5.0.1
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/jammit.gemspec +3 -3
- data/lib/jammit/compressor.rb +3 -6
- data/lib/jammit/dependencies.rb +0 -1
- data/lib/jammit.rb +1 -2
- metadata +6 -2
data/jammit.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'secobarbital-jammit'
|
3
|
-
s.version = '0.5.0' # Keep version in sync with jammit.rb
|
3
|
+
s.version = '0.5.0.1' # Keep version in sync with jammit.rb
|
4
4
|
s.date = '2010-4-15'
|
5
5
|
|
6
6
|
s.homepage = "http://documentcloud.github.com/jammit/"
|
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
Data-URI / MHTML image embedding.
|
14
14
|
EOS
|
15
15
|
|
16
|
-
s.authors = ['Jeremy Ashkenas']
|
17
|
-
s.email = 'jeremy@documentcloud.org'
|
16
|
+
s.authors = ['Jeremy Ashkenas', 'Seggy Umboh']
|
17
|
+
s.email = ['jeremy@documentcloud.org', 'Seggy Umboh']
|
18
18
|
s.rubyforge_project = 'jammit'
|
19
19
|
|
20
20
|
s.require_paths = ['lib']
|
data/lib/jammit/compressor.rb
CHANGED
@@ -41,18 +41,15 @@ module Jammit
|
|
41
41
|
JST_END = "})();"
|
42
42
|
|
43
43
|
COMPRESSORS = {
|
44
|
-
:yui => YUI::JavaScriptCompressor
|
45
|
-
:closure => Closure::Compiler
|
44
|
+
:yui => YUI::JavaScriptCompressor
|
46
45
|
}
|
47
46
|
|
48
47
|
DEFAULT_OPTIONS = {
|
49
|
-
:yui => {:munge => true}
|
50
|
-
:closure => {}
|
48
|
+
:yui => {:munge => true}
|
51
49
|
}
|
52
50
|
|
53
51
|
# Creating a compressor initializes the internal YUI Compressor from
|
54
|
-
# the "yui-compressor" gem
|
55
|
-
# "closure-compiler" gem.
|
52
|
+
# the "yui-compressor" gem.
|
56
53
|
def initialize
|
57
54
|
@css_compressor = YUI::CssCompressor.new(Jammit.css_compressor_options || {})
|
58
55
|
flavor = Jammit.javascript_compressor || Jammit::DEFAULT_COMPRESSOR
|
data/lib/jammit/dependencies.rb
CHANGED
data/lib/jammit.rb
CHANGED
@@ -22,7 +22,7 @@ module Jammit
|
|
22
22
|
|
23
23
|
DEFAULT_JST_NAMESPACE = "window.JST"
|
24
24
|
|
25
|
-
AVAILABLE_COMPRESSORS = [:yui
|
25
|
+
AVAILABLE_COMPRESSORS = [:yui]
|
26
26
|
|
27
27
|
DEFAULT_COMPRESSOR = :yui
|
28
28
|
|
@@ -139,7 +139,6 @@ module Jammit
|
|
139
139
|
@css_compressor_options[:java] ||= java if @compressor_options[:java]
|
140
140
|
version = (`#{java} -version 2>&1`)[/\d+\.\d+/]
|
141
141
|
disable_compression if !version ||
|
142
|
-
(@javascript_compressor == :closure && version < '1.6') ||
|
143
142
|
(@javascript_compressor == :yui && version < '1.4')
|
144
143
|
@checked_java_version = true
|
145
144
|
end
|
metadata
CHANGED
@@ -6,10 +6,12 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 5
|
8
8
|
- 0
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.5.0.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Jeremy Ashkenas
|
14
|
+
- Seggy Umboh
|
13
15
|
autorequire:
|
14
16
|
bindir: bin
|
15
17
|
cert_chain: []
|
@@ -46,7 +48,9 @@ dependencies:
|
|
46
48
|
type: :runtime
|
47
49
|
version_requirements: *id002
|
48
50
|
description: " Jammit is an industrial strength asset packaging library for Rails,\n providing both the CSS and JavaScript concatenation and compression that\n you'd expect, as well as YUI Compressor and Closure Compiler compatibility,\n ahead-of-time gzipping, built-in JavaScript template support, and optional\n Data-URI / MHTML image embedding.\n"
|
49
|
-
email:
|
51
|
+
email:
|
52
|
+
- jeremy@documentcloud.org
|
53
|
+
- Seggy Umboh
|
50
54
|
executables:
|
51
55
|
- jammit
|
52
56
|
extensions: []
|