postmark 1.4.2 → 1.4.3
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 +4 -4
- data/CHANGELOG.rdoc +4 -0
- data/VERSION +1 -1
- data/lib/postmark/message_extensions/mail.rb +10 -2
- data/lib/postmark/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b6cd5a5bf46c2c22b7ef83182778ca9d77ae269
|
4
|
+
data.tar.gz: 04066522d985faed76d5aa028c1aa4985304876f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f667a7423a02dd37de2c4efb28e1384dc0f07ee8b01a54fe9ae2d718e7ce4140eb3381c0073831b0d4799fbe2cddcb05e4ce5b6f4cc6284aa786e9beb269caa
|
7
|
+
data.tar.gz: 941a75f25a9c13b6ed9736b54cace4d445a29723c564c4ad14584c4f2a363dcf3a48f61fb461b0f2b1ab36f9189239fb3aa52a66db765df4f6bd175c4e5ecca4
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
= Changelog
|
2
2
|
|
3
|
+
== 1.4.3
|
4
|
+
|
5
|
+
* Fix a regression when using the gem with older mail gem versions not implementing Mail::Message#text?.
|
6
|
+
|
3
7
|
== 1.4.2
|
4
8
|
|
5
9
|
* Fix a regression when using the gem with older mail gem versions introduced in 1.4.1. Affected mail gem versions are 2.5.3 and below.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.3
|
@@ -39,14 +39,22 @@ module Mail
|
|
39
39
|
::Postmark::MessageHelper.attachments_to_postmark(@_attachments)
|
40
40
|
end
|
41
41
|
|
42
|
+
def text?
|
43
|
+
if defined?(super)
|
44
|
+
super
|
45
|
+
else
|
46
|
+
has_content_type? ? !!(main_type =~ /^text$/i) : false
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
42
50
|
def html?
|
43
|
-
|
51
|
+
text? && !!(sub_type =~ /^html$/i)
|
44
52
|
end
|
45
53
|
|
46
54
|
def body_html
|
47
55
|
if multipart? && html_part
|
48
56
|
html_part.decoded
|
49
|
-
elsif
|
57
|
+
elsif html?
|
50
58
|
decoded
|
51
59
|
end
|
52
60
|
end
|
data/lib/postmark/version.rb
CHANGED