jekyll-minifier 0.1.2 → 0.1.3
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/.travis.yml +1 -0
- data/jekyll-minifier.gemspec +4 -4
- data/lib/jekyll-minifier.rb +5 -1
- data/lib/jekyll-minifier/version.rb +1 -1
- data/spec/fixtures/404.html +0 -0
- data/spec/fixtures/_config.yml +1 -1
- data/spec/fixtures/_includes/sidebar.html +0 -0
- data/spec/fixtures/_layouts/category_index.html +0 -0
- data/spec/fixtures/_layouts/page.html +0 -0
- data/spec/fixtures/_plugins/generate_categories.rb +0 -0
- data/spec/fixtures/_posts/2012-04-03-test-review-1.markdown +0 -0
- data/spec/fixtures/_posts/2013-04-03-test-review-2.markdown +0 -0
- data/spec/fixtures/_posts/2015-01-01-random.markdown +0 -0
- data/spec/fixtures/assets/css/style.css +0 -0
- data/spec/fixtures/index.html +0 -0
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f729043a0054503093c8e126a540bd82de1a8fee
|
|
4
|
+
data.tar.gz: 7f773d1693a79bdb8b01c7dc51457d927ac8c8f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4996868248e8553b1b6f049e1ab7a0e69586c2d10209a12cf84d71d7aa3b6435ba12fbc4b660df5a9ed379ab7466e238545ff991bd18b9e3a5d25f8f59c28884
|
|
7
|
+
data.tar.gz: f883c558fe9b8ef769ef6dea203ce28653d003985ab3a4855aae96820d4adae1cfcb8974515ef8bd38f049e1895cb82d0fb1f45dbf0f111c68aafd783449f3ab
|
data/.travis.yml
CHANGED
data/jekyll-minifier.gemspec
CHANGED
|
@@ -19,15 +19,15 @@ Gem::Specification.new do |gem|
|
|
|
19
19
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
20
20
|
gem.name = "jekyll-minifier"
|
|
21
21
|
gem.require_paths = ["lib"]
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
if ENV['TRAVIS_TAG']
|
|
24
24
|
gem.version = "#{ENV['TRAVIS_TAG']}"
|
|
25
25
|
else
|
|
26
26
|
gem.version = Jekyll::Minifier::VERSION
|
|
27
27
|
end
|
|
28
|
-
|
|
29
|
-
gem.add_dependency "jekyll", "~> 3.
|
|
30
|
-
gem.add_dependency "uglifier", "~> 2
|
|
28
|
+
|
|
29
|
+
gem.add_dependency "jekyll", "~> 3.5"
|
|
30
|
+
gem.add_dependency "uglifier", "~> 3.2"
|
|
31
31
|
gem.add_dependency "htmlcompressor", "~> 0.3"
|
|
32
32
|
gem.add_dependency "cssminify2", "~> 2.0"
|
|
33
33
|
|
data/lib/jekyll-minifier.rb
CHANGED
|
@@ -85,7 +85,11 @@ module Jekyll
|
|
|
85
85
|
|
|
86
86
|
def write(dest)
|
|
87
87
|
dest_path = destination(dest)
|
|
88
|
-
|
|
88
|
+
if exclude?(dest, dest_path)
|
|
89
|
+
output_file(dest_path, output)
|
|
90
|
+
else
|
|
91
|
+
output_html(dest_path, output)
|
|
92
|
+
end
|
|
89
93
|
trigger_hooks(:post_write)
|
|
90
94
|
end
|
|
91
95
|
end
|
data/spec/fixtures/404.html
CHANGED
|
File without changes
|
data/spec/fixtures/_config.yml
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/spec/fixtures/index.html
CHANGED
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-minifier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- DigitalSparky
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-07-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -16,28 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '3.
|
|
19
|
+
version: '3.5'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '3.
|
|
26
|
+
version: '3.5'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: uglifier
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '2
|
|
33
|
+
version: '3.2'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '2
|
|
40
|
+
version: '3.2'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: htmlcompressor
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
174
174
|
version: '0'
|
|
175
175
|
requirements: []
|
|
176
176
|
rubyforge_project:
|
|
177
|
-
rubygems_version: 2.5
|
|
177
|
+
rubygems_version: 2.4.5
|
|
178
178
|
signing_key:
|
|
179
179
|
specification_version: 2
|
|
180
180
|
summary: Jekyll Minifier for html, css, and javascript
|