jekyll-minifier 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -2
- data/jekyll-minifier.gemspec +4 -4
- data/lib/jekyll-minifier/version.rb +1 -1
- metadata +23 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8e564382e57c8def222007402a56b92fbaa9c80
|
4
|
+
data.tar.gz: 8d6fbd19a346e3f056bf69d7dcee69c234bbcdbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c84785b929633e22e299df1678bdad97d7f6ded92243808ac8e2f5d0280e3023f8469fbf508e920fa53cfec5cbb74313aed2c53a575acf21c9da66a1290683f5
|
7
|
+
data.tar.gz: b74362f280bed6f79363d4950912c42228da248d6df4318b9ec7b21ce08c78b6e6b5b1532d881209ab50f616bc4246a2a398c280f3b09fbf22b18769d7636afd
|
data/README.md
CHANGED
@@ -1,2 +1,23 @@
|
|
1
|
-
# jekyll-minifier
|
2
|
-
|
1
|
+
# jekyll-minifier [![Gem Version](https://badge.fury.io/rb/jekyll-minifier.svg)](http://badge.fury.io/rb/jekyll-minifier)
|
2
|
+
|
3
|
+
Minifies HTML, XML, CSS, and Javascript both inline and as separate files utilising yui-compressor and htmlcompressor.
|
4
|
+
|
5
|
+
This was created due to the previous minifier (jekyll-press) not being CSS3 compatible, which made me frown.
|
6
|
+
|
7
|
+
Note: this is my first ever gem, I'm learning, so feedback is much appreciated.
|
8
|
+
|
9
|
+
Easy to use, just install the jekyll-minifier gem:
|
10
|
+
|
11
|
+
<pre><code>gem install jekyll-minifier</code></pre>
|
12
|
+
|
13
|
+
Then add this to your _config.yml:
|
14
|
+
|
15
|
+
<pre><code>gems:
|
16
|
+
- jekyll-minifier
|
17
|
+
</code></pre>
|
18
|
+
|
19
|
+
Optionally, you can also add exclusions using:
|
20
|
+
<pre><code>jekyll-minifier:
|
21
|
+
exclude: 'atom.xml' # Exclude files from processing - file name, glob pattern or array of file names and glob patterns
|
22
|
+
</code></pre>
|
23
|
+
|
data/jekyll-minifier.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
require File.expand_path('../lib/jekyll-minifier/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ["
|
5
|
+
gem.authors = ["DigitalSparky"]
|
6
6
|
gem.email = ["matthew@spurrier.com.au"]
|
7
7
|
gem.description = %q{Jekyll Minifier using htmlcompressor for html , and YUI compressor for js and css}
|
8
8
|
gem.summary = %q{Jekyll Minifier for html, css, and javascript}
|
@@ -16,9 +16,9 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.require_paths = ["lib"]
|
17
17
|
gem.version = Jekyll::Minifier::VERSION
|
18
18
|
|
19
|
-
gem.add_dependency "jekyll"
|
20
|
-
gem.add_dependency "yui-compressor", ">= 0.12.0"
|
21
|
-
gem.add_dependency "htmlcompressor", ">= 0.1.2"
|
19
|
+
gem.add_dependency "jekyll", "~> 2.5", ">= 2.5.3"
|
20
|
+
gem.add_dependency "yui-compressor", "~> 0.12", ">= 0.12.0"
|
21
|
+
gem.add_dependency "htmlcompressor", "~> 0.1.2", ">= 0.1.2"
|
22
22
|
|
23
23
|
gem.add_development_dependency "rake"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,33 +1,42 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-minifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- DigitalSparky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.5'
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.5.3
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.5'
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.5.3
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: yui-compressor
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.12'
|
31
40
|
- - ">="
|
32
41
|
- !ruby/object:Gem::Version
|
33
42
|
version: 0.12.0
|
@@ -35,6 +44,9 @@ dependencies:
|
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.12'
|
38
50
|
- - ">="
|
39
51
|
- !ruby/object:Gem::Version
|
40
52
|
version: 0.12.0
|
@@ -42,6 +54,9 @@ dependencies:
|
|
42
54
|
name: htmlcompressor
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.1.2
|
45
60
|
- - ">="
|
46
61
|
- !ruby/object:Gem::Version
|
47
62
|
version: 0.1.2
|
@@ -49,6 +64,9 @@ dependencies:
|
|
49
64
|
prerelease: false
|
50
65
|
version_requirements: !ruby/object:Gem::Requirement
|
51
66
|
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.1.2
|
52
70
|
- - ">="
|
53
71
|
- !ruby/object:Gem::Version
|
54
72
|
version: 0.1.2
|