resend 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34d75256450dcc66c26389540c6daa09e35548aa92f597198903625050618ebe
4
- data.tar.gz: '08e1a8961434c9cd3ebed403378e01d3ebbd8c592283055a30895d6cb9a0bbd9'
3
+ metadata.gz: aab8a1f078990a6a2c6e40c01f4b72771915d74e5ad8fa19fec67d9e0d00dc7e
4
+ data.tar.gz: c440488de4a502b5abf3fbe79a83cd3535039fab30533308176f7b39b24477df
5
5
  SHA512:
6
- metadata.gz: dac58f82c95d6b80f7defe58848c1bc885ad484a93c6290ba1de7ce2351ca72a7bf3ff2b24daf1894c17f2c40cc1ba3c29be2ef81009ece0c0ab30875a2bb077
7
- data.tar.gz: 2c34b1cc768b41219ac140c1e87dfc4e10faada1b2afda924ec0eaa458a3a85573fd20d07483ce265c6b6d56db1953c0c1e34e7ea2cfa091a31ba577d83106de
6
+ metadata.gz: 577cb058bcada5f1cb56820c7ae1a6ba0f93da4035b1ac82d487fc3768a3c9b77a091a76b9cb5a91d5cb4a0331c8d6294f1b629ac40e86e6452e2d99c237b765
7
+ data.tar.gz: 037aa163eea257ab8c8a779d58dad4bbc166d69d979d258a578843d3229a35d5a90b337d4dd0d4d8680d27707c2ead0be5b8142fa7cf190ab4bbc0674a4149ca
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
4
4
  ![Build](https://github.com/drish/resend-ruby/actions/workflows/build.yml/badge.svg)
5
+ [![Gem Version](https://badge.fury.io/rb/resend.svg)](https://badge.fury.io/rb/resend)
5
6
  ---
6
7
 
7
8
  ## Installation
@@ -15,7 +16,7 @@ gem install resend
15
16
 
16
17
  Via Gemfile:
17
18
  ```
18
- gem 'resend', '~>0.1.0'
19
+ gem 'resend', '~>0.2.1'
19
20
  ```
20
21
 
21
22
  ## Setup
@@ -82,4 +83,4 @@ This gem can also be initialized with a Rails initializer file, example below:
82
83
  Resend.configure do |config|
83
84
  config.api_key = 'resend_api_key'
84
85
  end
85
- ```
86
+ ```
data/lib/resend/mailer.rb CHANGED
@@ -18,9 +18,9 @@ module Resend
18
18
  to: mail.to,
19
19
  subject: mail.subject,
20
20
  }
21
- params[:cc] = mail[:cc] if mail[:cc].present?
22
- params[:bcc] = mail[:bcc] if mail[:bcc].present?
23
- params[:reply_to] = mail[:reply_to] if mail[:reply_to].present?
21
+ params[:cc] = mail[:cc].to_s if mail[:cc].present?
22
+ params[:bcc] = mail[:bcc].to_s if mail[:bcc].present?
23
+ params[:reply_to] = mail[:reply_to].to_s if mail[:reply_to].present?
24
24
  params[:html] = mail.body.decoded
25
25
 
26
26
  resp = @resend_client.send_email(params)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Resend
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derich Pacheco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-30 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  requirements: []
73
- rubygems_version: 3.3.11
73
+ rubygems_version: 3.4.6
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: The Ruby and Rails SDK for resend.com