markdown_mail_sender 0.1.3 → 0.1.4
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 +4 -4
- checksums.yaml.gz.sig +3 -1
- data/lib/markdown_mail_sender.rb +9 -7
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1f1335a41e8671f64202027b9c7f33e5df145ba
|
|
4
|
+
data.tar.gz: 5355bc3a0d223b5e7e2f7796b454180f23bae9e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6181cc2e9a639daa3604d7e97c7d2e58b22f3d277411d5a3886516d0e05c25cca1331bfd7f832a4539220bca66a54ebe6b09fd2c5c062315ce0d3d0dbfe5ced
|
|
7
|
+
data.tar.gz: d0033819e49e831ae3515a1aec2b115ca0f9646dffd771a323cb52da02601095407bbf6ea88b2900a3924420d2d274ee49a5fbc3a4c5f89d829c07995e97ab8d
|
checksums.yaml.gz.sig
CHANGED
data/lib/markdown_mail_sender.rb
CHANGED
|
@@ -37,15 +37,17 @@ class MarkdownMailSender
|
|
|
37
37
|
subject:\s+(?<subject> [^\n]+)\n
|
|
38
38
|
(?<body> .*)
|
|
39
39
|
|
|
40
|
-
}xm
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
}xm
|
|
41
|
+
|
|
42
|
+
r = regex.match(s)
|
|
43
|
+
|
|
44
|
+
files = r[:attachments].nil? ? [] : r[:attachments].split.map(&:strip)
|
|
43
45
|
|
|
44
46
|
{
|
|
45
|
-
filepath: msg_filepath, from: from, to: to,
|
|
46
|
-
subject: subject, body_txt: body,
|
|
47
|
-
body_html: RDiscount.new(body).to_html
|
|
48
|
-
}
|
|
47
|
+
filepath: msg_filepath, from: r[:from], to: r[:to],
|
|
48
|
+
attachments: files, subject: r[:subject], body_txt: r[:body],
|
|
49
|
+
body_html: RDiscount.new(r[:body]).to_html
|
|
50
|
+
}
|
|
49
51
|
|
|
50
52
|
end
|
|
51
53
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: markdown_mail_sender
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
/lI2nqMMq5f39gxDkuM9dlpQCTSlNYaMUH/Ygfnaqi9j9ntJiW9/yjiYUGV7wzeS
|
|
32
32
|
h4yZiygx7MCysQ==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date:
|
|
34
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: rdiscount
|
|
@@ -54,7 +54,7 @@ dependencies:
|
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: 2.2.0.1
|
|
56
56
|
description:
|
|
57
|
-
email: james@
|
|
57
|
+
email: james@jamesrobertson.eu
|
|
58
58
|
executables: []
|
|
59
59
|
extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
80
80
|
version: '0'
|
|
81
81
|
requirements: []
|
|
82
82
|
rubyforge_project:
|
|
83
|
-
rubygems_version: 2.
|
|
83
|
+
rubygems_version: 2.6.8
|
|
84
84
|
signing_key:
|
|
85
85
|
specification_version: 4
|
|
86
86
|
summary: Sends an email from a file directory containing a Markdown file representing
|
metadata.gz.sig
CHANGED
|
Binary file
|