mail-ses 0.1.0 → 0.1.1
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.md +4 -0
- data/VERSION +1 -1
- data/lib/mail/ses.rb +1 -1
- data/spec/mail_ses_spec.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6828265477b50de02b28a33e6d7e6c2454489e1874a9ef4a877d5c9da2798c19
|
4
|
+
data.tar.gz: b170ccac0a3decfc335bade3929bbabea31553b11f21f26abbf9af3d953bc083
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4501f1de2cacc24c08c3a2f398ef1865c38661f6878f694db809e6cba04621f8e379a76e8c5d66770a10566f2ce5549571016fafe11681836bd70696a2519134
|
7
|
+
data.tar.gz: f7c0310010dcdab52f961441b7c1c7f957bbaa815abe280e0bf90e36e2c42e3399d374d29f675e0af3507f8946ef5cdcef283c4085c0b847f409b1f03cc63de8
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/mail/ses.rb
CHANGED
@@ -73,7 +73,7 @@ module Mail
|
|
73
73
|
output = slice_hash(options, *RAW_EMAIL_ATTRS)
|
74
74
|
output[:source] ||= message.from.first
|
75
75
|
output[:destinations] = [message.to, message.cc, message.bcc].flatten.compact
|
76
|
-
output[:raw_message] = { data:
|
76
|
+
output[:raw_message] = { data: message.to_s }
|
77
77
|
output
|
78
78
|
end
|
79
79
|
|
data/spec/mail_ses_spec.rb
CHANGED
@@ -65,7 +65,7 @@ RSpec.describe Mail::SES do
|
|
65
65
|
end
|
66
66
|
|
67
67
|
context 'when options set' do
|
68
|
-
before {
|
68
|
+
before { allow(mail).to receive(:to_s).and_return('Fixed message body') }
|
69
69
|
let(:ses_options) { { stub_responses: true, mail_options: { source: 'foo@bar.com', source_arn: 'sa1' } } }
|
70
70
|
|
71
71
|
let(:exp) do
|
@@ -74,7 +74,7 @@ RSpec.describe Mail::SES do
|
|
74
74
|
source_arn: 'sa2',
|
75
75
|
destinations: %w[to1@def.com to2@xyz.com cc1@xyz.com cc2@def.com bcc1@abc.com bcc2@def.com],
|
76
76
|
raw_message: {
|
77
|
-
data:
|
77
|
+
data: 'Fixed message body'
|
78
78
|
}
|
79
79
|
}
|
80
80
|
end
|
@@ -117,7 +117,7 @@ RSpec.describe Mail::SES do
|
|
117
117
|
describe '::build_raw_email_options' do
|
118
118
|
let(:options) { {} }
|
119
119
|
subject { described_class.build_raw_email_options(mail, options) }
|
120
|
-
before {
|
120
|
+
before { allow(mail).to receive(:to_s).and_return('Fixed message body') }
|
121
121
|
|
122
122
|
context 'without options' do
|
123
123
|
let(:exp) do
|
@@ -125,7 +125,7 @@ RSpec.describe Mail::SES do
|
|
125
125
|
source: 'from@abc.com',
|
126
126
|
destinations: %w[to1@def.com to2@xyz.com cc1@xyz.com cc2@def.com bcc1@abc.com bcc2@def.com],
|
127
127
|
raw_message: {
|
128
|
-
data:
|
128
|
+
data: 'Fixed message body'
|
129
129
|
}
|
130
130
|
}
|
131
131
|
end
|
@@ -156,7 +156,7 @@ RSpec.describe Mail::SES do
|
|
156
156
|
configuration_set_name: 'configuration_set_name',
|
157
157
|
destinations: %w[to1@def.com to2@xyz.com cc1@xyz.com cc2@def.com bcc1@abc.com bcc2@def.com],
|
158
158
|
raw_message: {
|
159
|
-
data:
|
159
|
+
data: 'Fixed message body'
|
160
160
|
}
|
161
161
|
}
|
162
162
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail-ses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johnny Shields
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-ses
|