diff options
| author | Ted Ross <tross@apache.org> | 2011-11-21 18:18:51 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2011-11-21 18:18:51 +0000 |
| commit | 13217976bbdaed590e84c85e289e532beedd6840 (patch) | |
| tree | 8a746900a8a19868b6d92acb494d79084ef66362 /qpid/cpp | |
| parent | 6a87aae37fd453e320240c64a4629764dd302b3f (diff) | |
| download | qpid-python-13217976bbdaed590e84c85e289e532beedd6840.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@1204633 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/bindings/qpid/ruby/lib/qpid/sender.rb | 4 | ||||
| -rw-r--r-- | qpid/cpp/bindings/qpid/ruby/test/test_sender.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/bindings/qpid/ruby/lib/qpid/sender.rb b/qpid/cpp/bindings/qpid/ruby/lib/qpid/sender.rb index 5d59c20d7e..b8627401f8 100644 --- a/qpid/cpp/bindings/qpid/ruby/lib/qpid/sender.rb +++ b/qpid/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/qpid/cpp/bindings/qpid/ruby/test/test_sender.rb b/qpid/cpp/bindings/qpid/ruby/test/test_sender.rb index 64348b9f72..4388648388 100644 --- a/qpid/cpp/bindings/qpid/ruby/test/test_sender.rb +++ b/qpid/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 |
