markdown_mail_sender 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -2
- data/lib/markdown_mail_sender.rb +4 -4
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: c820c3061c6e82190ca0f849f4ac0a57d45ef1a3
|
4
|
+
data.tar.gz: 6a5be42ce206e9958b0cd71d53df18f080bf0670
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 839b7e887d2bef753af90e7fd18242d1f56c2cf5e3c85c89092d9223e71c2c45c8f7439e24fd4819f68b8301059312e8c34ca0c6c46c1042b742c294a6c8ff0a
|
7
|
+
data.tar.gz: 47d2a281c2020348db174cd1054534cb01793f6e543df4c9e6bd3ddf6ecd49c5b1694cd53d2e63ffd6fd5e3e8671221bab9338f34555f1b23dbbf125fbbc30ec
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
@�6�.j��x���SV��pJ���,�۟�����/����8o���d`�8p��z�q�ˑ��Ҽ|@GH�Cٞ�B{D��]�`��ʟ��b[�`:�W��
|
1
|
+
�w�#$q8eDh��G��n�U6�@�!~�b��;�����X��
|
data/lib/markdown_mail_sender.rb
CHANGED
@@ -11,7 +11,7 @@ class MarkdownMailSender
|
|
11
11
|
|
12
12
|
def initialize(accounts={}, compose_dir: '~/email/compose',
|
13
13
|
sent_dir: '~/email/sent', smtp_host: nil, from_domain: smtp_host)
|
14
|
-
|
14
|
+
|
15
15
|
@accounts = accounts
|
16
16
|
|
17
17
|
@smtp_host, @mail_from_domain = smtp_host, from_domain
|
@@ -21,14 +21,14 @@ class MarkdownMailSender
|
|
21
21
|
FileUtils.mkdir_p @sent_dir
|
22
22
|
|
23
23
|
# scan the compose directory for email files to deliver
|
24
|
-
|
24
|
+
|
25
25
|
@messages = Dir.glob(File.join(compose_dirpath, '*.md')).map do |msg_filepath|
|
26
26
|
|
27
27
|
s = File.read msg_filepath
|
28
28
|
|
29
29
|
regex = %r{
|
30
30
|
|
31
|
-
(?<email>(?:.*<)
|
31
|
+
(?<email>(?:.*<)?[^@]+@\S+>?){0}
|
32
32
|
(?<filepath>\s*[\w\/\.\-]+\s+){0}
|
33
33
|
|
34
34
|
from:\s(?<from>\g<email>)\s+
|
@@ -37,7 +37,7 @@ class MarkdownMailSender
|
|
37
37
|
subject:\s+(?<subject> [^\n]+)\n
|
38
38
|
(?<body> .*)
|
39
39
|
|
40
|
-
}xm =~ s
|
40
|
+
}xm =~ s
|
41
41
|
|
42
42
|
files = attachments.nil? ? [] : attachments.split.map(&:strip)
|
43
43
|
|
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.3
|
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: 2016-
|
34
|
+
date: 2016-08-01 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdiscount
|
metadata.gz.sig
CHANGED
Binary file
|