mailersend-ruby 0.1.5 → 0.1.6

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: 9ac665fe97374d246c31952ff4e34a63c0a302e2833186a27750424450ebf332
4
- data.tar.gz: 121fc72092e62063cfaa753e72272c4ff03b2038ff5eec7eb7431884e3b6995a
3
+ metadata.gz: a66c4f7f88e98bd6821f116955e8b9f32f62f85b2854a994ddc0c1d388b4b0cf
4
+ data.tar.gz: 2613c660cf0d502576cde414c1d2eeebeabd004c9dd152734cc7dae681bfd035
5
5
  SHA512:
6
- metadata.gz: 395e71b85cff75f893a0f7f522d70b059ee893b06bece2ed42965587cce2cdb120c1bb822999d3d55ee33792e1e1058c83f504737ef2c05136c9249e1a2410c7
7
- data.tar.gz: 90805ef350b1ec3f3efccefe12e5fb05f16d2ac8035e545e40811bb6bf3cf37497eee215394198d20644ef421d278735259f0bbfe64745c173c868bb7e862659
6
+ metadata.gz: 35a475e87db0310862be164d3e77d412ecc9e7544ca411906c47888fc71dcd2d56596c49168025bf8a9f3580977e7c51b5dc13acea4d12bd257ae54ca4913735
7
+ data.tar.gz: fe1d0b0830ac2dd2cc7a7df895a97d83bb50563c234781b3ab9d21638f297e273b250e4556647c77acce3cfe3be0f1ae60269d1686d9f250f7951c51a84bc5e5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Released]
2
2
 
3
+ ## [0.1.6] - 2021-06-15
4
+
5
+ - Fixed small issues in Domains
6
+
3
7
  ## [0.1.5] - 2021-06-15
4
8
 
5
9
  - Fixed arguments error in Domains list
data/README.md CHANGED
@@ -296,7 +296,7 @@ ms_domains.list
296
296
  require "mailersend-ruby"
297
297
 
298
298
  ms_domains = Mailersend::Domains.new
299
- ms_domains.list(domain_id: "idofdomain12412")
299
+ ms_domains.single(domain_id: "idofdomain12412")
300
300
  ```
301
301
 
302
302
  ### Delete a domain
@@ -381,7 +381,7 @@ ms_webhooks.list(domain_id: "xxx2241ll")
381
381
  require "mailersend-ruby"
382
382
 
383
383
  ms_webhooks = Mailersend::Webhooks.new
384
- ms_webhooks.list(webhook_id: "zzz2241ll")
384
+ ms_webhooks.single(webhook_id: "zzz2241ll")
385
385
  ```
386
386
 
387
387
  ### Create a webhook
@@ -17,7 +17,18 @@ module Mailersend
17
17
  @verified = verified
18
18
  end
19
19
 
20
- def list(domain_id:, page: nil, limit: nil, verified: nil)
20
+ def list(page: nil, limit: nil, verified: nil)
21
+ hash = {
22
+ "page" => page,
23
+ "limit" => limit,
24
+ "verified" => verified
25
+ }
26
+ response = client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: "/v1/domains",
27
+ query: URI.encode_www_form(hash.compact)))
28
+ puts response
29
+ end
30
+
31
+ def single(domain_id:, page: nil, limit: nil, verified: nil)
21
32
  hash = {
22
33
  "page" => page,
23
34
  "limit" => limit,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mailersend
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikola Milojević