bootstrap-email 1.1.3 → 1.1.4
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/VERSION +1 -1
- data/lib/bootstrap-email/compiler.rb +1 -0
- data/lib/bootstrap-email/converters/ensure_doctype.rb +14 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dc20b60bfa07339073c1e2df4fa47931e5928eecd6ffded3ab5e9e8166ba422
|
4
|
+
data.tar.gz: c5ce0594089a51615f168e566810f87d0318ccd2397664bb034fbcd8725dab27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c4e8fd1f6f9e7a2a37f48c90f5960e8662425dbf5f452008070deac3e32b29b5117f3c3fe6937435aec46297e15fee853397c9d0529a2a5538fc6ac01c29e58
|
7
|
+
data.tar.gz: f37713f132b91611890f32617c5bdeeea0ef5e1c94e6ad6dea9c2655e49e2451a14e3bcaf75b5df9b7161a4c49a25d7889fcd8a44af8682a5fd5bd15f9a72031
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.4
|
@@ -92,6 +92,7 @@ module BootstrapEmail
|
|
92
92
|
def finalize_document!
|
93
93
|
html = doc.to_html(encoding: 'US-ASCII')
|
94
94
|
BootstrapEmail::Converter::SupportUrlTokens.replace(html)
|
95
|
+
BootstrapEmail::Converter::EnsureDoctype.replace(html)
|
95
96
|
BootstrapEmail::Converter::ForceEncoding.replace(html)
|
96
97
|
BootstrapEmail::Converter::BeautifyHTML.replace(html)
|
97
98
|
case type
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module BootstrapEmail
|
2
|
+
module Converter
|
3
|
+
class EnsureDoctype < Base
|
4
|
+
def self.replace(html)
|
5
|
+
# ensure the proper XHTML doctype which ensures best compatibility in email clients
|
6
|
+
# https://github.com/bootstrap-email/bootstrap-email/discussions/168
|
7
|
+
html.gsub!(
|
8
|
+
/<!DOCTYPE.*(\[[\s\S]*?\])?>/,
|
9
|
+
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'
|
10
|
+
)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stuart Yamartino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: htmlbeautifier
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/bootstrap-email/converters/card.rb
|
132
132
|
- lib/bootstrap-email/converters/color.rb
|
133
133
|
- lib/bootstrap-email/converters/container.rb
|
134
|
+
- lib/bootstrap-email/converters/ensure_doctype.rb
|
134
135
|
- lib/bootstrap-email/converters/force_encoding.rb
|
135
136
|
- lib/bootstrap-email/converters/grid.rb
|
136
137
|
- lib/bootstrap-email/converters/head_style.rb
|
@@ -170,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
171
|
- !ruby/object:Gem::Version
|
171
172
|
version: '0'
|
172
173
|
requirements: []
|
173
|
-
rubygems_version: 3.0.3
|
174
|
+
rubygems_version: 3.0.3.1
|
174
175
|
signing_key:
|
175
176
|
specification_version: 4
|
176
177
|
summary: 'Bootstrap 5+ stylesheet, compiler, and inliner for responsive and consistent
|