sdb_service 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,11 @@ module SdbService
9
9
  end
10
10
 
11
11
  def deserialize_payload(payload)
12
- payload.is_a?(String) ? payload : JSON.parse(payload)
12
+ begin
13
+ return JSON.parse(payload)
14
+ rescue JSON::ParserError
15
+ return payload
16
+ end
13
17
  end
14
18
 
15
19
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 4
9
- version: 0.3.4
8
+ - 5
9
+ version: 0.3.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Derek Perez