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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ovh/rest.rb +1 -1
  3. data/ovh-rest.gemspec +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2331e709b1085cc3f1b25eb8d15bb95d536f040
4
- data.tar.gz: e97772d95ac3e3a01987e06358c4c81fd67eee68
3
+ metadata.gz: a66637190c2874f1ea1fd954952501b2682d7848
4
+ data.tar.gz: 5c744794610625a3103e0e764241cf2ea0f48fca
5
5
  SHA512:
6
- metadata.gz: 712411dae18ac731308b731543bd731dc2cfaedd85d6c535fd2061ee61e8b320fb460d6f33e8783f673328a78fa6d2d838109c9a9f04b9b02fe29539c268eb31
7
- data.tar.gz: a42c6a7d3b43ce4ec52742e477321734e632884787f5e42cd92c75c31578468be409db8fcebf33520ac710dcd923adc418c2e6f2d4b831f8383c9f620fa1085e
6
+ metadata.gz: 349e256e9db4c8389022a3512fd9e3c81f3f936da4bf370aa5acf8e440db7f79d13badd0837e254968a27b01ce201e046c4ab0f981c76eaa9bc5477b2ca2a146
7
+ data.tar.gz: 2d4f8a608452e5f1430300a092e2c5c2f90697c754eb7c9d74373cb02d96972073b24431dc07b30a2041ec2eab977dd607f34d294d45f2ac63e8d36b1bb7a37f
@@ -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"]}"
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "ovh-rest"
4
- spec.version = "0.0.4"
4
+ spec.version = "0.0.5"
5
5
  spec.authors = ["Jonathan Amiez"]
6
6
  spec.email = ["jonathan.amiez@fotolia.com"]
7
7
  spec.description = "OVH REST API interface"
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
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-01-13 00:00:00.000000000 Z
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.2.2
47
+ rubygems_version: 2.4.5
48
48
  signing_key:
49
49
  specification_version: 4
50
50
  summary: Manage OVH services from Ruby