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

Commit 77972d2

Browse files
committed
make ruby pdsdk.send_event response hash use strings as keys for
consistency
1 parent cee3a0e commit 77972d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ruby/lib/pdsdk/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def send_event(api_key, raw_event, opts={})
5858
resp = http.request(req)
5959
logger.info "received response: #{resp}" # TODO remove
6060
# XXX check we get { "success": "ok" } back?
61-
{ code: resp.code.to_i, data: JSON.parse(resp.body) }
61+
{ 'code' resp.code.to_i, 'data' JSON.parse(resp.body) }
6262
end
6363

6464
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.4.0"
2+
VERSION = "0.5.0"
33
end

0 commit comments

Comments
 (0)