summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2011-11-21 18:18:51 +0000
committerTed Ross <tross@apache.org>2011-11-21 18:18:51 +0000
commit101972afe4f983349634520ca336b758d8870145 (patch)
tree6eae8aca13adc5656650d2c70a7af1714092223f /cpp
parente37a9ec224b9598a31eaac3d2d2af4ea3309788e (diff)
downloadqpid-python-101972afe4f983349634520ca336b758d8870145.tar.gz
QPID-3537 - Rename the :block option to :sync in Sender.send so that it matches the C++ APIs.
Applied patch from Darryl Pierce. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1204633 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/bindings/qpid/ruby/lib/qpid/sender.rb4
-rw-r--r--cpp/bindings/qpid/ruby/test/test_sender.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/cpp/bindings/qpid/ruby/lib/qpid/sender.rb b/cpp/bindings/qpid/ruby/lib/qpid/sender.rb
index 5d59c20d7e..b8627401f8 100644
--- a/cpp/bindings/qpid/ruby/lib/qpid/sender.rb
+++ b/cpp/bindings/qpid/ruby/lib/qpid/sender.rb
@@ -34,8 +34,8 @@ module Qpid
# Sends a message.
def send(message, args = {})
- block = args[:block] || false
- @sender_impl.send message.message_impl, block
+ sync = args[:sync] || false
+ @sender_impl.send message.message_impl, sync
end
# Closes the sender.
diff --git a/cpp/bindings/qpid/ruby/test/test_sender.rb b/cpp/bindings/qpid/ruby/test/test_sender.rb
index 64348b9f72..4388648388 100644
--- a/cpp/bindings/qpid/ruby/test/test_sender.rb
+++ b/cpp/bindings/qpid/ruby/test/test_sender.rb
@@ -65,7 +65,7 @@ class TestSender < Test::Unit::TestCase
once.
with(message_impl, false)
- @sender.send @message, :block => false
+ @sender.send @message, :sync => false
end
def test_send_and_block
@@ -80,7 +80,7 @@ class TestSender < Test::Unit::TestCase
once.
with(message_impl, true)
- @sender.send @message, :block => true
+ @sender.send @message, :sync => true
end
def test_close