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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bc505a34d41b960841280ccc80dbc949700ae49
4
- data.tar.gz: 822c55680eb18a8c705ed7ea2f8cdb56b35e805a
3
+ metadata.gz: f33ceae9a5c2decf74dff605831b41bf21eb3bd1
4
+ data.tar.gz: b05c64c9cb9d97d43fae1b54002dbdde49bfdf0b
5
5
  SHA512:
6
- metadata.gz: 3497b907fc59d87e8759bf0ebe19fbb4c201fe9832658867ce67d9678dd42b2986c8450a21dd3c995c381556f59e4bcbc51af5633b418a98fd95c0eff68b1931
7
- data.tar.gz: 534644ba159c00948a527dc5fe2bd8e91f0cdfb7294f350aaca3288471c6764aed2b9e6d0471a29f7d80a936ebc5935165db0725527d89aa0fb932e89974ae25
6
+ metadata.gz: 12913ec735c3f445ea019dc9a6286701c7013c68b525ed310526bf3a7cf4b82d78148d0da089c29305ce0bf0f0a6ca76966ab63958c090bd9c35603330dd311a
7
+ data.tar.gz: 7f4db9c500c22d8f61a98a68138be4e61abc0bfc13934200c8d67d63404217848f559c41057502b953c50178613487d28afa78000edde2ceb0427f425979fe3d
@@ -1,3 +1,9 @@
1
+ === 1.1.0 / 09.01.2018
2
+
3
+ * Send correct e-mail body
4
+ * Correct name of attached pdf file
5
+ * Return correct number of recipients
6
+
1
7
  === 1.0.9 / 09.01.2018
2
8
 
3
9
  * Send copy of email invoice to config.mail_recipients
@@ -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.attachments['myfile.pdf'] = { :mime_type => 'application/x-pdf',
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
@@ -1,3 +1,3 @@
1
1
  module YDIM
2
- VERSION = '1.0.9'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ydim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz, Niklaus Giger