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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a729c8707418afffdc7f0c411a4f92b66d236db4ed0d1e41940c1ab00cecdb6c
4
- data.tar.gz: 45fd00d6204d3dd2764b78f5ee250f4cbf17f01a4dd6cf8671d9d55530eb9f68
3
+ metadata.gz: 6828265477b50de02b28a33e6d7e6c2454489e1874a9ef4a877d5c9da2798c19
4
+ data.tar.gz: b170ccac0a3decfc335bade3929bbabea31553b11f21f26abbf9af3d953bc083
5
5
  SHA512:
6
- metadata.gz: aaddce5f599c511aa774e9d8daba34e2142b88ebcee3048cbcac32c5e5c09ea653e627fc0087ea76f5086e3a6de40b881a7de46b79336b523ff7a466674faffa
7
- data.tar.gz: 89973fc7a007b2058e5c33f819519b06e8962e93439880799d74454ed6b52ca86dafef7adfffccd745c8fe3b70f4fcb05a66dec5b763f2c12783e1c032cbe017
6
+ metadata.gz: 4501f1de2cacc24c08c3a2f398ef1865c38661f6878f694db809e6cba04621f8e379a76e8c5d66770a10566f2ce5549571016fafe11681836bd70696a2519134
7
+ data.tar.gz: f7c0310010dcdab52f961441b7c1c7f957bbaa815abe280e0bf90e36e2c42e3399d374d29f675e0af3507f8946ef5cdcef283c4085c0b847f409b1f03cc63de8
@@ -1,3 +1,7 @@
1
+ # 0.1.1
2
+
3
+ - Fix: Remove Base64 encoding from message body.
4
+
1
5
  # 0.1.0
2
6
 
3
7
  - Initial release of gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -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: Base64.encode64(message.to_s) }
76
+ output[:raw_message] = { data: message.to_s }
77
77
  output
78
78
  end
79
79
 
@@ -65,7 +65,7 @@ RSpec.describe Mail::SES do
65
65
  end
66
66
 
67
67
  context 'when options set' do
68
- before { allow_any_instance_of(Mail::Message).to receive(:to_s).and_return('Fixed message body') }
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: "Rml4ZWQgbWVzc2FnZSBib2R5\n"
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 { allow_any_instance_of(Mail::Message).to receive(:to_s).and_return('Fixed message body') }
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: "Rml4ZWQgbWVzc2FnZSBib2R5\n"
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: "Rml4ZWQgbWVzc2FnZSBib2R5\n"
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.0
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-17 00:00:00.000000000 Z
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