Ruby bindings: do not to expose a short name for an experimental type like
Svn::Client::XShelf for svn_client__shelf_t. A long name like
Svn::Ext::Client::Svn_client__shelf_t is still available.
* subversion/bindings/swig/ruby/svn/util.rb
(set_constants): Ignore a type name like 'svn_client__shelf_t'.
@@ -75,6 +75,8 @@ module Svn
target_name = $POSTMATCH
when /^SWIG_SVN_/
target_name = $POSTMATCH
+ when /^Svn_(?:#{target_mod.name.split("::").last.downcase}_)?_(.+)_t$/
+ # ignore private types
when /^Svn_(?:#{target_mod.name.split("::").last.downcase}_)?(.+)_t$/
target_name = to_ruby_class_name($1)
when /^Svn_(?:#{target_mod.name.split("::").last.downcase}_)?/
@@ -83,6 +85,7 @@ module Svn
# puts const
end
unless target_name.nil?
+ puts "### " + target_mod.name + ":: " + target_name
target_mod.const_set(target_name, ext_mod.const_get(const))
end
end
