postmark 1.21.6 → 1.21.7
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/lib/postmark/error.rb +2 -2
- data/lib/postmark/version.rb +1 -1
- data/spec/unit/postmark/error_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2bd2c9a288c0f4baa7f2f076d91151a0835b8b168c76e6b1938d5aee972d118
|
4
|
+
data.tar.gz: 5f8ef5865ba91468d5d413f111af5f195adaf0c44983749605e7e015d9b79eb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba8d2597f8502259ef996c647d08f5264e6c677aa4d3e0e697156442b35fe6a1503b914f156b83a627dadaf4cdb64e3e159049d2031e52c675ff721b960abc16
|
7
|
+
data.tar.gz: 538224ea9fa9c537f9671a5f9de5bfb1a7dc9078f531b6ef8fc8f1c02aa64fda4e82e8031ad5da37abcaeb793b65fd4b5b541e6329181e8e0e21af8d05d0fc93
|
data/CHANGELOG.rdoc
CHANGED
data/lib/postmark/error.rb
CHANGED
@@ -76,8 +76,8 @@ module Postmark
|
|
76
76
|
attr_reader :recipients
|
77
77
|
|
78
78
|
PATTERNS = [/^Found inactive addresses: (.+?)\.$/.freeze,
|
79
|
-
|
80
|
-
/these inactive addresses: (.+?)
|
79
|
+
/these inactive addresses: (.+?)\. Inactive/.freeze,
|
80
|
+
/these inactive addresses: (.+?)\.?$/].freeze
|
81
81
|
|
82
82
|
def self.parse_recipients(message)
|
83
83
|
PATTERNS.each do |p|
|
data/lib/postmark/version.rb
CHANGED
@@ -195,6 +195,12 @@ describe(Postmark::InactiveRecipientError) do
|
|
195
195
|
it {is_expected.to eq(recipients.take(1))}
|
196
196
|
end
|
197
197
|
|
198
|
+
context 'i/n inactive, n > 1, i < n - new message format' do
|
199
|
+
let(:message) { "Message OK, but will not deliver to these inactive addresses: #{recipients[0...2].join(', ')}" }
|
200
|
+
|
201
|
+
it {is_expected.to eq(recipients.take(2))}
|
202
|
+
end
|
203
|
+
|
198
204
|
context 'i/n inactive, n > 1, i < n' do
|
199
205
|
let(:message) do
|
200
206
|
'Message OK, but will not deliver to these inactive addresses: ' \
|