quickmail 0.8.0 → 0.9.0

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: be15df541728491e4625944ff5e503cd1b8c755fa7f6728ef1eb2dd60d75f33b
4
- data.tar.gz: b7c89878a09405890699b3855ef09fcbc1f52ac9e3cbdf408f907d42feeea803
3
+ metadata.gz: 672837930a7b8f7312ccd8845761fe5e9d7db28bda156e913fd0880cc8c8da9f
4
+ data.tar.gz: 6ec1e7fd28578317984605b72e067e305b1fa22d94a7baedbc725a31ca30e531
5
5
  SHA512:
6
- metadata.gz: 8f76ab88eb8b03914c2ddb29af4e83e20acae8ebab1b3be91509f29ae1bedcb370a6ffbc4c95c2166221225859370a396b48ef09b9dfdae2e4fee3dbedafae40
7
- data.tar.gz: 390c1d3525eb8eb20afabba478ee5b1a101d4ae8d21d2e80ade5385c3f1e622493e99f480ffda1750be66e0838a8e00d8dd4da8afa5c63f3c8ea8ccb6202d2a7
6
+ metadata.gz: 4e707d689dc88ee66de7bfa5b9055e8a66c60aa3649e7a4425df2d8f2d0008fd9defc5cd42989cbad4846ec3ffab712ae9c26815f473a67e5979d675d1263de3
7
+ data.tar.gz: fad1200dd04b9008f36c5f78a50e18ff504b9fe1585a14863d98c4791f01505d03c697331a367006a8a7db3f83f3b19c4ee19da7e48e38eb49f5d4f7c54ef300
@@ -11,10 +11,10 @@ module Quickmail
11
11
  class QuickmailError < StandardError
12
12
  end
13
13
 
14
- class AuthenticationError < QuickmailError;
15
- end
16
- class ConfigurationError < QuickmailError;
17
- end
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" : "https://quickmailonline.com.au/api/"
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 ? payload.to_json : nil,
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 ? payload.to_json : nil,
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
@@ -1,3 +1,3 @@
1
1
  module Quickmail
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickmail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Dallimore