Mailinglist Archive: opensuse-bugs (3517 mails)

< Previous Next >
[Bug 705422] ruby-bindings: ruby module must be present in YCP moduledir

https://bugzilla.novell.com/show_bug.cgi?id=705422

https://bugzilla.novell.com/show_bug.cgi?id=705422#c6


--- Comment #6 from Duncan Mac-Vicar <dmacvicar@xxxxxxxx> 2011-09-07 09:25:13
UTC ---
Most ruby libraries does not offer the kind of API YCP expects for its modules
just like YaPI perl modules are not the typical perl module.

So a typical .rb file is not useful for YaST. It has to be a file with a module
containing module methods.

Therefore ruby code that is going to be available to other ruby code has to be
shipped in gems, like usual.

IMHO the module that is importable from YCP should be a separate .rb file
located in /usr/share/YaST/modules requiring the gem and exposing it with a
module. This may be even a separate package.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >