nexpose 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nexpose/ajax.rb +2 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8935aa7f34673791e16d2ef7f0018d4b426f868
4
- data.tar.gz: 3dfda1fcff2281812f79c257ef588c5db6cb47b3
3
+ metadata.gz: 00359dd620e92f676ddd3fa63454edcde20be901
4
+ data.tar.gz: e4232827f4eb8c05c0f3f384e9d15dc1c7b21de5
5
5
  SHA512:
6
- metadata.gz: 31e32bae88bbd50208c24c224656c613cf9936643a2e5551d3b5c686235063693994718372064b0e3f68f7c8419b3830bb136304b4751c00b5fbfc4ae31e066d
7
- data.tar.gz: 2ea765ea307bda92fdd33d9c50cf58a498edbb7be00c720693c3bd2a7ecadfa25e658f803d942e79149105f76488e6bbd4c635a4ed0c43eeacff9c3bb27225f2
6
+ metadata.gz: 06b52c03d3a839c289bc140c5c8c741a5119040681bdb7f4946ea9dc26d11f9e518c8ec5717a525fa072c385e7763939c268c45cbe87af9f07f7800f7071521f
7
+ data.tar.gz: 35fa17bad2fa38cb8333510ea62e5cd63a90051726656531b05b024bfc5f43766efa77c71b6a31fcfd6028a2293f1a43e3a99a96f7f700c0a543338a111688e1
data/lib/nexpose/ajax.rb CHANGED
@@ -118,6 +118,8 @@ module Nexpose
118
118
  case response
119
119
  when Net::HTTPOK
120
120
  response.body
121
+ when Net::HTTPCreated
122
+ response.body
121
123
  else
122
124
  req_type = request.class.name.split('::').last.upcase
123
125
  raise Nexpose::APIError.new(response, "#{req_type} request to #{request.path} failed. #{request.body}")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexpose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - HD Moore