bootstrap-email 0.3.3 → 0.3.4

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: 6b3959a73b4ef6acb7e11029e15cd44f801d7dbdbf0423cee2a28374d369771b
4
- data.tar.gz: 0ed2e42216cf179bb5904dc81c9651ff92a3cb1874ea0b0821ccbcc85298e117
3
+ metadata.gz: c3ae7bb3c555b31ee3611cedd6c5ed5d4d2c79acd46c4882b29d060a1d5d31a2
4
+ data.tar.gz: 1c51d7adf429cc7389b588ce00fa7a30a79279c9deae0fbf1bcfe53b31915384
5
5
  SHA512:
6
- metadata.gz: fd9f7693c6ec24b2734c07748b78496895ca35882b4bd3bccf755fcd1f76709502ad0f833522c8009bc9758711458fa4b7645f36fccef78e4cb5de0017796406
7
- data.tar.gz: c4794af7ae4dff89a25ed516cf01a99c0c89a59388b53cf1cd12ed70b126bb1e8bd89a54b00ed50f6f27ef168d75b068f6c656bb95e53124e87377e03147a1f2
6
+ metadata.gz: 435ea12fecc4b9922c1c9c301dff507efeb789087d83fa85ca43976f28572b0914b317b0e1b627e656a2cf77b77f65fef0ce5118759fab7c948b24a3eb16a567
7
+ data.tar.gz: b509f82549a68c3c378d00e0b39454dc3a0288e0a0b429788541a65f8264e08d6b3edd341948b46306e3d5a5a3e12386d2ce3d6d64a5f3ca7b46ca84ed48aabe
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -1,12 +1,14 @@
1
- ActiveSupport.on_load(:action_mailer) do
2
- # sit in the middle and compile the html
3
- def bootstrap_mail(*args)
4
- bootstrap = BootstrapEmail::Compiler.new(mail(*args) { |format| format.html { render layout: 'layouts/bootstrap-mailer.html.erb' } })
5
- bootstrap.perform_full_compile
6
- end
1
+ ActiveSupport.on_load(:action_mailer, {yield: true}) do |action_mailer|
2
+ action_mailer.class_eval do # To support Rails less than 6
3
+ # sit in the middle and compile the html
4
+ def bootstrap_mail(*args)
5
+ bootstrap = BootstrapEmail::Compiler.new(mail(*args) { |format| format.html { render layout: 'layouts/bootstrap-mailer.html.erb' } })
6
+ bootstrap.perform_full_compile
7
+ end
7
8
 
8
- def make_bootstrap_mail(*args, &block)
9
- bootstrap = BootstrapEmail::Compiler.new(mail(*args, &block))
10
- bootstrap.perform_full_compile
9
+ def make_bootstrap_mail(*args, &block)
10
+ bootstrap = BootstrapEmail::Compiler.new(mail(*args, &block))
11
+ bootstrap.perform_full_compile
12
+ end
11
13
  end
12
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: 0.3.3
4
+ version: 0.3.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: 2021-01-06 00:00:00.000000000 Z
11
+ date: 2021-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer