bridgetown-minify-html 0.1.0 → 0.2.0
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/.github/workflows/changelog.yml +2 -0
- data/.github/workflows/gempush.yml +1 -1
- data/CHANGELOG.md +18 -1
- data/README.md +2 -0
- data/bridgetown-minify-html.gemspec +1 -1
- data/lib/bridgetown-minify-html/minifier.rb +3 -3
- data/lib/bridgetown-minify-html/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e38c03a2b0f0a8220e328aef8e0baa16259cd612ceb429abd91169837997686
|
|
4
|
+
data.tar.gz: ef52a1322bd8bb2bdcebe71514b1f00fcb1bd54c4fafd8face8901559c08de3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 900c116fceb6f43cdafb677003752d839ddcec1088b6fd59a7195be4ddd0056f9d46d5619c0acd053e2f0404f2892fb3020750a6e21b602b0f53e1c8040fd49f
|
|
7
|
+
data.tar.gz: 213ec9af0da70fc26430d9b68fc3e29b6ba107bbb0edf7d2848afda70f512e571f19e092cce95d685dc7a5ab4c5dd90bbcdf83b643d2109bc065c7c2b1c187d6
|
data/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased](https://github.com/MikeRogers0/bridgetown-minify-html/tree/HEAD)
|
|
4
4
|
|
|
5
|
-
[Full Changelog](https://github.com/MikeRogers0/bridgetown-minify-html/compare/
|
|
5
|
+
[Full Changelog](https://github.com/MikeRogers0/bridgetown-minify-html/compare/v0.1.0...HEAD)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- bug: undefined local variable or method extension [\#8](https://github.com/MikeRogers0/bridgetown-minify-html/pull/8) ([MikeRogers0](https://github.com/MikeRogers0))
|
|
10
|
+
- bug: Bridgetown::StaticFile don't have output\_ext - so ignoring them [\#7](https://github.com/MikeRogers0/bridgetown-minify-html/pull/7) ([MikeRogers0](https://github.com/MikeRogers0))
|
|
11
|
+
- fix: Making sure changelog is regenerated on release [\#4](https://github.com/MikeRogers0/bridgetown-minify-html/pull/4) ([MikeRogers0](https://github.com/MikeRogers0))
|
|
12
|
+
|
|
13
|
+
**Merged pull requests:**
|
|
14
|
+
|
|
15
|
+
- feat: Rewording test titles [\#6](https://github.com/MikeRogers0/bridgetown-minify-html/pull/6) ([MikeRogers0](https://github.com/MikeRogers0))
|
|
16
|
+
- chores: Adding rubygems badge in [\#5](https://github.com/MikeRogers0/bridgetown-minify-html/pull/5) ([MikeRogers0](https://github.com/MikeRogers0))
|
|
17
|
+
- Update rake requirement from ~\> 12.0 to ~\> 13.0 [\#2](https://github.com/MikeRogers0/bridgetown-minify-html/pull/2) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
18
|
+
- Bump actions/setup-ruby from v1 to v1.1.1 [\#1](https://github.com/MikeRogers0/bridgetown-minify-html/pull/1) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
19
|
+
|
|
20
|
+
## [v0.1.0](https://github.com/MikeRogers0/bridgetown-minify-html/tree/v0.1.0) (2020-07-20)
|
|
21
|
+
|
|
22
|
+
[Full Changelog](https://github.com/MikeRogers0/bridgetown-minify-html/compare/5ce9f22631f178ecf164501e7d28d6dee902ce9c...v0.1.0)
|
|
6
23
|
|
|
7
24
|
**Implemented enhancements:**
|
|
8
25
|
|
data/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
|
|
23
23
|
spec.add_development_dependency "bundler"
|
|
24
24
|
spec.add_development_dependency "nokogiri", "~> 1.6"
|
|
25
|
-
spec.add_development_dependency "rake", "~>
|
|
25
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
|
26
26
|
spec.add_development_dependency "rspec", "~> 3.0"
|
|
27
27
|
spec.add_development_dependency "rubocop-bridgetown", "~> 0.2"
|
|
28
28
|
end
|
|
@@ -41,14 +41,14 @@ module BridgetownMinifyHtml
|
|
|
41
41
|
private
|
|
42
42
|
|
|
43
43
|
def minify_page(page)
|
|
44
|
-
return unless compressible?(page
|
|
44
|
+
return unless compressible?(page)
|
|
45
45
|
|
|
46
46
|
page.output = compressor.compress(page.output)
|
|
47
47
|
@minified_count += 1
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
def compressible?(
|
|
51
|
-
[".html", ".svg", ".xml"].include?(
|
|
50
|
+
def compressible?(page)
|
|
51
|
+
page.respond_to?(:output_ext) && [".html", ".svg", ".xml"].include?(page.output_ext)
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
def compressor
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bridgetown-minify-html
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Rogers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-07-
|
|
11
|
+
date: 2020-07-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bridgetown
|
|
@@ -84,14 +84,14 @@ dependencies:
|
|
|
84
84
|
requirements:
|
|
85
85
|
- - "~>"
|
|
86
86
|
- !ruby/object:Gem::Version
|
|
87
|
-
version: '
|
|
87
|
+
version: '13.0'
|
|
88
88
|
type: :development
|
|
89
89
|
prerelease: false
|
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
|
91
91
|
requirements:
|
|
92
92
|
- - "~>"
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
|
-
version: '
|
|
94
|
+
version: '13.0'
|
|
95
95
|
- !ruby/object:Gem::Dependency
|
|
96
96
|
name: rspec
|
|
97
97
|
requirement: !ruby/object:Gem::Requirement
|