isomorfeus-mailer 1.0.0.zeta15 → 1.0.0.zeta16

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: 5b26d6d0928ff4e536975dd5622127805e3e0cd1a428165bf188f21002447a6f
4
- data.tar.gz: ac146fa28b1ded3a142197b1a113b4a1772c8d914160d2e940d68506ba13d8ce
3
+ metadata.gz: 19dcfecd348c58dbd62d7098f5544fa611306a4b0bcac6921e62946eef02e8c1
4
+ data.tar.gz: 38d4b14a087396345a6b2c2218af9121051b0532f20d6c2b0a8f7355fef41492
5
5
  SHA512:
6
- metadata.gz: bf3a5c0ec0cc3b62c0bb454c120aed8537a9209459fa912688efb1b6c564fdd4e155ab7357afa4512bb1340c347168638b690e6b119c86f0cfb31b94aaecef7f
7
- data.tar.gz: 8b2daf307f5e03662d51be48e248c7ed0af094a11e6977b793823d2fc6ab6c8384d0a053f14ddf94879e76665c2dd03c499f0cab1ef08d66bb7aecb164eb6933
6
+ metadata.gz: c70ff8167095e85c708de4cdc2fd400d5142baa6ea493ef2ad8ced81b10e1521dfe7d435afc9241a2393e4fc9b8756e3d6fa8d0e6d49b090e6d9d1510eb37f1a
7
+ data.tar.gz: 4038510b62a679cbeefd0332503cd1239cac79f4284ed1ef9a6a5566c250fcac4171058afeae8fd616009d997479739127adae30f540bf4c719d86103e052293
data/README.md CHANGED
@@ -18,6 +18,7 @@ All configuration options of Mailhandler can be passed in the hash. For Mailhand
18
18
 
19
19
  Within a isomorfeus project components for building emails are the app/mail_components directory.
20
20
  When using LucidComponent or LucidMaterial::Component the main component passed to the mail must be either a LucidApp or LucidMaterial::App component.
21
+ Each mail template build of components can be considered a tiny App.
21
22
 
22
23
  One class is provided to actually build and send the mail: LucidMail. This class is only available on the server.
23
24
 
@@ -1,10 +1,7 @@
1
1
  module Isomorfeus
2
2
  # available settings
3
3
  class << self
4
- if RUBY_ENGINE == 'opal'
5
- # nothing
6
- else
7
-
4
+ if RUBY_ENGINE != 'opal'
8
5
  def email_sender_config
9
6
  @email_sender_config ||= { type: :smtp }
10
7
  end
@@ -16,8 +13,8 @@ module Isomorfeus
16
13
 
17
14
  def email_sender
18
15
  @email_sender ||= MailHandler.sender(Isomorfeus.email_sender_config[:type]) do |dispatcher|
19
- Isomorfeus.email_sender_config.each do |key,value|
20
- dispatcher.send("#{key}=".to_sym, value)
16
+ Isomorfeus.email_sender_config.each do |key, value|
17
+ dispatcher.__send__("#{key}=".to_sym, value) unless key == :type
21
18
  end
22
19
  end
23
20
  end
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Mailer
3
- VERSION = '1.0.0.zeta15'
3
+ VERSION = '1.0.0.zeta16'
4
4
  end
5
5
  end
@@ -21,7 +21,6 @@ class LucidMail
21
21
  end
22
22
 
23
23
  def render_component
24
- STDERR.puts "props: #{props.to_h}"
25
24
  rendered_tree = mount_static_component(props.component, props.props, 'mail_components.js')
26
25
  @rendered_component = <<~HTML
27
26
  <!DOCTYPE html>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.zeta15
4
+ version: 1.0.0.zeta16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 1.0.0.zeta15
131
+ version: 1.0.0.zeta16
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 1.0.0.zeta15
138
+ version: 1.0.0.zeta16
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: opal-webpack-loader
141
141
  requirement: !ruby/object:Gem::Requirement