mailgunner 3.0.0 → 3.1.0

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: a596ae861173d54342b029a7c17985553cc7f7222722ec55e05e0344beacf08f
4
- data.tar.gz: 481ac3d5b13702ca41598db5868d8b12c4f7a6302264bb216937938c60e1b3c7
3
+ metadata.gz: ecebbd735148a4e998432b795af65a568b07d3240a6fdaced0f9b4e2df046a3f
4
+ data.tar.gz: 1779983950d5fb39a0cf04164289998c87fbfd2b34f9728e2b69ddb5217ab365
5
5
  SHA512:
6
- metadata.gz: eb7904e35154121959f7c7f392c72b6f472579ea02baec660487203674b601d9cedb039800fb0847f097f94283d93e52088c6bb00eb3641ce22d7643204f7e38
7
- data.tar.gz: 3eb5b428d621fee6ea3605353869e479e8b765e858e1fe1f3e596ebcf7a095f0892d292be22e9cf956f6d9e5e294ec79dd6300b8addf193d36a01584af94bf43
6
+ metadata.gz: bfa31b90f0285e73bd3cb975c36aa5ea90845706acd12121e05ab54d3577765408f27e968070008336fe5d3cbd282a25ab67f4a378b88beb49a6f1b770bdde8e
7
+ data.tar.gz: e5474d83229a4e02fac4e4e3ca23d9328d1108e582eadd5cc2e1f411ffa3a8dedd67b7b6bff33ac91358521cc74061a7f06b55b21dd863aea98695e5b6fac6a0
@@ -0,0 +1,198 @@
1
+ # 3.1.0
2
+
3
+ * Allow delivery method settings to be modified before delivery (#22)
4
+
5
+ # 3.0.0
6
+
7
+ * Changed required_ruby_version to >= 2.5.0
8
+
9
+ * Added Mailgunner::Config class
10
+
11
+ You can now configure options globally. For example:
12
+
13
+ Mailgunner.configure do |config|
14
+ config.api_host = 'api.eu.mailgun.net'
15
+ end
16
+
17
+ This may or may not be a breaking change, depending on how you are currently initializing client objects.
18
+
19
+ * Added Mailgunner::Struct class
20
+
21
+ Return values are now instances of the Mailgunner::Struct class. You can access nested keys in various ways:
22
+
23
+ response.items
24
+ response['items']
25
+ response[:items]
26
+ response.to_h.dig('items')
27
+
28
+ This may or may not be a breaking change, depending on how you are currently using return values.
29
+
30
+ * Added parsing of error messages in response bodies
31
+
32
+ * Removed Mailgunner::Client#get_stats method
33
+
34
+ * Removed Mailgunner::Client#parse_addresses method
35
+
36
+ * Changed Mailgunner::Client#validate_address to v4 endpoint
37
+
38
+ * Changed Mailgunner::Client#get_lists method to new endpoint
39
+
40
+ * Changed Mailgunner::Client#get_list_members method to new endpoint
41
+
42
+ * Added Mailgunner::Client#get_bulk_validations method
43
+
44
+ * Added Mailgunner::Client#create_bulk_validation method
45
+
46
+ * Added Mailgunner::Client#get_bulk_validation method
47
+
48
+ * Added Mailgunner::Client#cancel_bulk_validation method
49
+
50
+ * Added Mailgunner::Client#get_whitelists method
51
+
52
+ * Added Mailgunner::Client#get_whitelist method
53
+
54
+ * Added Mailgunner::Client#add_whitelist method
55
+
56
+ * Added Mailgunner::Client#delete_whitelist method
57
+
58
+ * Added Mailgunner::Client#get_tracking_settings method
59
+
60
+ * Added Mailgunner::Client#update_open_tracking_settings method
61
+
62
+ * Added Mailgunner::Client#update_click_tracking_settings method
63
+
64
+ * Added Mailgunner::Client#update_unsubscribe_tracking_settings method
65
+
66
+ # 2.6.0
67
+
68
+ * Added `api_host` option for EU region (thanks @drummerroma and @markoudev)
69
+
70
+ * Added Mailgunner::Client#get_all_ips method
71
+
72
+ * Added Mailgunner::Client#get_ip method
73
+
74
+ * Added Mailgunner::Client#get_ips method
75
+
76
+ * Added Mailgunner::Client#add_ip method
77
+
78
+ * Added Mailgunner::Client#delete_ip method
79
+
80
+ * Removed legacy campaign methods
81
+
82
+ # 2.5.0
83
+
84
+ * Fixed compatibility with mail v2.6.6+ (#13)
85
+
86
+ * Added Mailgunner::Client#get_webhooks method
87
+
88
+ * Added Mailgunner::Client#get_webhook method
89
+
90
+ * Added Mailgunner::Client#add_webhook method
91
+
92
+ * Added Mailgunner::Client#update_webhook method
93
+
94
+ * Added Mailgunner::Client#delete_webhook method
95
+
96
+ * Added Mailgun::AuthenticationError exception class
97
+
98
+ * Added Mailgun::ClientError exception class
99
+
100
+ * Added Mailgun::ServerError exception class
101
+
102
+ # 2.4.0
103
+
104
+ * Fixed Rails load order issue when specifying mailgun_settings (#10)
105
+
106
+ * Added Mailgunner::Client#get_connection_settings method
107
+
108
+ * Added Mailgunner::Client#update_connection_settings method
109
+
110
+ * Added Mailgunner::Client#get_tags method
111
+
112
+ * Added Mailgunner::Client#get_tag method
113
+
114
+ * Added Mailgunner::Client#update_tag method
115
+
116
+ * Added Mailgunner::Client#get_tag_stats method
117
+
118
+ * Added Mailgunner::Client#delete_tag method
119
+
120
+ * Added Mailgunner::Client#delete_bounces method
121
+
122
+ # 2.3.0
123
+
124
+ * Added Mailgunner::Client#get_total_stats method
125
+
126
+ * Deprecated Mailgunner::Client#get_stats method
127
+
128
+ * Removed Mailgunner::Client#get_list_stats method
129
+
130
+ # 2.2.2
131
+
132
+ * Fixed cc and bcc recipients not included in multipart sends (#9)
133
+
134
+ # 2.2.1
135
+
136
+ * Fixed Rails load order issue (#8)
137
+
138
+ # 2.2.0
139
+
140
+ * Added Mailgunner::Client#get_message method
141
+
142
+ * Added Mailgunner::Client#get_mime_message method
143
+
144
+ * Added Mailgunner::Client#delete_message method
145
+
146
+ * Updated API version prefix from v2 to v3
147
+
148
+ # 2.1.0
149
+
150
+ * Mailgunner::DeliveryMethod can now be used with Mail directly
151
+
152
+ * An exception is now raised when calling domain methods if the domain is not provided
153
+
154
+ * The api_key option can now be specified in ActionMailer::Base.mailgun_settings
155
+
156
+ # 2.0.0
157
+
158
+ * Removed deprecated :json option
159
+
160
+ * Removed Mailgunner::Response class in favour of using exceptions to signal errors
161
+
162
+ * Added Mailgunner::Client#delete_domain method
163
+
164
+ * Added Mailgunner::Client methods for managing SMTP credentials
165
+
166
+ # 1.3.0
167
+
168
+ * Added [ActionMailer](https://rubygems.org/gems/actionmailer) integration
169
+
170
+ * Added Mailgunner::Client#send_mime method for sending [mail](https://rubygems.org/gems/mail) objects in MIME format
171
+
172
+ * Fixed default behaviour to allow for nil domain
173
+
174
+ * Removed deprecated Mailgunner::Client#get_log method
175
+
176
+ * Removed deprecated mailbox methods
177
+
178
+ * Removed deprecated json accessor methods
179
+
180
+ # 1.2.0
181
+
182
+ * Added methods for the new [Email Validation endpoint](http://documentation.mailgun.com/api-email-validation.html)
183
+
184
+ * Added Mailgunner::Client#get_events method for the new [Events API endpoint](http://documentation.mailgun.com/api-events.html)
185
+
186
+ * Deprecated the Mailgunner::Client#get_log method (use Mailgunner::Client#get_events instead)
187
+
188
+ # 1.1.0
189
+
190
+ * Fixed use of insecure JSON.load
191
+
192
+ * Deprecated the mailbox methods (legacy Mailgun feature)
193
+
194
+ * Deprecated the :json option and associated accessor methods
195
+
196
+ # 1.0.0
197
+
198
+ * First version!
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2019 TIMCRAFT
1
+ Copyright (c) 2012-2020 TIMCRAFT
2
2
 
3
3
  This is an Open Source project licensed under the terms of the LGPLv3 license.
4
4
  Please see <http://www.gnu.org/licenses/lgpl-3.0.html> for license text.
@@ -6,13 +6,14 @@ module Mailgunner
6
6
  attr_accessor :settings
7
7
 
8
8
  def initialize(values)
9
- @client = Client.new(values)
9
+ self.settings = values
10
10
  end
11
11
 
12
12
  def deliver!(mail)
13
13
  check(mail)
14
14
 
15
- @client.send_mime(mail)
15
+ client = Client.new(settings)
16
+ client.send_mime(mail)
16
17
  end
17
18
 
18
19
  private
@@ -1,3 +1,3 @@
1
1
  module Mailgunner
2
- VERSION = '3.0.0'
2
+ VERSION = '3.1.0'
3
3
  end
@@ -10,15 +10,8 @@ Gem::Specification.new do |s|
10
10
  s.homepage = 'https://github.com/readysteady/mailgunner'
11
11
  s.description = 'Ruby client for the Mailgun API'
12
12
  s.summary = 'Ruby client for the Mailgun API'
13
- s.files = Dir.glob('lib/**/*.rb') + %w(LICENSE.txt README.md mailgunner.gemspec)
13
+ s.files = Dir.glob('lib/**/*.rb') + %w(CHANGES.md LICENSE.txt README.md mailgunner.gemspec)
14
14
  s.required_ruby_version = '>= 2.5.0'
15
- s.add_development_dependency('rake', '~> 12')
16
- s.add_development_dependency('yard', '~> 0.9')
17
- s.add_development_dependency('redcarpet', '~> 3') unless RUBY_PLATFORM == 'java'
18
- s.add_development_dependency('webmock', '~> 3')
19
- s.add_development_dependency('mail', '~> 2')
20
- s.add_development_dependency('actionmailer', '~> 5')
21
- s.add_development_dependency('mocha', '~> 1')
22
15
  s.require_path = 'lib'
23
16
  s.metadata = {
24
17
  'homepage' => 'https://github.com/readysteady/mailgunner',
metadata CHANGED
@@ -1,113 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailgunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Craft
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-12 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rake
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '12'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '12'
27
- - !ruby/object:Gem::Dependency
28
- name: yard
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.9'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.9'
41
- - !ruby/object:Gem::Dependency
42
- name: redcarpet
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '3'
55
- - !ruby/object:Gem::Dependency
56
- name: webmock
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '3'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '3'
69
- - !ruby/object:Gem::Dependency
70
- name: mail
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '2'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '2'
83
- - !ruby/object:Gem::Dependency
84
- name: actionmailer
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '5'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '5'
97
- - !ruby/object:Gem::Dependency
98
- name: mocha
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '1'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '1'
11
+ date: 2020-01-30 00:00:00.000000000 Z
12
+ dependencies: []
111
13
  description: Ruby client for the Mailgun API
112
14
  email:
113
15
  - mail@timcraft.com
@@ -115,6 +17,7 @@ executables: []
115
17
  extensions: []
116
18
  extra_rdoc_files: []
117
19
  files:
20
+ - CHANGES.md
118
21
  - LICENSE.txt
119
22
  - README.md
120
23
  - lib/mailgunner.rb