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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b3af31183ab0c3de1eb45e65baed200c122df18
4
- data.tar.gz: d7da66bcb75e0917b3b9f8ebae1c3ef0439119cd
3
+ metadata.gz: 41045d4fd024d55ddcd612d04f33e64070ba2adf
4
+ data.tar.gz: ef575193f4cb066e829becce98b7447658010797
5
5
  SHA512:
6
- metadata.gz: 73a77d327a7c2831bed683c28e4a6197750226073b853a6d83e84001e0d148ab44a0c56fac3acde6c8c619d1ab2936616c87428d1614d7fd5914992bbdc37a8c
7
- data.tar.gz: 9b8e56d683c9cd92bd8aaa1b2413d30944e1054ba5a0f5f57b8f1b7d3735bdd6cf38063dbebfa4397678d1449092ae92a85427266df90c0737ee39e5c039ee6e
6
+ metadata.gz: c020b607566b5612176c252c85556a219256a80622456becfc92c9bcd30dfbc5d4d448d911b7876049dbbdd9d287c9ea98e4b0e313854aec521c3ed6ca1d6ffb
7
+ data.tar.gz: 1da04dc55d6571e236333a8ee0b7c567ffdcd1d2d1e4b90f7777fd539df9535f21384d06a46f98f7325c9f05c2413723d6c4d14e1250d40cd6f916899e1c164a
@@ -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"
@@ -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]
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Template
3
- VERSION = "0.7.0"
3
+ VERSION = "0.8.0"
4
4
  end
5
5
  end
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.7.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