summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/bindings/qpid/ruby/lib/qpid/sender.rb4
-rw-r--r--qpid/cpp/bindings/qpid/ruby/test/test_sender.rb4
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