resent 0.1.0 → 0.1.1

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: 5fbfd1edb4be897f7fe77eaa02c658eb4a5ca083ed976f9bb2082c7789b06da1
4
+ data.tar.gz: b385b33d962146ec76a2ba05c8e6be04d9f66d48464fc1c91eb8c0b4d7e1c8cc
5
5
  SHA512:
6
- metadata.gz: 11e60f8e51296234a12940b19d2dbe1aed0bcc076fc4fbee5e9245542ffe7f8459897d7366e9a6e76147736854c13680e3a33b32d35fec47125fa826a6d5847e
7
- data.tar.gz: 3a698ea03305e16b257e599af745a7ddd5d6bbbca956d56560949883f88723823cb3263d01de8b1408517687e8f6907f0e0bd6be8d2feefaa3427ead1758df75
6
+ metadata.gz: 16eb3a25f7cb936e6371e3f1c145f338c5ff57fc9f9139293e694a91b7c7ba3bf7090ac8fe79413bc89b4c7da8969852295fe160c7b4b420c1113f78ed13241b
7
+ data.tar.gz: 7bac532d26e0f7df65a82b4d9c679d92a6499392a0e5fe90604758d9d5aa289898388f91e4af23f110d8a50d4784b3ac79b24b1ccaf7ae4f8f8933680ffff3a1
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.1"
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)
Binary file
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.1"
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.1
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: []
@@ -20,6 +25,7 @@ extra_rdoc_files: []
20
25
  files:
21
26
  - LICENSE
22
27
  - README.md
28
+ - assets/banner-source.png
23
29
  - assets/banner.jpg
24
30
  - lib/resent.rb
25
31
  - lib/resent/client.rb
@@ -51,5 +57,5 @@ requirements: []
51
57
  rubygems_version: 3.0.3.1
52
58
  signing_key:
53
59
  specification_version: 4
54
- summary: Official Ruby SDK for Resent transactional email
60
+ summary: Official Ruby SDK for Resent — send transactional email in a few lines
55
61
  test_files: []