bootstrap-email 1.0.0.alpha2 → 1.0.0.alpha2.1

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: 759e1882e8d2e275343ff2d3b6c92a358f350f35319c14208c26b7641ef989de
4
- data.tar.gz: 6fb098dd28e51f2c962aa0c774b4948e1ad0499282d66927755a18539c1aa00e
3
+ metadata.gz: 754525440d7ea29f8ca2fbd07a4c54af48abf49bb3a08e6be127c4b287cbb94b
4
+ data.tar.gz: e6164558bc455056434601be51978b0cae979bb4581238a4325c53da493cbb4b
5
5
  SHA512:
6
- metadata.gz: d5f19d06827848b6a1cdc3f47ed99e66f46d0465748ac7c46d49654f7815e274c3462028442518b0cf6bd6cfb58e21becbc85204eab5abd45445e1dfe962594b
7
- data.tar.gz: 4b9716bca2ccc400c22b30e12a6c9b7a03be72d9e595c854d99e92ffdf8d78d4b3dd8061fe914a9e60e3d3868df0e23d7383196a10f75d24514b73ed6ccaef95
6
+ metadata.gz: 436b384bb50dc14c83b4d2903af0c5caeeecc3ef99e618383fb7aa05bac1ca43e0bde09619c229806ae7926adc762296ae7c70f3dfa7c7c10a79c2702a2d40e4
7
+ data.tar.gz: bb4e1834510e3a833a518a559d460972637012f6e3b1771fc46238af972b8df0fcd2a1ebfbd2c5d76eedb8eaa532600e4fc9746856de670ddab4645977da8d95
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.alpha2
1
+ 1.0.0.alpha2.1
@@ -2,8 +2,12 @@ ActiveSupport.on_load(:action_mailer, {yield: true}) do |action_mailer|
2
2
  action_mailer.class_eval do # To support Rails less than 6
3
3
  # sit in the middle and compile the html
4
4
  def bootstrap_mail(*args, &block)
5
- bootstrap = BootstrapEmail::Compiler.new(mail(*args, &block), type: :rails)
6
- bootstrap.perform_full_compile
5
+ mail_message = mail(*args, &block)
6
+ # if you override the #mail method in you ApplicationMailer you may intentionally return something other than a mail message
7
+ if mail_message
8
+ bootstrap = BootstrapEmail::Compiler.new(mail_message, type: :rails)
9
+ bootstrap.perform_full_compile
10
+ end
7
11
  end
8
12
  alias bootstrap_email bootstrap_mail
9
13
  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.0.0.alpha2
4
+ version: 1.0.0.alpha2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Yamartino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-13 00:00:00.000000000 Z
11
+ date: 2021-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri