html2mail 0.2.3 → 0.2.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
  SHA1:
3
- metadata.gz: b7c04c6648b91c849bea8bda385e88a45600556c
4
- data.tar.gz: b04d6c440551d39df6a1ec78369fbcad12cf4fe4
3
+ metadata.gz: 529d178cedff8be9342a1d786ce71cb1b9c2e898
4
+ data.tar.gz: 9d132a4a9a7c8b4cdb59f4e839fc09cc56c34946
5
5
  SHA512:
6
- metadata.gz: d68f0e28707f0cd4278ee03bc3b2d2a94ad810104ed03f9dc6e0ae4d5d6b524def6d17c5ed062b93eff83dd7fc72bd2d6d449c49e323f814a153507ea17b3745
7
- data.tar.gz: a92ee03a0a4722df6b8dfc29b09edcf20b4730b53a2202e23cefbc5ea8a96917cbde2e1b9d50a2a84478602eaaa0e2b48a89b5778588e69cc9effef472a85054
6
+ metadata.gz: ed187aeeec55032aa808cdc7976b7a05901024dbef468602e9bd2f5223e6fceaa332974e675b523330a0cf5203374892244d674dc6ba262cc47f5ff74295b6a1
7
+ data.tar.gz: de0cad42a6078628860f9692517fdd1d0e76b313b1c52223d19b32835b1a5ff4176c99d4e5c14b9d7b9cb5505740f451742e8ff9abf02899223d8682496adb64
@@ -11,7 +11,7 @@ class Mailer2 < ActionMailer::Base
11
11
  path = img['src']
12
12
  filesystem_path = File.expand_path(path, File.dirname(html_file))
13
13
  if File.readable?(filesystem_path)
14
- STDERR.puts "Process img: #{path}"
14
+ # STDERR.puts "Process img: #{path}"
15
15
  attachments.inline[File.basename(path)] = File.read(filesystem_path)
16
16
  img['src'] = attachments.inline[File.basename(path)].url
17
17
  end
@@ -21,7 +21,7 @@ class Mailer2 < ActionMailer::Base
21
21
  subject ||= head_title.text if head_title.present?
22
22
  subject ||= File.basename(html_file, File.extname(html_file))
23
23
 
24
- html = doc.to_s.html_safe
24
+ html = doc.to_s.gsub('[%%FEmail%%]', email).html_safe
25
25
 
26
26
  # from ||= email
27
27
 
@@ -1,3 +1,3 @@
1
1
  module Html2mail
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html2mail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Egor Vakhromtsev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer