bootstrap-email 1.1.0 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4197c0097c9360b43b8a1ede02394b097e5e2f40451d7e3adc47d3147a91f6e8
4
- data.tar.gz: a79f895885f53be20db9647c21adf5265d7fa7ec95726a07ac3f44645f532f87
3
+ metadata.gz: 5201c38394c11169354403e9efae089280c0c5e4a699abbed3f3771e8bb018a2
4
+ data.tar.gz: 15989059cc6bd25fb9bfe9bdef97c873bb865dcc9d9d254be854da610edc63f4
5
5
  SHA512:
6
- metadata.gz: 45e2bee1dd5e717b2c5487b215b2281309ce8e4e97d218382927e7450ae99e5512874e42cb6558bc37ec85378d201ad509139e4d200421225c2921ab466635e5
7
- data.tar.gz: 67eaf18b7351c22cb4970a31c0f6e548f493eacba3e0fd6d3e18f8268ff949a8f70c81cc40f44dc1cc1053b7197b6dfdcdf457e66fe975b1a889f8aab7886a55
6
+ metadata.gz: 4f5100a513793120048088a7c0134d48562fc0492cf05a7ac5c7a84d4b6cf8defda8c69944aac37f9a092ea35b60336ff5c2270565b9a10f4b1ff4bc6d7ca220
7
+ data.tar.gz: 0db10a26791365ca031f094cbb4ce1eeda3783fb01bcb11ca923461bdd6fc666ae189d6aeae1a24c748ca60c1ae1b6281da95ee6e8feea464bde07605860043b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.3
@@ -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
  }
@@ -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}"
@@ -8,6 +8,7 @@ ActiveSupport.on_load(:action_mailer, {yield: true}) do |action_mailer|
8
8
  bootstrap = BootstrapEmail::Compiler.new(mail_message, type: :rails)
9
9
  bootstrap.perform_full_compile
10
10
  end
11
+ mail_message
11
12
  end
12
13
  alias bootstrap_email bootstrap_mail
13
14
  alias make_bootstrap_mail bootstrap_mail
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.0
4
+ version: 1.1.3
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-10-22 00:00:00.000000000 Z
11
+ date: 2022-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -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
@@ -155,7 +155,7 @@ homepage: https://bootstrapemail.com
155
155
  licenses:
156
156
  - MIT
157
157
  metadata: {}
158
- post_install_message:
158
+ post_install_message:
159
159
  rdoc_options: []
160
160
  require_paths:
161
161
  - lib
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  version: '0'
172
172
  requirements: []
173
173
  rubygems_version: 3.0.3
174
- signing_key:
174
+ signing_key:
175
175
  specification_version: 4
176
176
  summary: 'Bootstrap 5+ stylesheet, compiler, and inliner for responsive and consistent
177
177
  emails with the Bootstrap syntax you know and love. Support: command line, ruby,