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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a66c4f7f88e98bd6821f116955e8b9f32f62f85b2854a994ddc0c1d388b4b0cf
4
- data.tar.gz: 2613c660cf0d502576cde414c1d2eeebeabd004c9dd152734cc7dae681bfd035
3
+ metadata.gz: d8014167f26531076478ce1a76efca2bff0769ff8857adcfe8a0c6c54ee27565
4
+ data.tar.gz: 659cd21b1a22e1c02b27813801fcddf72032250cf0875d180eb645080b250258
5
5
  SHA512:
6
- metadata.gz: 35a475e87db0310862be164d3e77d412ecc9e7544ca411906c47888fc71dcd2d56596c49168025bf8a9f3580977e7c51b5dc13acea4d12bd257ae54ca4913735
7
- data.tar.gz: fe1d0b0830ac2dd2cc7a7df895a97d83bb50563c234781b3ab9d21638f297e273b250e4556647c77acce3cfe3be0f1ae60269d1686d9f250f7951c51a84bc5e5
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mailersend
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
@@ -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.6
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