From aaba7675e191b8120e8590750cfe2feb747b74d0 Mon Sep 17 00:00:00 2001 From: "Darryl L. Pierce" Date: Tue, 14 May 2013 21:26:34 +0000 Subject: 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++. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1482597 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qpid/ruby/examples/spout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp') diff --git a/cpp/bindings/qpid/ruby/examples/spout.rb b/cpp/bindings/qpid/ruby/examples/spout.rb index 71c04d8709..f7170f146b 100644 --- a/cpp/bindings/qpid/ruby/examples/spout.rb +++ b/cpp/bindings/qpid/ruby/examples/spout.rb @@ -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? -- cgit v1.2.1