sendgrid-actionmailer 2.4.0 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.travis.yml +4 -4
- data/CHANGELOG.md +24 -0
- data/README.md +1 -1
- data/gemfiles/mail_2.5.gemfile +1 -1
- data/gemfiles/mail_2.6.gemfile +1 -1
- data/gemfiles/mail_2.7.gemfile +1 -1
- data/lib/sendgrid_actionmailer.rb +1 -1
- data/lib/sendgrid_actionmailer/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 94259db52788333029d0c8fc9160c054a0e0bef5fc40b0ff4a2f825c9a337e54
|
4
|
+
data.tar.gz: eee118a0ebb96bf3c098f6c5ec7a28ec832c2b116b4060d7ef25df18ef36d063
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cb7d6f1972707fa631f27512ab36cc219373ca36725b666d05dab7ea128d270f8454cb30d45b0bc4b7d2f0460ca1ae380a2af3410c585d919461b0994d51cf1
|
7
|
+
data.tar.gz: f2852025eecc5f5087a7e8b41df7cae42f93b4978acf3fb4c8a613f2a3f30eefa83b300affc72234b3f398505bab759a977473ee71a4cc8766c4eb27a3762263
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,30 @@
|
|
6
6
|
|
7
7
|
- Compatibility with `sendgrid-ruby` v6.0.
|
8
8
|
|
9
|
+
## 2.3.0 - 2019-4-10
|
10
|
+
|
11
|
+
### Fixes
|
12
|
+
|
13
|
+
- No asm substitutions if template_id present
|
14
|
+
|
15
|
+
## 2.2.1 - 2019-1-4
|
16
|
+
|
17
|
+
### Fixes
|
18
|
+
|
19
|
+
- Fix Travis
|
20
|
+
|
21
|
+
## 2.2.0 - 2018-11-23
|
22
|
+
|
23
|
+
### Fixes
|
24
|
+
|
25
|
+
- Update Readme
|
26
|
+
|
27
|
+
## 2.1.0 - 2018-11-20
|
28
|
+
|
29
|
+
### Fixes
|
30
|
+
|
31
|
+
- Substiutions and dynamic_template_data should be compatible.
|
32
|
+
|
9
33
|
|
10
34
|
## 2.0.0 - 2018-08-15
|
11
35
|
|
data/README.md
CHANGED
@@ -217,7 +217,7 @@ The name of the campaign.
|
|
217
217
|
|
218
218
|
### dynamic_template_data (json)
|
219
219
|
|
220
|
-
Data to provide for feeding the new dynamic templates in Sendgrid with valueable data. This also disables the following Unsubscribe links because of deprecation of substitutions in the new template implementaiton.
|
220
|
+
Data to provide for feeding the new dynamic templates in Sendgrid with valueable data. This also disables the following Unsubscribe links because of deprecation of substitutions in the new template implementaiton. Variables are available within templates using [{{handlebar syntax}}](https://sendgrid.com/docs/for-developers/sending-email/using-handlebars).
|
221
221
|
|
222
222
|
```mail(to: 'example@email.com', subject: 'email subject', body: 'email body', dynamic_template_data:{ variable_1: 'foo', variable_2: 'bar'})```
|
223
223
|
|
data/gemfiles/mail_2.5.gemfile
CHANGED
data/gemfiles/mail_2.6.gemfile
CHANGED
data/gemfiles/mail_2.7.gemfile
CHANGED
@@ -228,7 +228,7 @@ module SendGridActionMailer
|
|
228
228
|
result = client.mail._('send').post(request_body: email.to_json) # ლ(ಠ益ಠლ) that API
|
229
229
|
|
230
230
|
if result.status_code && result.status_code.start_with?('4')
|
231
|
-
message = JSON.parse(result.body).fetch('errors').pop.fetch('message')
|
231
|
+
message = !!(result.body) ? JSON.parse(result.body).fetch('errors').pop.fetch('message') : 'Sendgrid API Error'
|
232
232
|
full_message = "Sendgrid delivery failed with #{result.status_code} #{message}"
|
233
233
|
|
234
234
|
settings[:raise_delivery_errors] ? raise(SendgridDeliveryError, full_message) : warn(full_message)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendgrid-actionmailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eddie Zaneski
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-01-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mail
|
@@ -157,8 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
|
-
|
161
|
-
rubygems_version: 2.6.14
|
160
|
+
rubygems_version: 3.0.6
|
162
161
|
signing_key:
|
163
162
|
specification_version: 4
|
164
163
|
summary: SendGrid support for ActionMailer.
|