Skip to content
This repository was archived by the owner on Nov 9, 2025. It is now read-only.

Commit d85d28f

Browse files
committed
let clients parse body
1 parent f43367f commit d85d28f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ruby/lib/pdsdk/base.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ def send_event(api_key, raw_event, opts={})
5757
req.body = payload
5858
resp = http.request(req)
5959
logger.info "received response: #{resp}" # TODO remove
60-
# XXX check we get { "success": "ok" } back?
61-
{ 'code' => resp.code.to_i, 'data' => JSON.parse(resp.body) }
60+
{ 'code' => resp.code.to_i, 'body' => resp.body }
6261
end
6362

6463
def load_metadata(metadata_path, merge_data)

ruby/lib/pdsdk/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Pdsdk
2-
VERSION = "0.6.0"
2+
VERSION = "0.7.0"
33
end

0 commit comments

Comments
 (0)