Repository: qpid-proton Updated Branches: refs/heads/master a04193d2c -> b57f45d30
PROTON-746: Fix encoding a Ruby symbol into a message body. The symbol needs to be converted to a string before being encoded. Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/b57f45d3 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/b57f45d3 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/b57f45d3 Branch: refs/heads/master Commit: b57f45d30b2643e2275219c286eab79b5efa76a2 Parents: a04193d Author: Darryl L. Pierce <[email protected]> Authored: Fri Nov 14 16:09:52 2014 -0500 Committer: Darryl L. Pierce <[email protected]> Committed: Fri Nov 14 17:29:11 2014 -0500 ---------------------------------------------------------------------- proton-c/bindings/ruby/lib/qpid_proton/mapping.rb | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/b57f45d3/proton-c/bindings/ruby/lib/qpid_proton/mapping.rb ---------------------------------------------------------------------- diff --git a/proton-c/bindings/ruby/lib/qpid_proton/mapping.rb b/proton-c/bindings/ruby/lib/qpid_proton/mapping.rb index 778f936..836bcd9 100644 --- a/proton-c/bindings/ruby/lib/qpid_proton/mapping.rb +++ b/proton-c/bindings/ruby/lib/qpid_proton/mapping.rb @@ -112,6 +112,9 @@ module Qpid # :nodoc: class << STRING def put(data, value) + # if we have a symbol then convert it to a string + value = value.to_s if value.is_a?(Symbol) + isutf = false if value.is_a?(Qpid::Proton::UTFString) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
