ovh-rest 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ovh/rest.rb +1 -1
- data/ovh-rest.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a66637190c2874f1ea1fd954952501b2682d7848
|
4
|
+
data.tar.gz: 5c744794610625a3103e0e764241cf2ea0f48fca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 349e256e9db4c8389022a3512fd9e3c81f3f936da4bf370aa5acf8e440db7f79d13badd0837e254968a27b01ce201e046c4ab0f981c76eaa9bc5477b2ca2a146
|
7
|
+
data.tar.gz: 2d4f8a608452e5f1430300a092e2c5c2f90697c754eb7c9d74373cb02d96972073b24431dc07b30a2041ec2eab977dd607f34d294d45f2ac63e8d36b1bb7a37f
|
data/lib/ovh/rest.rb
CHANGED
@@ -64,7 +64,7 @@ module OVH
|
|
64
64
|
http = REST.build_http_object(uri.host, uri.port)
|
65
65
|
http.use_ssl = true
|
66
66
|
response = http.request(request)
|
67
|
-
result = JSON.parse(response.body)
|
67
|
+
result = response.body == "null" ? nil : JSON.parse(response.body)
|
68
68
|
|
69
69
|
unless response.is_a?(Net::HTTPSuccess)
|
70
70
|
raise RESTError, "Error querying #{endpoint}: #{result["message"]}"
|
data/ovh-rest.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovh-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Amiez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: OVH REST API interface
|
14
14
|
email:
|
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
44
|
version: '0'
|
45
45
|
requirements: []
|
46
46
|
rubyforge_project:
|
47
|
-
rubygems_version: 2.
|
47
|
+
rubygems_version: 2.4.5
|
48
48
|
signing_key:
|
49
49
|
specification_version: 4
|
50
50
|
summary: Manage OVH services from Ruby
|