diff options
| author | Ted Ross <tross@apache.org> | 2012-04-16 15:49:48 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2012-04-16 15:49:48 +0000 |
| commit | 405a5b8efe6d8d2e8831015d9263b28b487514e6 (patch) | |
| tree | be82a1c3f3df659392be769b68470b0d14ccdee2 /qpid/cpp/bindings/qmf | |
| parent | 3193673c93509917f6f6b6f48d3c2bfd1b8e63c9 (diff) | |
| download | qpid-python-405a5b8efe6d8d2e8831015d9263b28b487514e6.tar.gz | |
QPID-3924 - Remove colons from conditionals that cause problems in Ruby 1.9
Applied patch from Darryl Pierce.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1326659 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf')
| -rw-r--r-- | qpid/cpp/bindings/qmf/ruby/qmf.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/bindings/qmf/ruby/qmf.rb b/qpid/cpp/bindings/qmf/ruby/qmf.rb index 34d3255d8d..2cf7233d62 100644 --- a/qpid/cpp/bindings/qmf/ruby/qmf.rb +++ b/qpid/cpp/bindings/qmf/ruby/qmf.rb @@ -26,6 +26,7 @@ module Qmf # Pull all the TYPE_* constants into Qmf namespace. Maybe there's an easier way? Qmfengine.constants.each do |c| + c = c.to_s if c.index('TYPE_') == 0 or c.index('ACCESS_') == 0 or c.index('DIR_') == 0 or c.index('CLASS_') == 0 or c.index('SEV_') == 0 const_set(c, Qmfengine.const_get(c)) @@ -348,7 +349,7 @@ module Qmf @broker = kwargs[:broker] if kwargs.include?(:broker) @allow_sets = :true - if cls: + if cls @event_class = cls @impl = Qmfengine::Event.new(@event_class.impl) elsif kwargs.include?(:impl) @@ -434,7 +435,7 @@ module Qmf @allow_sets = :false @broker = kwargs[:broker] if kwargs.include?(:broker) - if cls: + if cls @object_class = cls @impl = Qmfengine::Object.new(@object_class.impl) elsif kwargs.include?(:impl) |
