mailersend-ruby 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/mailersend/tokens/tokens.rb +3 -2
- data/lib/mailersend/version.rb +1 -1
- data/mailersend-ruby.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8014167f26531076478ce1a76efca2bff0769ff8857adcfe8a0c6c54ee27565
|
4
|
+
data.tar.gz: 659cd21b1a22e1c02b27813801fcddf72032250cf0875d180eb645080b250258
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c873fdb29ca0960680da1a85e17c31b1e32f6d7bbb72f8520d78bf00f6d8baff1083607eca82b00522f2adf35b2eed59401f5015cd7199066d40b61819b0061
|
7
|
+
data.tar.gz: 693b330d3bc564f7b2ac06c5b1be086a0879cbb7d6b0bcbecc5ef0a1568210fd8b619d102c938e1b226ce89bd10773e96818377f3503b9da47c2b4d0d8307a0c
|
data/README.md
CHANGED
@@ -129,7 +129,7 @@ ms_email.send
|
|
129
129
|
require "mailersend-ruby"
|
130
130
|
|
131
131
|
ms_tokens = Mailersend::Tokens.new
|
132
|
-
ms_tokens.create(name: "Very nice token", scopes: %w[ email_full domains_read ])
|
132
|
+
ms_tokens.create(name: "Very nice token", scopes: %w[ email_full domains_read ], domain_id: "yourdomainid")
|
133
133
|
```
|
134
134
|
|
135
135
|
### Update a token
|
@@ -17,10 +17,11 @@ module Mailersend
|
|
17
17
|
@status = {}
|
18
18
|
end
|
19
19
|
|
20
|
-
def create(name:, scopes:)
|
20
|
+
def create(name:, scopes:, domain_id:)
|
21
21
|
json = {
|
22
22
|
"name" => name,
|
23
|
-
"scopes" => scopes
|
23
|
+
"scopes" => scopes,
|
24
|
+
"domain_id" => scopes
|
24
25
|
}
|
25
26
|
response = client.http.post("#{API_URL}/token", json: json)
|
26
27
|
puts response
|
data/lib/mailersend/version.rb
CHANGED
data/mailersend-ruby.gemspec
CHANGED
@@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
|
29
29
|
spec.add_development_dependency "bundler", "~> 2.2.15"
|
30
30
|
spec.add_development_dependency "rake", "~> 13.0"
|
31
|
+
spec.add_development_dependency "rspec"
|
31
32
|
spec.add_development_dependency "rubocop", "~> 1.7"
|
32
33
|
spec.add_dependency "dotenv-rails", "~> 2.7"
|
33
34
|
spec.add_dependency "http", "~> 5.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailersend-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikola Milojević
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '13.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rubocop
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|