From 930c9eba374da23368168ed3100bdd9762dc4ee2 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Wed, 22 Dec 2010 13:52:20 +0000 Subject: Two fixes in the Ruby QMF2 binding: 1) Fixed typos in the close methods for Console and Agent sessions 2) Fixed the makefile to properly distribute the qmf2.rb wrapper git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1051903 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qmf2/ruby/Makefile.am | 1 + cpp/bindings/qmf2/ruby/qmf2.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp') diff --git a/cpp/bindings/qmf2/ruby/Makefile.am b/cpp/bindings/qmf2/ruby/Makefile.am index 4a8b8e269e..f3695e0fbb 100644 --- a/cpp/bindings/qmf2/ruby/Makefile.am +++ b/cpp/bindings/qmf2/ruby/Makefile.am @@ -31,6 +31,7 @@ cqmf2.cpp: $(srcdir)/ruby.i $(srcdir)/../qmf2.i $(srcdir)/../../swig_ruby_typema rubylibarchdir = $(RUBY_LIB_ARCH) rubylibarch_LTLIBRARIES = cqmf2.la +dist_rubylib_DATA = qmf2.rb cqmf2_la_LDFLAGS = -avoid-version -module -shrext ".$(RUBY_DLEXT)" cqmf2_la_LIBADD = $(RUBY_LIBS) -L$(top_builddir)/src/.libs -lqmf2 $(top_builddir)/src/libqmf2.la diff --git a/cpp/bindings/qmf2/ruby/qmf2.rb b/cpp/bindings/qmf2/ruby/qmf2.rb index 5175fdc2b1..97e71c642b 100644 --- a/cpp/bindings/qmf2/ruby/qmf2.rb +++ b/cpp/bindings/qmf2/ruby/qmf2.rb @@ -101,7 +101,7 @@ module Qmf2 def set_agent_filter(filter) @impl.setAgentFilter(filter) end def open() @impl.open end - def close() @imp.close end + def close() @impl.close end def agents result = [] @@ -134,7 +134,7 @@ module Qmf2 def set_instance(val) @impl.setInstance(val) end def set_attribute(key, val) @impl.setAttribute(key, val) end def open() @impl.open end - def close() @imp.close end + def close() @impl.close end def register_schema(cls) @impl.registerSchema(cls.impl) end def add_data(data, name="", persistent=:false) -- cgit v1.2.1