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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c820c3061c6e82190ca0f849f4ac0a57d45ef1a3
4
- data.tar.gz: 6a5be42ce206e9958b0cd71d53df18f080bf0670
3
+ metadata.gz: f1f1335a41e8671f64202027b9c7f33e5df145ba
4
+ data.tar.gz: 5355bc3a0d223b5e7e2f7796b454180f23bae9e1
5
5
  SHA512:
6
- metadata.gz: 839b7e887d2bef753af90e7fd18242d1f56c2cf5e3c85c89092d9223e71c2c45c8f7439e24fd4819f68b8301059312e8c34ca0c6c46c1042b742c294a6c8ff0a
7
- data.tar.gz: 47d2a281c2020348db174cd1054534cb01793f6e543df4c9e6bd3ddf6ecd49c5b1694cd53d2e63ffd6fd5e3e8671221bab9338f34555f1b23dbbf125fbbc30ec
6
+ metadata.gz: a6181cc2e9a639daa3604d7e97c7d2e58b22f3d277411d5a3886516d0e05c25cca1331bfd7f832a4539220bca66a54ebe6b09fd2c5c062315ce0d3d0dbfe5ced
7
+ data.tar.gz: d0033819e49e831ae3515a1aec2b115ca0f9646dffd771a323cb52da02601095407bbf6ea88b2900a3924420d2d274ee49a5fbc3a4c5f89d829c07995e97ab8d
checksums.yaml.gz.sig CHANGED
@@ -1 +1,3 @@
1
- �w�#$q8eDh��G��n�U6�@�!~�b��;�����X��
1
+ S`���p�!{����8�H>��k/D�~ۓ��d_��W[� ����c�
2
+ ��M�f�[>�3�$���C�ejw�àD�GI��m-W�Ks��c�`� m�ҥ���Sjk��!
3
+ Bf��ܘ�S?K��PD
@@ -37,15 +37,17 @@ class MarkdownMailSender
37
37
  subject:\s+(?<subject> [^\n]+)\n
38
38
  (?<body> .*)
39
39
 
40
- }xm =~ s
41
-
42
- files = attachments.nil? ? [] : attachments.split.map(&:strip)
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, attachments: files,
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.3
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: 2016-08-01 00:00:00.000000000 Z
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@r0bertson.co.uk
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.5.1
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