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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c91ab4b18891410fa767e1d779707d3d51ebb3e
4
- data.tar.gz: fd9b8a00de71c25ec922a28973af48693d8b3235
3
+ metadata.gz: c820c3061c6e82190ca0f849f4ac0a57d45ef1a3
4
+ data.tar.gz: 6a5be42ce206e9958b0cd71d53df18f080bf0670
5
5
  SHA512:
6
- metadata.gz: bae1c7133c6288846d6d60a98ca043a94fd0ae381f0f34c9fd2cf3eaa5cd9d72f1da66ab4f10eb5277bf6a9d1042297fa308663da93a4b28072144d0fb64df10
7
- data.tar.gz: ad98a82e1e0701e783882298409f3cd5378a472e849939678fc74e4fc36885a06f93bfc3d634fd7880088d0ff16c0cf2a97538189e042d23876b298b1e428483
6
+ metadata.gz: 839b7e887d2bef753af90e7fd18242d1f56c2cf5e3c85c89092d9223e71c2c45c8f7439e24fd4819f68b8301059312e8c34ca0c6c46c1042b742c294a6c8ff0a
7
+ data.tar.gz: 47d2a281c2020348db174cd1054534cb01793f6e543df4c9e6bd3ddf6ecd49c5b1694cd53d2e63ffd6fd5e3e8671221bab9338f34555f1b23dbbf125fbbc30ec
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1 @@
1
- ���!_tXAM;1��Δ�*LJ����J�u ���?ǟHܽ���%��DС� \4��D�����bxT��:��3o\�r6������>L���j�,8��p�C��&�E3[rt�T/ŕ��]^�}�Ԟ�i��nK
2
- @�6�.j��x���SV��pJ���,�۟�����/����8o���d`�8p��z�q�ˑ��Ҽ|@GH�Cٞ�B{D��]�`��ʟ��b[� `:�W��
1
+ w�#$q8eDh��G��nU6�@�!~�b��;�����X��
@@ -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>(?:.*<)?\w+(?:\.\w+)?@\S+>?){0}
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.2
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-07-14 00:00:00.000000000 Z
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