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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f95dddbaf8b92a342f0eb75dd74d69e61cd18df3
4
- data.tar.gz: f1e3e6983291b61c3cc973065c18891e64749dbd
3
+ metadata.gz: 1125bf144dd02c25aa695251a3b7d928be225387
4
+ data.tar.gz: 2aaeb251d785f04b8d7808a694857a981284e178
5
5
  SHA512:
6
- metadata.gz: 1eb1b3f7a65352c38a84f4433e84a57a0b3121bbfd501e5ac7fdbf248fd56528456df6f930ed66015dcc2cbb386a8ea3a46a4f27646c396774176a9b75a11fc4
7
- data.tar.gz: 4d003afe7a35817345c179e9e0781834bc13f74363996317696d35b11132a3539bf31c5cf4eb1b8c6b173e7d6e7b1a45e0f207a23b3458db901e9743368c73b8
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
- Splicer.logger.debug "[SPLICER][DNSMADEEASY] method=#{args[:method]} url=#{args[:url]} request_headers=#{args[:headers]} payload=#{args[:payload]} response_headers=#{error.response.raw_headers}"
97
- raise Splicer::Errors::RequestError.new(error, {
98
- request: {
99
- method: args[:method],
100
- url: args[:url],
101
- headers: args[:headers],
102
- payload: args[:payload]
103
- },
104
- response: {
105
- message: error.response,
106
- headers: error.response.raw_headers
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
@@ -1,5 +1,5 @@
1
1
  module Splicer
2
2
  module DnsMadeEasy
3
- VERSION = '2.2.5'
3
+ VERSION = '2.2.6'
4
4
  end
5
5
  end
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.5
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.2.3
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,