quickmail 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/quickmail.rb +6 -6
- data/lib/quickmail/authentication.rb +1 -1
- data/lib/quickmail/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 672837930a7b8f7312ccd8845761fe5e9d7db28bda156e913fd0880cc8c8da9f
|
4
|
+
data.tar.gz: 6ec1e7fd28578317984605b72e067e305b1fa22d94a7baedbc725a31ca30e531
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e707d689dc88ee66de7bfa5b9055e8a66c60aa3649e7a4425df2d8f2d0008fd9defc5cd42989cbad4846ec3ffab712ae9c26815f473a67e5979d675d1263de3
|
7
|
+
data.tar.gz: fad1200dd04b9008f36c5f78a50e18ff504b9fe1585a14863d98c4791f01505d03c697331a367006a8a7db3f83f3b19c4ee19da7e48e38eb49f5d4f7c54ef300
|
data/lib/quickmail.rb
CHANGED
@@ -11,10 +11,10 @@ module Quickmail
|
|
11
11
|
class QuickmailError < StandardError
|
12
12
|
end
|
13
13
|
|
14
|
-
class AuthenticationError < QuickmailError;
|
15
|
-
|
16
|
-
class ConfigurationError < QuickmailError;
|
17
|
-
|
14
|
+
class AuthenticationError < QuickmailError; end
|
15
|
+
|
16
|
+
class ConfigurationError < QuickmailError; end
|
17
|
+
|
18
18
|
class ApiRequestError < QuickmailError
|
19
19
|
attr_reader :response_code, :response_headers, :response_body
|
20
20
|
|
@@ -46,7 +46,7 @@ module Quickmail
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def api_base
|
49
|
-
Quickmail.test_mode ? "https://quickmailonline.com.au/api/test"
|
49
|
+
Quickmail.test_mode ? "https://quickmailonline.com.au/api/test" : "https://quickmailonline.com.au/api/"
|
50
50
|
end
|
51
51
|
|
52
52
|
def request(method, resource, params = {})
|
@@ -71,7 +71,7 @@ module Quickmail
|
|
71
71
|
RestClient::Request.new({
|
72
72
|
method: method,
|
73
73
|
url: Quickmail.api_base + ss_api_version + '/' + resource,
|
74
|
-
payload: payload
|
74
|
+
payload: payload,
|
75
75
|
headers: headers
|
76
76
|
}).execute do |response, request, result|
|
77
77
|
if response.code != 200
|
@@ -8,7 +8,7 @@ module Quickmail
|
|
8
8
|
RestClient::Request.new({
|
9
9
|
method: :post,
|
10
10
|
url: Quickmail.api_base + '/token',
|
11
|
-
payload: payload
|
11
|
+
payload: payload,
|
12
12
|
headers: {content_type: "application/x-www-form-urlencoded"}
|
13
13
|
}).execute do |response, request, result|
|
14
14
|
if response.code != 201
|
data/lib/quickmail/version.rb
CHANGED