groundmail 0.8.4 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/groundmail.gemspec +3 -2
- data/lib/groundmail/resources.rb +1 -1
- data/lib/groundmail/version.rb +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dac004f080be198bf09b70728a53adaa36c1bc259a03448219176c111cee9585
|
|
4
|
+
data.tar.gz: 8a9e4e061719e2ace0977865902fda9593ddc2b82fb23d94058129988b43c363
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 527d91d1afbeac8fc918ee41dbef596843c896f1824d8e68bc13eab401b3c83875658e4df6db7d456a1c090ba26bea130c4526350698e5336331f37008dc854f
|
|
7
|
+
data.tar.gz: 1119e33168d8d31ef2944af6dc5ab4615c9c3a7bef1dd6e1f0c8df73737fe2547d28539e7b1c082d2f73effdb8c35162f0c7f04e360d53eed58f1074e85afceb
|
data/README.md
CHANGED
|
@@ -21,13 +21,18 @@ result = tx.emails.send(
|
|
|
21
21
|
puts result["id"], result["status"]
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
## Rails
|
|
24
|
+
## Rails Action Mailer
|
|
25
|
+
|
|
26
|
+
The gem registers a `:groundmail` delivery method when Rails is loaded:
|
|
25
27
|
|
|
26
28
|
```ruby
|
|
29
|
+
# config/environments/production.rb
|
|
27
30
|
config.action_mailer.delivery_method = :groundmail
|
|
28
31
|
config.action_mailer.groundmail_settings = {
|
|
29
32
|
api_key: ENV.fetch("GROUNDMAIL_API_KEY")
|
|
30
33
|
}
|
|
31
34
|
```
|
|
32
35
|
|
|
36
|
+
Your mailers and `deliver_later` calls stay the same. Rails guide: https://docs.groundmail.dev/frameworks/rails
|
|
37
|
+
|
|
33
38
|
Docs: https://docs.groundmail.dev/sdks/ruby
|
data/groundmail.gemspec
CHANGED
|
@@ -8,8 +8,9 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.authors = ["Groundmail"]
|
|
9
9
|
spec.email = ["support@groundmail.dev"]
|
|
10
10
|
|
|
11
|
-
spec.summary = "Groundmail transactional email
|
|
12
|
-
spec.description = "Official Ruby client for the Groundmail
|
|
11
|
+
spec.summary = "Groundmail transactional email for Ruby and Rails (Action Mailer delivery method included)"
|
|
12
|
+
spec.description = "Official Ruby client for the Groundmail transactional email API, with a Rails Action Mailer " \
|
|
13
|
+
"delivery method: set config.action_mailer.delivery_method = :groundmail."
|
|
13
14
|
spec.homepage = "https://groundmail.dev"
|
|
14
15
|
spec.license = "MIT"
|
|
15
16
|
spec.required_ruby_version = ">= 3.1.0"
|
data/lib/groundmail/resources.rb
CHANGED
|
@@ -56,7 +56,7 @@ module Groundmail
|
|
|
56
56
|
"to" => params["to"] || params[:to]
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
%w[subject html text reply_to replyTo cc bcc tags headers tag template attachments].each do |key|
|
|
59
|
+
%w[subject html text reply_to replyTo cc bcc tags headers tag template attachments category tenant].each do |key|
|
|
60
60
|
value = params[key] || params[key.to_sym]
|
|
61
61
|
next if value.nil?
|
|
62
62
|
|
data/lib/groundmail/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: groundmail
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Groundmail
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -52,7 +52,9 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '5.25'
|
|
55
|
-
description: Official Ruby client for the Groundmail
|
|
55
|
+
description: 'Official Ruby client for the Groundmail transactional email API, with
|
|
56
|
+
a Rails Action Mailer delivery method: set config.action_mailer.delivery_method
|
|
57
|
+
= :groundmail.'
|
|
56
58
|
email:
|
|
57
59
|
- support@groundmail.dev
|
|
58
60
|
executables: []
|
|
@@ -98,5 +100,6 @@ requirements: []
|
|
|
98
100
|
rubygems_version: 3.5.22
|
|
99
101
|
signing_key:
|
|
100
102
|
specification_version: 4
|
|
101
|
-
summary: Groundmail transactional email
|
|
103
|
+
summary: Groundmail transactional email for Ruby and Rails (Action Mailer delivery
|
|
104
|
+
method included)
|
|
102
105
|
test_files: []
|