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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 715bc5dfedaf2922ecf3762f223a846a21a4c5ccac62f0cd9696a654d295acdc
4
- data.tar.gz: 9566a6de424da59aa2e92a7e08c733b5aed921c0ba7643ebea677511b5f57fe7
3
+ metadata.gz: 42f9a5e46d23e87c1624883d5bdff3c8979885245ee2efb9a6d60b2d51f2598b
4
+ data.tar.gz: 47db5c300727257e6c3a96e1a65bd4bd8e285948e01c83e74d02439310343b83
5
5
  SHA512:
6
- metadata.gz: ed316a2ef0e23b2a8fe634d6f6d855d520c14b2ca5669d404a8bb3ee13c9e218302651a7c243469484bf105b1a84c7d8f7a6fb5a7df5dc69428363be332a0823
7
- data.tar.gz: 8eb9f362a966497bc002ebf42f483e34efa0d1672d653bb0097c0d60966ed7a6a2785c0e30d2549da4c9de327350d11aec971dee7e925f7e38b8ad210c0e154b
6
+ metadata.gz: 7a82321fba8995153b7288d3cde80c1b420c4f4fb5a3eab0fbd6ec341272b406fe7b198961bf3292db9b7b41a23486487db308f596a27c3dad4b4b15801044ae
7
+ data.tar.gz: 82ae19286af3357b4102c05afeabed5efb8b99127ad5443d09c8ce43f20b245268856ccc55b59e896e23d9e2f377a731b7b1c605a8cfd200b5ab8976feeb0beb
data/.env.example CHANGED
@@ -1 +1 @@
1
- API_TOKEN="superlongkey"
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 `API_TOKEN` env variable or that your variable is enabled system wide (useful for Docker/Kubernetes). The example of how `API_TOKEN` should look like is in `.env.example`.
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
 
@@ -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('API_TOKEN')
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['API_TOKEN'])
17
+ def initialize(api_token = ENV['MAILERSEND_API_TOKEN'])
18
18
  @api_token = api_token
19
19
  end
20
20
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mailersend
4
- VERSION = '0.2.5'
4
+ VERSION = '1.0.0'
5
5
  end
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.2.5
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-01-10 00:00:00.000000000 Z
11
+ date: 2022-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler