nube 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/nube/base.rb +1 -1
  2. data/lib/nube/version.rb +1 -1
  3. metadata +6 -6
data/lib/nube/base.rb CHANGED
@@ -105,7 +105,7 @@ module Nube
105
105
  req['Authorization'] = "Token token=#{token(site_options[:identity])}"
106
106
  res = Net::HTTP.start(url.host, url.port) {|http| http.request(req) }
107
107
  if (res.code == "200")
108
- [JSON.parse(res.body, quirks_mode: true)].flatten.compact
108
+ [res.body.blank? ? {} : JSON.parse(res.body, quirks_mode: true)].flatten.compact
109
109
  else
110
110
  raise res.msg + res.code
111
111
  end
data/lib/nube/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nube
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nube
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - g.edera
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ~>
29
29
  - !ruby/object:Gem::Version
30
- hash: 458544670
30
+ hash: -50651362
31
31
  segments:
32
32
  - 5
33
33
  - x
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- hash: 458544670
45
+ hash: -50651362
46
46
  segments:
47
47
  - 5
48
48
  - x
@@ -57,7 +57,7 @@ dependencies:
57
57
  requirements:
58
58
  - - ~>
59
59
  - !ruby/object:Gem::Version
60
- hash: 458544670
60
+ hash: -50651362
61
61
  segments:
62
62
  - 5
63
63
  - x