Hi, Dae.

Very good idea. And I would like to see something similar in RubyGems. If
rails (rake, whatever) plugins would be shared as gems we could solve a lot
of problems for them:
- easy of instalation
- automatic updates just with 'ruby update' or 'ruby update
--source=rails_plugins_url'
- central repository (rubygems repo could be hosted on rubyonrails.org)
- only one copy of plugin in system


setting 'config.plugins = [:ujs, :active_form]'
Of course we need "frozing" specific version of plugin, lets say 0.3.5 for
Globalize, like we have for standard RubyGems

On 11/29/06, Dae San Hwang <[EMAIL PROTECTED]> wrote:

Hello,

Recently, I was thinking about a better way of implementing Rails plugin
system. There are two things that I don't particularly like about Rails
plugin system. One is the code duplication. You have to install same plugin
codes over and over for all of your Rails applications. The other problem is
that you have to learn to use yet another utility(script/plugin) and its
repository is not centrally managed.

So, I was thinking if RubyGems have a namespace built in, we could make
all Rails Plugins into gems under 'rails' namespace.

To install 'active_form' Rails plugin on the system, you could simply use
'gem' utility like 'gem install rails/active_form'. To use this plugin in a
rails application, you could just turn on the plugin in
'config/environment.rb' file by setting 'config.plugins =
[:ujs, :active_form]'.

I think namespace functionality can be useful for other ruby
applications/libraries like 'rake', as well. Can this be considered? :)

Dae San Hwang
[EMAIL PROTECTED]




_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers




--
anatol (http://feeds.feedburner.com/apomozov-eng)
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to