postmark 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +4 -0
- data/Gemfile +3 -0
- data/VERSION +1 -1
- data/lib/postmark/message_extensions/mail.rb +9 -6
- data/lib/postmark/version.rb +1 -1
- data/postmark.gemspec +0 -2
- metadata +3 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc241632a8664fa4d6da4f478cb3b06d16dcad9e
|
4
|
+
data.tar.gz: 05270b025e77c916322187db871b53aa9d2f90dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de873b858f3b93c0e4bbbbec6b6092d579799da2e7d393909d163c2522a3a336d03846faffcaf8b618791d59d7dde5d8376ae808ee4f21d4112bb7ffb4f181f4
|
7
|
+
data.tar.gz: bfc1403186f4522b58174842bd104848a52f5b6aa405f3b61dc8e1db252785160b76f1b6b5a8046b079eb95975bf0a6a1717855787ded20fd93069e8590b9f02
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
= Changelog
|
2
2
|
|
3
|
+
== 1.4.2
|
4
|
+
|
5
|
+
* 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.
|
6
|
+
|
3
7
|
== 1.4.1
|
4
8
|
|
5
9
|
* Fix an exception when sending a Mail::Message containing quoted-printable parts with unicode characters.
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.2
|
@@ -44,18 +44,20 @@ module Mail
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def body_html
|
47
|
-
if html_part
|
48
|
-
decoded if html?
|
49
|
-
else
|
47
|
+
if multipart? && html_part
|
50
48
|
html_part.decoded
|
49
|
+
elsif text? && html?
|
50
|
+
decoded
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
54
|
def body_text
|
55
|
-
if text_part
|
56
|
-
decoded unless html?
|
57
|
-
else
|
55
|
+
if multipart? && text_part
|
58
56
|
text_part.decoded
|
57
|
+
elsif text? && !html?
|
58
|
+
decoded
|
59
|
+
elsif !html?
|
60
|
+
body.decoded
|
59
61
|
end
|
60
62
|
end
|
61
63
|
|
@@ -76,6 +78,7 @@ module Mail
|
|
76
78
|
end
|
77
79
|
|
78
80
|
def to_postmark_hash
|
81
|
+
ready_to_send!
|
79
82
|
::Postmark::MailMessageConverter.new(self).run
|
80
83
|
end
|
81
84
|
|
data/lib/postmark/version.rb
CHANGED
data/postmark.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postmark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Petyo Ivanov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-12-
|
13
|
+
date: 2014-12-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -54,34 +54,6 @@ dependencies:
|
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: activesupport
|
59
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - "~>"
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '3.0'
|
64
|
-
type: :development
|
65
|
-
prerelease: false
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - "~>"
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '3.0'
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: yajl-ruby
|
73
|
-
requirement: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - ">="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
|
-
type: :development
|
79
|
-
prerelease: false
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - ">="
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: '0'
|
85
57
|
description: Use this gem to send emails through Postmark HTTP API and retrieve info
|
86
58
|
about bounces.
|
87
59
|
email: ilya@wildbit.com
|
@@ -169,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
141
|
version: 1.3.7
|
170
142
|
requirements: []
|
171
143
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.2.
|
144
|
+
rubygems_version: 2.2.2
|
173
145
|
signing_key:
|
174
146
|
specification_version: 4
|
175
147
|
summary: Official Postmark API wrapper.
|