mailersend-ruby 0.2.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env.example +1 -1
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/mailersend/client.rb +2 -2
- data/lib/mailersend/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42f9a5e46d23e87c1624883d5bdff3c8979885245ee2efb9a6d60b2d51f2598b
|
4
|
+
data.tar.gz: 47db5c300727257e6c3a96e1a65bd4bd8e285948e01c83e74d02439310343b83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a82321fba8995153b7288d3cde80c1b420c4f4fb5a3eab0fbd6ec341272b406fe7b198961bf3292db9b7b41a23486487db308f596a27c3dad4b4b15801044ae
|
7
|
+
data.tar.gz: 82ae19286af3357b4102c05afeabed5efb8b99127ad5443d09c8ce43f20b245268856ccc55b59e896e23d9e2f377a731b7b1c605a8cfd200b5ab8976feeb0beb
|
data/.env.example
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
MAILERSEND_API_TOKEN="superlongkey"
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## [Released]
|
2
2
|
|
3
|
+
## [1.0.0] - 2022-02-15
|
4
|
+
|
5
|
+
- BREAKING CHANGE: Renamed `API_TOKEN` variable to `MAILERSEND_API_TOKEN`
|
6
|
+
|
3
7
|
## [0.2.4] - 2021-12-13
|
4
8
|
|
5
9
|
- Added bulk email endpoint
|
@@ -32,6 +36,7 @@
|
|
32
36
|
|
33
37
|
- Added required parameter for token creation
|
34
38
|
-
|
39
|
+
|
35
40
|
## [0.1.6] - 2021-06-15
|
36
41
|
|
37
42
|
- Fixed small issues in Domains
|
data/README.md
CHANGED
@@ -70,7 +70,7 @@ You will have to initalize it in your Ruby file with `require "mailersend-ruby"`
|
|
70
70
|
|
71
71
|
# Usage
|
72
72
|
|
73
|
-
This SDK requires that you either have `.env` file with `
|
73
|
+
This SDK requires that you either have `.env` file with `MAILERSEND_API_TOKEN` env variable or that your variable is enabled system wide (useful for Docker/Kubernetes). The example of how `MAILERSEND_API_TOKEN` should look like is in `.env.example`.
|
74
74
|
|
75
75
|
## Email
|
76
76
|
|
data/lib/mailersend/client.rb
CHANGED
@@ -6,7 +6,7 @@ require 'dotenv/load'
|
|
6
6
|
API_URL = 'https://api.mailersend.com/v1'
|
7
7
|
API_BASE_HOST = 'api.mailersend.com'
|
8
8
|
|
9
|
-
Dotenv.require_keys('
|
9
|
+
Dotenv.require_keys('MAILERSEND_API_TOKEN')
|
10
10
|
|
11
11
|
# mailersend-ruby is a gem that integrates all endpoints from MailerSend API
|
12
12
|
module Mailersend
|
@@ -14,7 +14,7 @@ module Mailersend
|
|
14
14
|
|
15
15
|
# Inits the client.
|
16
16
|
class Client
|
17
|
-
def initialize(api_token = ENV['
|
17
|
+
def initialize(api_token = ENV['MAILERSEND_API_TOKEN'])
|
18
18
|
@api_token = api_token
|
19
19
|
end
|
20
20
|
|
data/lib/mailersend/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailersend-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikola Milojević
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|