bootstrap-email 1.8.0 → 1.8.1
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/config_store.rb +8 -8
- data/lib/bootstrap-email/rails/action_mailer.rb +1 -1
- data/lib/bootstrap-email.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe52b04e27f9f7e347eb90042033cad29b2095a737b8e08f444a42f4afabc0d7
|
|
4
|
+
data.tar.gz: 8386cb5e25c04d7106a5a1a3f81d1ed43cb77d4ccce6d2b84d0c2d6f40c0527d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e269f13af8280a7b07bf95a429ef0aff6fcf8bdfb4ea58e91c8cd95db0644da585f34fe75254f61ecc5b35d92e2a295a9a0e90db1a733e9418439fb8d2d1af6e
|
|
7
|
+
data.tar.gz: 6277a8b81b14c259701bd6ed406c76fda715b3af62e98e57ab4dc2fefac0c4756e81fe4d29ee32bdd9de769e9fd56af3c2cccddf617cc3a517aa2a86099e2d8d
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.8.
|
|
1
|
+
1.8.1
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
module BootstrapEmail
|
|
4
4
|
class ConfigStore
|
|
5
5
|
OPTIONS = [
|
|
6
|
-
:sass_email_location,
|
|
7
|
-
:sass_head_location,
|
|
8
|
-
:sass_email_string,
|
|
9
|
-
:sass_head_string,
|
|
10
|
-
:sass_load_paths,
|
|
11
|
-
:sass_cache_location,
|
|
12
|
-
:sass_log_enabled,
|
|
6
|
+
:sass_email_location, # path to main sass file
|
|
7
|
+
:sass_head_location, # path to head sass file
|
|
8
|
+
:sass_email_string, # main sass file passed in as a string
|
|
9
|
+
:sass_head_string, # head sass file passed in as a string
|
|
10
|
+
:sass_load_paths, # array of directories for loading sass imports
|
|
11
|
+
:sass_cache_location, # path to tmp folder for sass cache
|
|
12
|
+
:sass_log_enabled, # turn on or off sass log when caching new sass
|
|
13
13
|
:generate_rails_text_part, # boolean for whether or not to generate the text part in rails, default: true
|
|
14
|
-
:override_mail_method
|
|
14
|
+
:override_mail_method # boolean to override the mail method in rails, default: false
|
|
15
15
|
].freeze
|
|
16
16
|
|
|
17
17
|
attr_accessor(*OPTIONS)
|
|
@@ -11,7 +11,7 @@ ActiveSupport.on_load(:action_mailer, { yield: true }) do |action_mailer|
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def bootstrap_mail(*args, &block)
|
|
14
|
-
message =
|
|
14
|
+
message = respond_to?(:rails_mail) ? rails_mail(*args, &block) : mail(*args, &block)
|
|
15
15
|
BootstrapEmail::Rails::MailBuilder.perform(message)
|
|
16
16
|
end
|
|
17
17
|
alias_method :bootstrap_email, :bootstrap_mail
|
data/lib/bootstrap-email.rb
CHANGED
|
@@ -11,8 +11,10 @@ require 'fileutils'
|
|
|
11
11
|
require 'htmlbeautifier'
|
|
12
12
|
|
|
13
13
|
begin
|
|
14
|
+
require 'logger' # Required for Rails 6.1+ compatibility with Ruby 3.4+
|
|
14
15
|
require 'rails'
|
|
15
|
-
rescue LoadError
|
|
16
|
+
rescue LoadError
|
|
17
|
+
end
|
|
16
18
|
|
|
17
19
|
require 'action_mailer' if defined?(Rails)
|
|
18
20
|
|