mailjet 1.7.9 → 1.7.11

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: 79ac7a46c18530042c2b6c32c04f7fcb7ef0fac062e13e24a7bc4cf79ee3e9a8
4
- data.tar.gz: 6f6c290689c437ab0db53504c759d79595555659c5501a57682d290bd71b62f1
3
+ metadata.gz: 7750315aa012f4278b2ec45974bd121b1046508d8053fee6badd0e5e1ca70b8a
4
+ data.tar.gz: 19c8881562660013847bab88693e4c16da7e4ed4d570a447b8cb8dcf74a3d202
5
5
  SHA512:
6
- metadata.gz: a19b7e5d407cf862b3bda199b3fbc5ad34c7f12313efb514be5d5534c319d395ea347983e3103f3dadb012a700bda741f8a11d7265fb63fdd072ab3e5c278a6b
7
- data.tar.gz: 1404c4d766bc4b9690508daa052713bc55e0494ebd3e512ebefe4d2e8b18a453cc17edefc5a7c38e24be58430ea4f3a3f27a42c6ea07a893269f50f0c6b4fe06
6
+ metadata.gz: 211eec2f72044b08503ac7e987db39d3414d20f3dd42fd2761f4d05e49928c960bd8ff60ab16a1885fedc265b6cd711b7d6e627a13261ff957d527fc3ea1828c
7
+ data.tar.gz: 9f9f68d47df7a8a4435694a733bd8ef76f6e743987dafaeeddaf476c04283fbc5dd287d8e333a4220099a5d4ee3d9b23a487dd0a84e29a81410b58d8e77400fb
@@ -1,3 +1,6 @@
1
+ require 'yajl'
2
+ require 'json'
3
+
1
4
  module Mailjet
2
5
  class Error < StandardError
3
6
  attr_reader :object
@@ -1,7 +1,7 @@
1
1
  require 'action_mailer'
2
2
  require 'mail'
3
3
  require 'base64'
4
- require 'yajl/json_gem'
4
+ require 'yajl'
5
5
 
6
6
 
7
7
  # Mailjet::Mailer enables to send a Mail::Message via Mailjet SMTP relay servers
@@ -5,20 +5,15 @@ module Mailjet
5
5
  self.public_operations = [:get, :put, :post]
6
6
  self.filters = [:campaign, :contacts_list, :is_unsubscribed, :last_activity_at, :recipient, :status]
7
7
  self.resourceprop = [
8
- :created_at,
9
8
  :delivered_count,
10
9
  :email,
11
10
  :id,
12
11
  :is_opt_in_pending,
13
12
  :is_spam_complaining,
14
- :last_activity_at,
15
- :last_update_at,
16
13
  :name,
17
- :unsubscribed_at,
18
14
  :unsubscribed_by,
19
15
  :is_excluded_from_campaigns
20
16
  ]
21
17
  self.read_only_attributes = [:created_at, :last_activity_at, :last_update_at, :unsubscribed_at]
22
-
23
18
  end
24
19
  end
@@ -4,7 +4,8 @@ module Mailjet
4
4
  self.resource_path = 'REST/listrecipient'
5
5
  self.public_operations = [:get, :put, :post, :delete]
6
6
  self.filters = [:active, :blocked, :contact, :contact_email, :contacts_list, :last_activity_at, :list_name, :opened, :status, :unsub]
7
- self.resourceprop = [:contact, :id, :is_active, :is_unsubscribed, :list, :unsubscribed_at, :contact_id, :list_id, 'ContactID', 'ListID', 'ContactALT', 'ListALT']
7
+ self.resourceprop = [:contact, :id, :is_active, :is_unsubscribed, :list, :contact_id, :list_id, 'ContactID', 'ListID', 'ContactALT', 'ListALT']
8
8
 
9
+ self.read_only_attributes = [:subscribed_at, :unsubscribed_at]
9
10
  end
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module Mailjet
2
- VERSION = "1.7.9"
2
+ VERSION = "1.7.11"
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.9
4
+ version: 1.7.11
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: 2024-04-16 00:00:00.000000000 Z
14
+ date: 2024-05-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -97,6 +97,20 @@ dependencies:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
+ - !ruby/object:Gem::Dependency
101
+ name: json
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ type: :development
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
100
114
  - !ruby/object:Gem::Dependency
101
115
  name: webmock
102
116
  requirement: !ruby/object:Gem::Requirement