jekyll-template 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jekyll-template.gemspec +1 -0
- data/lib/jekyll/template/version.rb +1 -1
- data/lib/jekyll/template.rb +4 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9992f2776cf32b60b4387b347324510cca909b19
|
4
|
+
data.tar.gz: d0c56f1529e3d1b2e464ef55f8606d095c2f250d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69f909a86e4c236ec7716d5ad87783352836d04dbe988c20c24e3dd7dbef171cfa51e887bcb7d707b7419f022d8d8268dcb5809532554c372dc2fe2a1c3b64b9
|
7
|
+
data.tar.gz: 00b1972ff3c10dce8d92be1a8929fa864cc339a1aea0781b13cd5806d5b9a1b0fe31d953dd1954e22c4b66e0b5b9f5c3ae7d557e0c7bf808ea7a327024e9d8b9
|
data/jekyll-template.gemspec
CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_runtime_dependency("jekyll", "3.1.2")
|
24
24
|
spec.add_runtime_dependency("htmlcompressor", "~> 0.3.1")
|
25
25
|
spec.add_runtime_dependency("unindent", "~> 1.0")
|
26
|
+
spec.add_runtime_dependency("yui-compressor", "~> 0.12.0")
|
26
27
|
|
27
28
|
spec.add_development_dependency "bundler", "~> 1.13"
|
28
29
|
spec.add_development_dependency "rake", "~> 10.0"
|
data/lib/jekyll/template.rb
CHANGED
@@ -55,6 +55,10 @@ module Jekyll
|
|
55
55
|
# Remove leading whitespace
|
56
56
|
# content = content.lstrip
|
57
57
|
compressor = HtmlCompressor::Compressor.new({
|
58
|
+
:compress_javascript => true,
|
59
|
+
:javascript_compressor => :yui,
|
60
|
+
:compress_css => true,
|
61
|
+
:css_compressor => :yui,
|
58
62
|
:remove_comments => true
|
59
63
|
})
|
60
64
|
site = context.registers[:site]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ItsJonQ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: yui-compressor
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.12.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.12.0
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: bundler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|