jekyll-template 0.7.0 → 0.8.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.rb +5 -0
- data/lib/jekyll/template/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41045d4fd024d55ddcd612d04f33e64070ba2adf
|
4
|
+
data.tar.gz: ef575193f4cb066e829becce98b7447658010797
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c020b607566b5612176c252c85556a219256a80622456becfc92c9bcd30dfbc5d4d448d911b7876049dbbdd9d287c9ea98e4b0e313854aec521c3ed6ca1d6ffb
|
7
|
+
data.tar.gz: 1da04dc55d6571e236333a8ee0b7c567ffdcd1d2d1e4b90f7777fd539df9535f21384d06a46f98f7325c9f05c2413723d6c4d14e1250d40cd6f916899e1c164a
|
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
@@ -2,6 +2,7 @@ require "htmlcompressor"
|
|
2
2
|
require "jekyll"
|
3
3
|
require "jekyll/template/version"
|
4
4
|
require "unindent"
|
5
|
+
# require "yui-compressor"
|
5
6
|
|
6
7
|
module Jekyll
|
7
8
|
module Tags
|
@@ -55,6 +56,10 @@ module Jekyll
|
|
55
56
|
# Remove leading whitespace
|
56
57
|
# content = content.lstrip
|
57
58
|
compressor = HtmlCompressor::Compressor.new({
|
59
|
+
:compress_javascript => true,
|
60
|
+
:javascript_compressor => :yui,
|
61
|
+
:compress_css => true,
|
62
|
+
:css_compressor => :yui,
|
58
63
|
:remove_comments => true
|
59
64
|
})
|
60
65
|
site = context.registers[:site]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ItsJonQ
|
@@ -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
|