mailjet 1.7.1 → 1.7.3

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
2
  SHA256:
3
- metadata.gz: bc1910e3eb07e5791f26146c52c3dd87740cf3cb49dc3a9689294377dd6c511c
4
- data.tar.gz: df6a8b03c02ff54e62489fd41803d738dfbbee3daeb3899b173be17bbc3c64fb
3
+ metadata.gz: 8196f5f49e3b7aa6766ad97b0e8a2346c4591f56f30a37e124a346ba46e06f3b
4
+ data.tar.gz: b7264d284ac5267785d26c0d8a14810f714ea74893f52eb8d82dc049347b1883
5
5
  SHA512:
6
- metadata.gz: a041287e3f47313fb2b433ecbf2431c48a58bc45b59e6bf91ac0ac83d69ff0568ec3480bc98deff2c62fa15ef7ca5e18722171574717852db51df941c25db820
7
- data.tar.gz: 7ccac7db9d9f6f5f6d83d3c28fdcfefbfee174055d5e9e9916274b5cfba9f5df0766e94c67c9207938e070d1fde1b21d6252d67de041f9f86ccb65f7b14cecda
6
+ metadata.gz: e2c289c1757e6cbc7980296b2de8b9bf7052dbea80265e93d4131a8b8de720c11daa07e83d1ca0d42f4acbc8e637ed387130ca6cf12efbf896e089fb460cc4f8
7
+ data.tar.gz: 7502fade84d6f8690394c3a911dfdb48786d21a3414a79416436a04da69aba2f0450b35ea1912b586c69126d6b3052573c3b29a8f3929c969b3d97c3bb0d76ad
@@ -114,8 +114,10 @@ module Mailjet
114
114
  return unless error_http_body
115
115
 
116
116
  parsed_body = JSON.parse(error_http_body)
117
- error_message = parsed_body['Messages']&.first&.dig('Errors')&.first&.dig('ErrorMessage')
117
+ error_message = parsed_body.dig('Messages')&.first&.dig('Errors')&.first&.dig('ErrorMessage') || []
118
118
  error_message.include?('is an invalid email address.')
119
+ rescue
120
+ false
119
121
  end
120
122
 
121
123
  end
@@ -28,6 +28,8 @@ module Mailjet
28
28
  cattr_accessor :resource_path, :public_operations, :read_only, :filters, :resourceprop, :read_only_attributes, :action, :non_json_urls, :version
29
29
  cattr_writer :connection
30
30
 
31
+ self.read_only_attributes = []
32
+
31
33
  def self.connection(options = {})
32
34
  class_variable_get(:@@connection) || default_connection(options)
33
35
  end
@@ -1,3 +1,3 @@
1
1
  module Mailjet
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailjet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Nappy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-08-28 00:00:00.000000000 Z
14
+ date: 2023-02-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport