Hi Josef, On 27.Nov, 2009, at 13:49 , Marcus Rueckert wrote:
On 2009-11-27 12:55:48 +0100, Josef Reidinger wrote:
Yeah, thanks that is what I need. I think that plugins cannot be packed as gems. you think wrong. plugins can be packaged as gem very nicely zypper in rubygem-will_paginate
yes, plugins can be packaged (and loaded) as Rubygems. In fact, it's the preffered way to package Rails plugins as gems ("plugems") -- see "high-profile" ones as http://github.com/thoughtbot/clearance, http://github.com/mislav/will_paginate . It has several great advantages, as this: * enables you to use the code outside of Rails' context (Sinatra application, generic Ruby, etc) * allows you much cleaner dependencies declaration (`config.gem` in environment.rb|test.rb, etc) * makes possible to work with different versions of the "plugem" in a clean way * makes release management, versioning, etc really easy [see eg. http://github.com/technicalpickles/jeweler ] * allows clean dependency loading, see eg. the Bundler post from Yehuda Katz [http://yehudakatz.com/2009/11/03/using-the-new-gem-bundler-today/ ] In the case of WebYaST, I have adviced to convert all the plugins to Rubygems, precisely for this purpose, as you may remember. It would enable to get rid of messing with load paths to enable plugins elsewhere than in `vendor/plugins`, and generally would be *much* easier for vendors/users to build & load in their own code. Karel -- www.karmi.cz -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-ruby+help@opensuse.org