dynect_rest 0.4.4 → 0.4.5

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: 4e3ece239e7a35225b681fea9e263ecc6fa33d38
4
- data.tar.gz: 5a2f1b86f1f946009f7b12467fbf0d8bde9667be
3
+ metadata.gz: c76956f031fe416df31adcce7120046bbefa4b10
4
+ data.tar.gz: bbdf0916a72c70bbfedb50da70efd6feb4885ae6
5
5
  SHA512:
6
- metadata.gz: 170afc2b7b9c6969e5e702c81a05d5450d855bf56f2c2ad07bc99ba6c3f05c253f05e0fead2c1335fdc58f5d7e4c4bfbd0f8a7b2682ae86ecfb38369ae3b552e
7
- data.tar.gz: eb8752f90fd7f70f03f3cdbec87ab80494d283e9c55599017e7fce5287675d36e3b8c30195cdac6533b5c57d6f850040d9d9d5fa6c82506154ae1c7efdf5a099
6
+ metadata.gz: dc798756194e6075342898da64d201ca908845f0bdc79e623f7926c51e4a2486cec07081ebd7f6e163b42de7f866ac0df228a4573a95d92547fd8bb879479eb7
7
+ data.tar.gz: 11f189851af46c068d0aff5a15131ae5d29ccdeab1e29e6a655e785a7c7787fbff02f05aaa0725a79fcd8c39694ba1bf60ea0eb24fd6473180855ff68cdc60b5
data/lib/dynect_rest.rb CHANGED
@@ -229,7 +229,8 @@ class DynectRest
229
229
  e.response.sub!(/^\/REST\//,'')
230
230
  get(e.response)
231
231
  end
232
- e.response
232
+ # Something went wrong, so escalate to caller
233
+ raise DynectRest::Exceptions::RequestFailed, "Request failed: #{e.inspect}"
233
234
  end
234
235
 
235
236
  parse_response(JSON.parse(response_body || '{}'))
@@ -156,7 +156,7 @@ class DynectRest
156
156
  def to_json
157
157
  {
158
158
  "ttl" => @ttl,
159
- "monitor" => @monitor.sort,
159
+ "monitor" => @monitor,
160
160
  "region" => {
161
161
  "region_code" => @region_code,
162
162
  "serve_count" => @serve_count,
@@ -17,5 +17,5 @@
17
17
  #
18
18
 
19
19
  class DynectRest
20
- VERSION='0.4.4'
20
+ VERSION='0.4.5'
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynect_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob