zapsmtp 0.1.1 → 0.1.2

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: ffeb0ccc9ba40e716b7af928e48c78e746458789aa1b74999f38f196baa98eb5
4
- data.tar.gz: 79d61ce77cefcdc2d7d693dca7aab0e2d812f41a36bc056fc0fa785c765a01bc
3
+ metadata.gz: a8e80e2d3b88a7ffeac92044d731aa8a5426c958ad3caf8b53d7966b264a1ec7
4
+ data.tar.gz: 686f292c101174b852f6d03e47a199b6b6432d811abe01552ae5c14beaaa9e98
5
5
  SHA512:
6
- metadata.gz: 0c0aeee2b8a09d4b7b9bb357e37c6e53e9ba27c2bdcc15a86b54e39d50a5e84fde3e7acfe8f2f607e3676d7fb2fb82417e86395a04a4de4e6d16198f377e9ef8
7
- data.tar.gz: f948e7505c1cb2a8fcd57ef63e0a3346abc0cc512e65aa10c612035e604dafa0134a141b3c77bd9a176b17f77d86f12880120362c7baa25e31a9200a59d4a045
6
+ metadata.gz: 60d1ac3fe91d3c110b15325a3a4e0703ff7ef4d43a4b3d2402effe56bdc71951155f26c7e3460375cd8bf23ef3c6ee8bbf9193414413a25f1c4e957cb0f51154
7
+ data.tar.gz: 04a327ebb5e1bba20a6e2eabb4bfd360b5470063a660e516b13a413dc0093bb8f5a55c5c7c2e43e8803e757d7a6bba47753a4a2754e6481eaeab39b8643cd3fd
data/README.md CHANGED
@@ -283,7 +283,19 @@ response. API errors raise as above (ActionMailer's `raise_delivery_errors` appl
283
283
  Settings: `api_key`, `base_url`, `timeout`, `max_retries`, `default_headers`, `transport`, or
284
284
  `client:` an existing `ZapSMTP::Client`.
285
285
 
286
- Without Rails, the Mail gem can use it too:
286
+ ActionMailer without Rails (a Sinatra or Hanami app, a script): register the delivery method and
287
+ the `zapsmtp:` option once, then configure ActionMailer as above:
288
+
289
+ ```ruby
290
+ require "action_mailer"
291
+ require "zapsmtp/rails"
292
+
293
+ ZapSMTP::Rails.install(ActionMailer::Base)
294
+ ActionMailer::Base.delivery_method = :zapsmtp
295
+ ActionMailer::Base.zapsmtp_settings = { api_key: ENV["ZAP_API_KEY"] }
296
+ ```
297
+
298
+ Without Rails or ActionMailer, the Mail gem can use it too:
287
299
 
288
300
  ```ruby
289
301
  require "zapsmtp/rails"
@@ -1173,8 +1173,8 @@ module ZapSMTP
1173
1173
  # @param params [Hash] the parameters below, also accepted as keyword arguments
1174
1174
  # @option params [String] :from RFC 3339 start. At most 400 days before to. Default: 7 days ago.
1175
1175
  # @option params [String] :to RFC 3339 end (exclusive). Default: now.
1176
- # @option params [String] :granularity hour (ranges up to 31 days) or day for series. Default: hour up
1177
- # to 48 hours, else day.
1176
+ # @option params [String] :granularity hour (ranges up to 31 days) or day for series. One of: hour, day.
1177
+ # Default: hour up to 48 hours, else day.
1178
1178
  # @option params [String] :dimension domain, stream, tag or provider: adds groups, one row per value,
1179
1179
  # busiest first.
1180
1180
  # @option params [String] :domain Only this sending (From) domain.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ZapSMTP
4
4
  # Kept in step with the gemspec by the release script.
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zapsmtp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZapSMTP