mailosaur 7.2.0 → 7.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Mailosaur/servers.rb +17 -0
- data/lib/Mailosaur/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27d013e44169ed1c8b0881334b94ce03d76177c35b48202058683a271a7920a8
|
4
|
+
data.tar.gz: 3fd514240ac76ddfe02296e7a67b97f10b9d5fc711e1c7d321a1222cc1caef0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 173665bfe6e3ac1b5eacc99f8e4e3b8bf6e7e9487e4852be057473468b56c00c9f53d38ac95218587fd07d86301efcf98b7ce04f234c93dff5df66aa6c8db402
|
7
|
+
data.tar.gz: 81b04fd97abcfaf0784973d7cf9e1b627d6f28664b1c38a43133f47a001f743a128102520d764d52fba0e7ca825625219b41121feb207b5f489eff569c1dac25
|
data/lib/Mailosaur/servers.rb
CHANGED
@@ -60,6 +60,23 @@ module Mailosaur
|
|
60
60
|
Mailosaur::Models::Server.new(model)
|
61
61
|
end
|
62
62
|
|
63
|
+
#
|
64
|
+
# Retrieve server password
|
65
|
+
#
|
66
|
+
# Retrieves the password for use with SMTP and POP3 for a single server.
|
67
|
+
# Simply supply the unique identifier for the required server.
|
68
|
+
#
|
69
|
+
# @param id [String] The identifier of the server.
|
70
|
+
#
|
71
|
+
# @return [String] Server password.
|
72
|
+
#
|
73
|
+
def get_password(id)
|
74
|
+
response = conn.get 'api/servers/' + id + '/password'
|
75
|
+
@handle_http_error.call(response) unless response.status == 200
|
76
|
+
model = JSON.load(response.body)
|
77
|
+
model['value']
|
78
|
+
end
|
79
|
+
|
63
80
|
#
|
64
81
|
# Update a server
|
65
82
|
#
|
data/lib/Mailosaur/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailosaur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.2.
|
4
|
+
version: 7.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mailosaur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
203
|
- !ruby/object:Gem::Version
|
204
204
|
version: '0'
|
205
205
|
requirements: []
|
206
|
-
rubygems_version: 3.2.
|
206
|
+
rubygems_version: 3.2.15
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: The Mailosaur Ruby library
|