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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: bd39b2edccaafaa5842c9ce058a3cb454c128e6c
4
- data.tar.gz: 23f300c8fb257f9f06983eaebcb54504fcb2fbcf
2
+ SHA256:
3
+ metadata.gz: 94259db52788333029d0c8fc9160c054a0e0bef5fc40b0ff4a2f825c9a337e54
4
+ data.tar.gz: eee118a0ebb96bf3c098f6c5ec7a28ec832c2b116b4060d7ef25df18ef36d063
5
5
  SHA512:
6
- metadata.gz: 272cd434acac86b4a069c6d53ab0a9462021d4550cd4f24c2659258ceddf30f10d7c30c42de558d064400f676bd1a7107149ac34c92fb7a8cd115656c307fa2d
7
- data.tar.gz: cfeabef756e01eaf744ba91401650495e591f0f1d224d3ac4eca0b6ece405a9629937c86aa1fbdb9fb376a2da798f38a929c65611d3d0ea154265acec3855494
6
+ metadata.gz: 1cb7d6f1972707fa631f27512ab36cc219373ca36725b666d05dab7ea128d270f8454cb30d45b0bc4b7d2f0460ca1ae380a2af3410c585d919461b0994d51cf1
7
+ data.tar.gz: f2852025eecc5f5087a7e8b41df7cae42f93b4978acf3fb4c8a613f2a3f30eefa83b300affc72234b3f398505bab759a977473ee71a4cc8766c4eb27a3762263
data/.gitignore CHANGED
@@ -20,3 +20,4 @@ tmp
20
20
  *.o
21
21
  *.a
22
22
  mkmf.log
23
+ .DS_Store
@@ -1,10 +1,10 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.5.1
5
- - 2.4.4
6
- - 2.3.4
7
- - 2.3.7
4
+ - 2.6.5
5
+ - 2.5.7
6
+ - 2.4.9
7
+ - 2.3.8
8
8
  before_install:
9
9
  - gem update --system
10
10
  - gem install bundler
@@ -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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "mail", "2.5.4"
5
+ gem "mail", "2.5.5"
6
6
 
7
7
  gemspec :path => "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "mail", "2.6.4"
5
+ gem "mail", "2.6.6"
6
6
 
7
7
  gemspec :path => "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "mail", "2.7.0"
5
+ gem "mail", "2.7.1"
6
6
 
7
7
  gemspec :path => "../"
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module SendGridActionMailer
2
- VERSION = '2.4.0'.freeze
2
+ VERSION = '2.4.2'.freeze
3
3
  end
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.0
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: 2019-07-09 00:00:00.000000000 Z
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
- rubyforge_project:
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.