subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1842222 - /subversion/trunk/subversion/bindings/swig/ruby/svn/util.rb
Date Fri, 28 Sep 2018 09:19:59 GMT
Author: julianfoad
Date: Fri Sep 28 09:19:59 2018
New Revision: 1842222

URL: http://svn.apache.org/viewvc?rev=1842222&view=rev
Log:
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'.

Modified:
    subversion/trunk/subversion/bindings/swig/ruby/svn/util.rb

Modified: subversion/trunk/subversion/bindings/swig/ruby/svn/util.rb
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/ruby/svn/util.rb?rev=1842222&r1=1842221&r2=1842222&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/ruby/svn/util.rb (original)
+++ subversion/trunk/subversion/bindings/swig/ruby/svn/util.rb Fri Sep 28 09:19:59 2018
@@ -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



Mime
View raw message