[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Ruby bindings failure, perhaps related to __?

From: Julian Foad <julianfoad_at_apache.org>
Date: Thu, 27 Sep 2018 17:09:44 +0100

Julian Foad wrote:
> subversion/bindings/swig/ruby/svn/util.rb:40:in `block in
> to_ruby_class_name': undefined method `downcase' for nil:NilClass

I learnt enough Ruby to fix it in r1842107, nominated for backport to 1.11.

The problem was it was trying to convert a struct type name like
to a CamelCase Ruby class name like
but it couldn't handle the extra underscore.

We had to decide what the class name should be: "Shelf" or "_Shelf" or "XShelf" or "X_Shelf" or something like "svn_client__shelf" or other variants.

I found Ruby doesn't allow a class name to begin with an underscore, and we didn't want to pollute the "stable" namespace with an unstable API by using just "Shelf", so in the end I chose "XShelf":


We should treat this as an interim solution and examine what we are doing with the other language bindings and potentially change to a more widely consistent solution later.

- Julian
Received on 2018-09-27 18:09:53 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.