resent 0.1.0 → 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: c4f7acd5d5dae1962175ef7c965b555542a2b42049362b4a9164184e4a19ce13
4
- data.tar.gz: '04980611b9520269bb6c46a40e74db9a279c06f5399d4d4e510e44019e407770'
3
+ metadata.gz: beecbef051467b8cf8e07c7a33dac9c092d7df5f88dd76bb966c2e1aabf08f60
4
+ data.tar.gz: 9a15e7beb68f694753882c5d824be9e8f57c2cffc1f6a55b7a43aef71fab9b5a
5
5
  SHA512:
6
- metadata.gz: 11e60f8e51296234a12940b19d2dbe1aed0bcc076fc4fbee5e9245542ffe7f8459897d7366e9a6e76147736854c13680e3a33b32d35fec47125fa826a6d5847e
7
- data.tar.gz: 3a698ea03305e16b257e599af745a7ddd5d6bbbca956d56560949883f88723823cb3263d01de8b1408517687e8f6907f0e0bd6be8d2feefaa3427ead1758df75
6
+ metadata.gz: e9863944687e3c337c2e771335bf16a6997f2163f94302d3ee9f706a3317a381c57c05dd314166c965f3035ff2838c913da9fc169d298447e989212b73b7d3fd
7
+ data.tar.gz: 0fc466eeeae52fd8aee0eaea90790da8b7b205b0f286134228a659a8dd7341c8a2787c249b9b3244473f0055d8eec807584dc526e1cf66c7932e39600989d677
data/README.md CHANGED
@@ -1,11 +1,18 @@
1
1
  <p align="center">
2
2
  <img
3
3
  alt="Send emails with Ruby — Resent"
4
- src="https://raw.githubusercontent.com/resentmail/resent-ruby/main/assets/banner.jpg"
4
+ src="https://raw.githubusercontent.com/resentmail/resent-ruby/main/assets/banner.jpg?v=0.1.2"
5
5
  width="100%"
6
6
  />
7
7
  </p>
8
8
 
9
+ <p align="center">
10
+ <a href="https://rubygems.org/gems/resent"><img alt="Gem version" src="https://img.shields.io/gem/v/resent?color=b6ff5a&label=gem&style=flat-square" /></a>
11
+ <a href="https://rubygems.org/gems/resent"><img alt="Downloads" src="https://img.shields.io/gem/dt/resent?color=111&style=flat-square" /></a>
12
+ <a href="https://github.com/resentmail/resent-ruby/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/badge/license-MIT-b6ff5a?style=flat-square" /></a>
13
+ <a href="https://developers.resent.one/sdks/ruby"><img alt="Docs" src="https://img.shields.io/badge/docs-developers.resent.one-111?style=flat-square" /></a>
14
+ </p>
15
+
9
16
  <p align="center">
10
17
  <a href="https://developers.resent.one">Documentation</a>
11
18
  ·
@@ -26,7 +33,7 @@ The official Ruby library for [Resent](https://resent.one) transactional email.
26
33
  gem install resent
27
34
  ```
28
35
 
29
- Or in your Gemfile:
36
+ Or add to your Gemfile:
30
37
 
31
38
  ```ruby
32
39
  gem "resent"
@@ -42,6 +49,12 @@ bundle install
42
49
  2. Create an API key under [Settings → API keys](https://resent.one/app/settings/api-keys/)
43
50
  3. Store it as `RESENT_API_KEY`
44
51
 
52
+ ```ruby
53
+ require "resent"
54
+
55
+ resent = Resent.new(ENV.fetch("RESENT_API_KEY"))
56
+ ```
57
+
45
58
  ## Usage
46
59
 
47
60
  ```ruby
@@ -53,7 +66,7 @@ result = resent.emails.send(
53
66
  from: "Acme <noreply@yourdomain.com>",
54
67
  to: "you@example.com",
55
68
  subject: "Hello World",
56
- html: "<strong>It works!</strong>"
69
+ html: "<p>Congrats on sending your <strong>first email</strong> with Resent!</p>"
57
70
  )
58
71
 
59
72
  puts result["submission_id"]
@@ -70,6 +83,17 @@ result = resent.emails.send(
70
83
  )
71
84
  ```
72
85
 
86
+ ## Send email using text
87
+
88
+ ```ruby
89
+ result = resent.emails.send(
90
+ from: "Acme <noreply@yourdomain.com>",
91
+ to: "you@example.com",
92
+ subject: "Hello World",
93
+ text: "It works!"
94
+ )
95
+ ```
96
+
73
97
  ## Docs
74
98
 
75
99
  - [Getting started](https://developers.resent.one)
data/assets/banner.jpg CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Resent
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Resent
@@ -10,8 +10,13 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2026-07-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Send transactional email with the Resent API from Ruby. Verify a domain,
14
- set RESENT_API_KEY, then call Resent::Client#emails.send.
13
+ description: |
14
+ Official Ruby SDK for Resent transactional email.
15
+
16
+ gem install resent
17
+ Then: Resent.new(ENV["RESENT_API_KEY"]).emails.send(...)
18
+
19
+ Docs: https://developers.resent.one/sdks/ruby
15
20
  email:
16
21
  - hello@resent.one
17
22
  executables: []
@@ -51,5 +56,5 @@ requirements: []
51
56
  rubygems_version: 3.0.3.1
52
57
  signing_key:
53
58
  specification_version: 4
54
- summary: Official Ruby SDK for Resent transactional email
59
+ summary: Official Ruby SDK for Resent — send transactional email in a few lines
55
60
  test_files: []