markdown_mail_sender 0.1.4 → 0.2.0
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 +2 -3
- data.tar.gz.sig +0 -0
- data/lib/markdown_mail_sender.rb +4 -2
- metadata +27 -7
- 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: 41420e3ccfdfd4060aa00da2a60f892fdeee0297
|
4
|
+
data.tar.gz: d2826181cb3e912f923cc20e3011da93f7cdecf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2a78d171d3cfd0d1b8fa0ed5230b2438e19f08b991f15051e2a86b8586a608d0121b95f31bc6bf2ee2f439af7bf5ecd5a7da3a707a72e2a19e79ba79001b6a7
|
7
|
+
data.tar.gz: fe8c24d4607107bce06d681d6c93d182dafabb8a95212f03b8cbcc148e728ff5bdbf59344cc4a52f888e708a28870136e88bdb7452ae2fa75d83595987207229
|
checksums.yaml.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
��
|
3
|
-
Bf��ܘ�S?K��PD
|
1
|
+
&�Q(�}����|�l:(��A�����oIư�y6��p�J�A�����BvV����)Ҥ�
|
2
|
+
J/��,���B4ث�[�T!��e�����ëa��dRh�Z��K�)����#9Y���g4ۓ���/3��ؓha�;ݢ��@�I_�H�!sJԧT�/�Cdc��Mt;��{�8zw����ˠ�q6.}�r��ڎ=v�W�K��
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/markdown_mail_sender.rb
CHANGED
@@ -2,8 +2,10 @@
|
|
2
2
|
|
3
3
|
# file: markdown_mail_sender.rb
|
4
4
|
|
5
|
+
|
6
|
+
require 'martile'
|
5
7
|
require 'net/smtp'
|
6
|
-
require '
|
8
|
+
require 'kramdown'
|
7
9
|
require 'fileutils'
|
8
10
|
|
9
11
|
|
@@ -46,7 +48,7 @@ class MarkdownMailSender
|
|
46
48
|
{
|
47
49
|
filepath: msg_filepath, from: r[:from], to: r[:to],
|
48
50
|
attachments: files, subject: r[:subject], body_txt: r[:body],
|
49
|
-
body_html:
|
51
|
+
body_html: Kramdown::Document.new(Martile.new(r[:body]).to_html).to_html
|
50
52
|
}
|
51
53
|
|
52
54
|
end
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,28 +31,48 @@ cert_chain:
|
|
31
31
|
/lI2nqMMq5f39gxDkuM9dlpQCTSlNYaMUH/Ygfnaqi9j9ntJiW9/yjiYUGV7wzeS
|
32
32
|
h4yZiygx7MCysQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-
|
34
|
+
date: 2017-05-28 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
37
|
+
name: martile
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '0.6'
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 0.6.37
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
50
|
- - "~>"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '0.6'
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 0.6.37
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: kramdown
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.13'
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.13.2
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '1.13'
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.13.2
|
56
76
|
description:
|
57
77
|
email: james@jamesrobertson.eu
|
58
78
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|