PROTON-781: Added the BaseHandler class to the Ruby reactive APIs. This is the Ruby analog to the Handler class from Python. It needed to be renamed, though, since it's in the Qpid::Proton namespace but would collide with the Qpid::Proton::Handler namespace.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/31791164 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/31791164 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/31791164 Branch: refs/heads/PROTON-781-ruby-reactor-apis Commit: 3179116427fcac4c4ff24cbae1e70965b09d955f Parents: b65cd5e Author: Darryl L. Pierce <mcpie...@gmail.com> Authored: Wed Feb 25 13:30:30 2015 -0500 Committer: Darryl L. Pierce <mcpie...@gmail.com> Committed: Mon Jun 8 13:57:51 2015 -0400 ---------------------------------------------------------------------- proton-c/bindings/ruby/lib/core/base_handler.rb | 31 ++++++++++++++++++++ proton-c/bindings/ruby/lib/qpid_proton.rb | 1 + 2 files changed, 32 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/31791164/proton-c/bindings/ruby/lib/core/base_handler.rb ---------------------------------------------------------------------- diff --git a/proton-c/bindings/ruby/lib/core/base_handler.rb b/proton-c/bindings/ruby/lib/core/base_handler.rb new file mode 100644 index 0000000..9a7ece4 --- /dev/null +++ b/proton-c/bindings/ruby/lib/core/base_handler.rb @@ -0,0 +1,31 @@ +#-- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +#++ + +module Qpid::Proton + + class BaseHandler + + # Override to process unhandled events. + # + def on_unhandled(method, *args) + end + + end + +end http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/31791164/proton-c/bindings/ruby/lib/qpid_proton.rb ---------------------------------------------------------------------- diff --git a/proton-c/bindings/ruby/lib/qpid_proton.rb b/proton-c/bindings/ruby/lib/qpid_proton.rb index e14ff9d..ef7f300 100644 --- a/proton-c/bindings/ruby/lib/qpid_proton.rb +++ b/proton-c/bindings/ruby/lib/qpid_proton.rb @@ -74,6 +74,7 @@ require "core/ssl_domain" require "core/ssl_details" require "core/ssl" require "core/transport" +require "core/base_handler" # Messenger API classes require "messenger/subscription" --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org