bootstrap-email 1.1.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3f5b4d09dc80df4d877dfc08c41130028dd2d2ac7b4ea2ab1bbc5a43dbd8adf
4
- data.tar.gz: 6ea8c81c6262d1fffb2ac9bb46b7106df7d17ecac8a238e13e104d646cfaa7c7
3
+ metadata.gz: 6dc20b60bfa07339073c1e2df4fa47931e5928eecd6ffded3ab5e9e8166ba422
4
+ data.tar.gz: c5ce0594089a51615f168e566810f87d0318ccd2397664bb034fbcd8725dab27
5
5
  SHA512:
6
- metadata.gz: 3621e262c91411d799672af6ce5e0aae3d2425effe4014a5744a8c2410a6c476084debe2b24716df50b2416ac328854927f521318a7b82c2c9e81e918b31845f
7
- data.tar.gz: 480ea67acfa153d86e447930b03880096e6352a9394f3c07af3bdc812b9d3e8a9c620963ae3cc028641545992a24734b15afdcb0e0a141f23b4a4a9182451824
6
+ metadata.gz: 1c4e8fd1f6f9e7a2a37f48c90f5960e8662425dbf5f452008070deac3e32b29b5117f3c3fe6937435aec46297e15fee853397c9d0529a2a5538fc6ac01c29e58
7
+ data.tar.gz: f37713f132b91611890f32617c5bdeeea0ef5e1c94e6ad6dea9c2655e49e2451a14e3bcaf75b5df9b7161a4c49a25d7889fcd8a44af8682a5fd5bd15f9a72031
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.4
@@ -16,7 +16,7 @@
16
16
  padding: $btn-padding-y $btn-padding-x;
17
17
  line-height: $btn-line-height;
18
18
  border: $btn-border-width solid transparent;
19
- display: inline-block;
19
+ display: block;
20
20
  font-weight: $btn-font-weight;
21
21
  white-space: nowrap;
22
22
  }
@@ -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
@@ -5,7 +5,7 @@ module BootstrapEmail
5
5
  CLOSE_BRACKETS = CGI.escape('}}').freeze
6
6
 
7
7
  def self.replace(html)
8
- regex = /((href|src)=(\"|\'))((#{Regexp.quote(OPEN_BRACKETS)}).*?(#{Regexp.quote(CLOSE_BRACKETS)}))(\"|\')/
8
+ regex = /((href|src)=(\"|\').*?)((#{Regexp.quote(OPEN_BRACKETS)}).*?(#{Regexp.quote(CLOSE_BRACKETS)}))(.*?(\"|\'))/
9
9
  if regex.match?(html)
10
10
  html.gsub!(regex) do |match|
11
11
  "#{$1}#{CGI.unescape($4)}#{$7}"
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.1
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Yamartino
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-03 00:00:00.000000000 Z
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.0'
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.0'
54
+ version: '2.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: htmlbeautifier
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.3'
69
- description:
69
+ description:
70
70
  email: stu@stuyam.com
71
71
  executables:
72
72
  - bootstrap-email
@@ -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
@@ -155,7 +156,7 @@ homepage: https://bootstrapemail.com
155
156
  licenses:
156
157
  - MIT
157
158
  metadata: {}
158
- post_install_message:
159
+ post_install_message:
159
160
  rdoc_options: []
160
161
  require_paths:
161
162
  - lib
@@ -170,8 +171,8 @@ 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
- signing_key:
174
+ rubygems_version: 3.0.3.1
175
+ signing_key:
175
176
  specification_version: 4
176
177
  summary: 'Bootstrap 5+ stylesheet, compiler, and inliner for responsive and consistent
177
178
  emails with the Bootstrap syntax you know and love. Support: command line, ruby,