cfoundry 0.3.42 → 0.3.43

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,11 @@ module CFoundry
52
52
  private
53
53
 
54
54
  def parse_json(x)
55
- MultiJson.load(x, :symbolize_keys => true)
55
+ if x.empty?
56
+ raise MultiJson::DecodeError, "Empty JSON string"
57
+ end
58
+ MultiJson.load(x, :symbolize_keys => true)
59
+ end
56
60
  end
57
61
 
58
62
  def request(method, path, options = {})
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "0.3.42"
3
+ VERSION = "0.3.43"
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- hash: 71
4
+ hash: 69
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 42
10
- version: 0.3.42
9
+ - 43
10
+ version: 0.3.43
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-15 00:00:00 Z
18
+ date: 2012-10-16 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rest-client