dcidev_mailer 0.0.9 → 0.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed94880843b2769154af5f080cd85ecedbe73889f50da7d2f8d93745140264df
4
- data.tar.gz: fe43144786157d05b25b80a1bfe2a6efd7b5c5396846a5c466018fd57e6a4a06
3
+ metadata.gz: 1d5db8d1b62f6e33eb11d13d17387303403cdc9fbf3db7cfa19fd1df952be63b
4
+ data.tar.gz: e4bc5416ecc528cb1296937bacc7a0beb60cefed862b53a9291d490b8be6ac99
5
5
  SHA512:
6
- metadata.gz: d022a4bfd340978d3a1b652a33cb9153b477eb98ad85a449599c87578f32b64cf5079b3ce4aed2ff06e6dd13158b32357e68c5f992424275b6819da61f60b3ab
7
- data.tar.gz: 83d280862d6434e7c46151fcb17eaf90cec0ae77a630092c3ab785f7ec9f8f1f4afba346448db557a678fdbf684dd5a1789b2d500748d4dd275448e8e79d5cf4
6
+ metadata.gz: bed99b742d0ab530425775cae53704fa6f3599a00b894a6fd51d1e45d43b936c56eeadd4c13c513c3bf22e2b32a64ad118d37ae32b12f9f915e97e916b257d5c
7
+ data.tar.gz: 6c69261bc24fabd8b53ed829045e44ff9ced03f9b1ef909ba6a30809a89e386d4477121c6f7a478dc7cde467844969c4e3c0a82977c5d810a98eee7706f334d8
data/README.md CHANGED
@@ -91,8 +91,8 @@ class MandrillMailer
91
91
  header_url: email_template.header.try(: url),
92
92
  footer_url: email_template.footer.try(: url),
93
93
  to: customer.email,
94
- cc: nil,
95
- bcc: nil,
94
+ cc: nil, # can be a string / array
95
+ bcc: nil, # can be a string / array
96
96
  from: ENV['DEFAULT_EMAIL_SENDER'],
97
97
  attachments: attachments,
98
98
  email_template_path: "mail/blast.html.erb"
@@ -129,8 +129,8 @@ class MortgageMailer
129
129
  footer_url: template.footer.try(:url),
130
130
  file_attachments: file_attachments,
131
131
  to: customer.email,
132
- cc: nil,
133
- bcc: nil,
132
+ cc: nil, # can be a string / array
133
+ bcc: nil, # can be a string / array
134
134
  subject: template.subject,
135
135
  from: ENV['DEFAULT_EMAIL_SENDER'],
136
136
  template_path: "mail/blast.html.erb" # specify template file location
@@ -16,10 +16,11 @@ module DcidevMailer
16
16
 
17
17
  locals = { wording: wording, header: nil, footer: nil }
18
18
  locals, images = DcidevMailer.format_header_footer(header_url: header_url, footer_url: footer_url, locals: locals, images: images) if header_url.present? && footer_url.present?
19
-
19
+
20
+ file_attachments = DcidevMailer.format_attachments(file_attachments) if file_attachments.present?
20
21
  if file_attachments.present?
21
22
  file_attachments.each do |a|
22
- am.attachments[a[:name].to_s] = a[:content] unless a[:content].nil?
23
+ attachments[a[:name].to_s] = a[:content] unless a[:content].nil?
23
24
  end
24
25
  end
25
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcidev_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Punto Damar P
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mimemagic
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  requirements: []
73
- rubygems_version: 3.2.3
73
+ rubygems_version: 3.0.6
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: Commonly used email codes