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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61141d6793655cec210521a980e6e981eb56790372ec27f35436c2bc9f2c1a51
4
- data.tar.gz: 06a2c834a1dae2f644f466f0867c1ccfb6204443ba5c08790be5752b40af526d
3
+ metadata.gz: dac004f080be198bf09b70728a53adaa36c1bc259a03448219176c111cee9585
4
+ data.tar.gz: 8a9e4e061719e2ace0977865902fda9593ddc2b82fb23d94058129988b43c363
5
5
  SHA512:
6
- metadata.gz: ec832248756b3c3f7fc0a3572a68ceb91e43df41f75d7fbadf040fb04795fd90991a85e2918c28f2e21482a1e3e33131ff3233ba0ce45ef88e14b14f71d82282
7
- data.tar.gz: 5dcc359472ca42fde0ea8e7a929b96261ee32f8d0d5a3bf742dcfc0afb875448dfecba7aaccb6219ecc5c9767e2830a0f7e68735251533fbd61cc107d023f9ed
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 ActionMailer
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 API client for Ruby"
12
- spec.description = "Official Ruby client for the Groundmail REST API."
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"
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Groundmail
4
- VERSION = "0.8.4"
4
+ VERSION = "0.8.6"
5
5
  end
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
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-17 00:00:00.000000000 Z
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 REST API.
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 API client for Ruby
103
+ summary: Groundmail transactional email for Ruby and Rails (Action Mailer delivery
104
+ method included)
102
105
  test_files: []