markdown_mail_sender 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8bcc21b195e0395f38e450e9d5090080259aaeef
4
- data.tar.gz: 32cfeac3bd3ccd961548d683eb8fd94804f311f7
3
+ metadata.gz: 1c91ab4b18891410fa767e1d779707d3d51ebb3e
4
+ data.tar.gz: fd9b8a00de71c25ec922a28973af48693d8b3235
5
5
  SHA512:
6
- metadata.gz: fe442f4bac88abeb32a5c985953a11f979bca690db7c316386bdf3eac8dd8c45603bcab443c533307bd0608474156bced948a9043c266f7e9b363ea6a0410091
7
- data.tar.gz: 99f7f05b5607aea13bc263953066cd58c6a1bac7d5ee949acc184036ebb5edba4c3e755a55b01dc14f78ee71483a585ceaaf55bbcd07ec2d3669630c1d282484
6
+ metadata.gz: bae1c7133c6288846d6d60a98ca043a94fd0ae381f0f34c9fd2cf3eaa5cd9d72f1da66ab4f10eb5277bf6a9d1042297fa308663da93a4b28072144d0fb64df10
7
+ data.tar.gz: ad98a82e1e0701e783882298409f3cd5378a472e849939678fc74e4fc36885a06f93bfc3d634fd7880088d0ff16c0cf2a97538189e042d23876b298b1e428483
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -29,7 +29,7 @@ class MarkdownMailSender
29
29
  regex = %r{
30
30
 
31
31
  (?<email>(?:.*<)?\w+(?:\.\w+)?@\S+>?){0}
32
- (?<filepath>\s*[\w\/\.]+\s+){0}
32
+ (?<filepath>\s*[\w\/\.\-]+\s+){0}
33
33
 
34
34
  from:\s(?<from>\g<email>)\s+
35
35
  to:\s(?<to>\g<email>)\s+
@@ -83,7 +83,7 @@ Content-Type: text/html
83
83
  EOF
84
84
 
85
85
  a = [header, txt_part, html_part]
86
-
86
+
87
87
  if x[:attachments].any? then
88
88
 
89
89
  attachments = x[:attachments].map {|x| file_part x}
@@ -93,7 +93,7 @@ EOF
93
93
 
94
94
  mailtext = a.join(marker + "\n") + marker + "--"
95
95
 
96
- from = x[:from][/(?:.*<)?(\w+(?:\.\w+)?@\S+)>/,1]
96
+ from = x[:from][/(?:.*<)?(\w+(?:\.\w+)?@\S+[^>])/,1]
97
97
 
98
98
  user, password = from[/[^@]+/], @accounts[from]
99
99
 
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.1
4
+ version: 0.1.2
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-11 00:00:00.000000000 Z
34
+ date: 2016-07-14 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rdiscount
metadata.gz.sig CHANGED
Binary file