splicer-dns_made_easy 2.2.5 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/splicer/dns_made_easy/client.rb +25 -13
- data/lib/splicer/dns_made_easy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1125bf144dd02c25aa695251a3b7d928be225387
|
4
|
+
data.tar.gz: 2aaeb251d785f04b8d7808a694857a981284e178
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fb0c203832692613693bf2d663f7ee40716a3afb1425531941f81de30c07ebfdaff388907d50152cde64faea2033cb8c4d6cfff254ebfabebc1b3533ce220da
|
7
|
+
data.tar.gz: cea8f20dd0ec984e6b7515154b0d6068dc457e4722dedb2109997a65557f872f4301640ee9d7ba310616e8aa2154fe4bd6ff891f7d7a42559e83a31ec0efbda5
|
@@ -93,19 +93,31 @@ module Splicer
|
|
93
93
|
Splicer.logger.debug "[SPLICER][DNSMADEEASY] method=#{args[:method]} url=#{args[:url]} headers=#{args[:headers]} payload=#{args[:payload]} response=#{response}"
|
94
94
|
response
|
95
95
|
rescue RestClient::Exception => error
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
96
|
+
if error.response
|
97
|
+
Splicer.logger.debug "[SPLICER][DNSMADEEASY] method=#{args[:method]} url=#{args[:url]} request_headers=#{args[:headers]} payload=#{args[:payload]} response_headers=#{error.response.raw_headers}"
|
98
|
+
raise Splicer::Errors::RequestError.new(error, {
|
99
|
+
request: {
|
100
|
+
method: args[:method],
|
101
|
+
url: args[:url],
|
102
|
+
headers: args[:headers],
|
103
|
+
payload: args[:payload]
|
104
|
+
},
|
105
|
+
response: {
|
106
|
+
message: error.response,
|
107
|
+
headers: error.response.raw_headers
|
108
|
+
}
|
109
|
+
})
|
110
|
+
else
|
111
|
+
Splicer.logger.debug "[SPLICER][DNSMADEEASY] method=#{args[:method]} url=#{args[:url]} request_headers=#{args[:headers]} payload=#{args[:payload]}"
|
112
|
+
raise Splicer::Errors::RequestError.new(error, {
|
113
|
+
request: {
|
114
|
+
method: args[:method],
|
115
|
+
url: args[:url],
|
116
|
+
headers: args[:headers],
|
117
|
+
payload: args[:payload]
|
118
|
+
}
|
119
|
+
})
|
120
|
+
end
|
109
121
|
end
|
110
122
|
|
111
123
|
# Processes the payload to see if it needs to be turned in to JSON
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: splicer-dns_made_easy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Johnston
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.4.8
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Use this gem together with Splicer if you are using multiple DNS providers,
|