dcidev_mailer 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dcidev_mailer/mail.rb +6 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd7fa21ca61b2ed6a524f4c82023b37d51ca3282bd8a25995031d69000b4135a
4
- data.tar.gz: 3609eec64b5a8dbe5f54b688127e87b6f1262c7f2a33d8f9a488d8f696af226b
3
+ metadata.gz: 63527600458fafe442b04ad42cc9afe6ce814587d6c7d3ca1df0a9c8ee2cfbf3
4
+ data.tar.gz: 134af01794ea7b23d6075959f87b09e6952362059ddec4f3f5b64dabdd690771
5
5
  SHA512:
6
- metadata.gz: f13f0791eed210a1c308e507ccc7f399b8d7d91238e96f93f760a455e4f212a69009f79cf4512fe9d936ecfe3d96390115e1f187f37362028dc553cae231dd99
7
- data.tar.gz: 543a1243fdd008d1624b97b8ad515fefe636dc1e4639044534a7fccc10f1dc4e7b34d56b5148aba0c210fd2c700b79ee3db676f2815239bbe291547a09d77fcb
6
+ metadata.gz: 2359b8a5f941a4b2ee802386b2b27c8e1167a7543d7fadfd3615826368601c8e6e36a0f39264c180ff01e548f04b0582fd3852843ba3e134d5f641203f142a81
7
+ data.tar.gz: b29ffd3b8554b5cd8767edff42e5cea95fc11c14f0e684f30957f8743c05019957954a01f3b9a994c35561a5782bbb8f06907c41bacd7bd7354228bad1bec791
@@ -16,12 +16,16 @@ module DcidevMailer
16
16
  locals = { wording: wording, header: nil, footer: nil }
17
17
  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?
18
18
 
19
+ att = ActionMailer::Base.new
19
20
  if file_attachments.present?
20
21
  file_attachments.each do |a|
21
- ActionMailer::Base.attachments[a[:name].to_s] = a[:content] unless a[:content].nil?
22
+ att.attachments[a[:name].to_s] = a[:content] unless a[:content].nil?
22
23
  end
23
24
  end
24
- # ActionMailer::Base.new.attachments.inline
25
+
26
+ # self.attachments.inline['header'] = File.read(Utility.download_to_file(header_url)) rescue nil if header_url.present?
27
+ # self.attachments.inline['footer'] = File.read(Utility.download_to_file(footer_url)) rescue nil if footer_url.present?
28
+
25
29
  att.attachments.inline['header'] = File.read(Utility.download_to_file(header_url)) rescue nil if header_url.present?
26
30
  att.attachments.inline['footer'] = File.read(Utility.download_to_file(footer_url)) rescue nil if footer_url.present?
27
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcidev_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Punto Damar P