ydim 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +6 -0
- data/lib/ydim/mail.rb +2 -2
- data/lib/ydim/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f33ceae9a5c2decf74dff605831b41bf21eb3bd1
|
4
|
+
data.tar.gz: b05c64c9cb9d97d43fae1b54002dbdde49bfdf0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12913ec735c3f445ea019dc9a6286701c7013c68b525ed310526bf3a7cf4b82d78148d0da089c29305ce0bf0f0a6ca76966ab63958c090bd9c35603330dd311a
|
7
|
+
data.tar.gz: 7f4db9c500c22d8f61a98a68138be4e61abc0bfc13934200c8d67d63404217848f559c41057502b953c50178613487d28afa78000edde2ceb0427f425979fe3d
|
data/History.txt
CHANGED
data/lib/ydim/mail.rb
CHANGED
@@ -31,9 +31,9 @@ module YDIM
|
|
31
31
|
@mail.from = config.mail_from
|
32
32
|
@mail.subject = invoice_subject
|
33
33
|
@mail.body = body(config, debitor, invoice)
|
34
|
-
@mail.
|
35
|
-
:content => invoice.to_pdf(sort_args) }
|
34
|
+
@mail.add_file(:filename => sprintf("%s.pdf", invoice_subject.tr(' /', '_-')), :content => invoice.to_pdf(sort_args))
|
36
35
|
@mail.deliver
|
36
|
+
(@mail.to + @mail.cc + @mail.bcc).flatten
|
37
37
|
rescue Timeout::Error
|
38
38
|
retries ||= 3
|
39
39
|
if retries > 0
|
data/lib/ydim/version.rb
CHANGED