groundmail 0.8.3 → 0.8.5

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: c04be29498d0ca9868ae52b53bcc0528b588f8a2d98f4f18cf20b0f39c6a25e2
4
- data.tar.gz: 5586355da81959fc4f7d9979ca51edf10cb20feea7db7809d5f612740b4138d9
3
+ metadata.gz: c215aceb45e2efe0e25e1539e771723be8ce4e1197cc0265d64986596dedbf97
4
+ data.tar.gz: dd592e7b2e60812ed6ed882340dfa976db8d4defb7972cff0a76597ed6c690c3
5
5
  SHA512:
6
- metadata.gz: a3e6a375f80c44fd28e9a2f0236c60155b31a955772db2205276ceb3512594e97e5eb7b1171c03c9c50b3dcb88b1612e9a76d19a78cd91fa1d7e64290a5547e1
7
- data.tar.gz: 736c04b506e1597cef883890bcdfbde1c5e9022aeb1c46f3abb5787018d18b04c49f67f72d4c37e1d0f8f849c96458c35c6811de41e88f5e53e95c5e6264ef1f
6
+ metadata.gz: ffe39e331d4b8626f5121b208bd17b03f8fad6f3ee7a10dd58617749eaff76315b305d0b1c932c6b69d16e2cacc5cdd5d1dcc70e910104e8997e8d0a36cb5661
7
+ data.tar.gz: f8f0c61386f58986f1acfefb42e615281ec47fa53a578b5cda0f7b44bbcb9113e79706a6105efd9a57c4659b97ca5534e0772b0665f0546d6a75f90eb5307eb0
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"
@@ -5,7 +5,10 @@ require_relative "delivery_method"
5
5
 
6
6
  module Groundmail
7
7
  class Railtie < ::Rails::Railtie
8
- initializer "groundmail.add_delivery_method" do
8
+ # Runs before Action Mailer applies config.action_mailer.*: registering the
9
+ # delivery method resets groundmail_settings, so doing it afterwards would
10
+ # drop the settings from the app config.
11
+ initializer "groundmail.add_delivery_method", before: "action_mailer.set_configs" do
9
12
  ActiveSupport.on_load(:action_mailer) do
10
13
  ActionMailer::Base.add_delivery_method :groundmail, Groundmail::DeliveryMethod
11
14
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Groundmail
4
- VERSION = "0.8.3"
4
+ VERSION = "0.8.5"
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.3
4
+ version: 0.8.5
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-16 00:00:00.000000000 Z
11
+ date: 2026-10-17 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: []