You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mc...@apache.org on 2013/05/14 23:26:34 UTC
svn commit: r1482597 -
/qpid/trunk/qpid/cpp/bindings/qpid/ruby/examples/spout.rb
Author: mcpierce
Date: Tue May 14 21:26:34 2013
New Revision: 1482597
URL: http://svn.apache.org/r1482597
Log:
QPID-4842: Ruby spout.rb calls wrong API to set message properties.
Previously it was calling the read-only API (the one that returns an
array created from the underlying C++ code) rather than the method to
actually set values in the underlying C++.
Modified:
qpid/trunk/qpid/cpp/bindings/qpid/ruby/examples/spout.rb
Modified: qpid/trunk/qpid/cpp/bindings/qpid/ruby/examples/spout.rb
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qpid/ruby/examples/spout.rb?rev=1482597&r1=1482596&r2=1482597&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/qpid/ruby/examples/spout.rb (original)
+++ qpid/trunk/qpid/cpp/bindings/qpid/ruby/examples/spout.rb Tue May 14 21:26:34 2013
@@ -106,7 +106,7 @@ session = connection.create_session
sender = session.create_sender options[:address]
message = Qpid::Messaging::Message.new
-options[:properties].each_key {|key| message.properties[key] = options[:properties][key]}
+options[:properties].each_key {|key| message[key] = options[:properties][key]}
(1..options[:count]).each do |count|
if !options[:mapped].keys.empty?
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org