List Info

Thread: Feature Request: RubyGems namespace




Feature Request: RubyGems namespace
user name
2006-11-28 21:46:12
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
daesangmail.com">daesangmail.com



Feature Request: RubyGems namespace
user name
2006-11-29 05:30:13
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 < daesangmail.com">daesangmail.com> 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,&nbsp;: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
daesangmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">daesangmail.com




_______________________________________________
Rubygems-developers mailing list
rubyforge.org">Rubygems-developersrubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers




--
anatol (http://feeds.feedburner.com/apomozov-eng)
Feature Request: RubyGems namespace
user name
2006-11-29 09:15:10
On Nov 28, 2006, at 2130 , Anatol Pomozov wrote:

> - 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

I'd like to teach source_info_cache to remember other
sources it  
encounters.  This will take some work, though, and probably
will end  
up as an extra command like 'gem add_source'/'gem
remove_source'.  I  
haven't decided if it is worthwhile or not.

-- 
Eric Hodel - drbrainsegment7.net - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!

_______________________________________________
Rubygems-developers mailing list
Rubygems-developersrubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-develope
rs
Feature Request: RubyGems namespace
user name
2006-11-29 10:44:32
On 11/28/06, Dae San Hwang <daesangmail.com> wrote:
>
> 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? 

But isn't "copy" reusability one of the points of
plugins so that they
can be modifed per app if need be? Otherwise what's really
the
difference between a plugin and a normal library?

T.
_______________________________________________
Rubygems-developers mailing list
Rubygems-developersrubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-develope
rs
Feature Request: RubyGems namespace
user name
2006-11-29 12:49:32
On Nov 29, 2006, at 7:44 PM, TRANS wrote:

> On 11/28/06, Dae San Hwang <daesangmail.com> wrote:
>>
>> 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? 
>
> But isn't "copy" reusability one of the
points of plugins so that they
> can be modifed per app if need be? Otherwise what's
really the
> difference between a plugin and a normal library?

The way I think of plugins is that plugins are used to
modify/extend  
the existing classes provided by Rails. Libraries are used
for  
providing new classes but I don't see why RubyGems can't be
used for  
both libraries and plugins. If the need for customizing a
plugin for  
an application arises, maybe we can just unpack the plugin
gem and  
modify it in place?

Dae San Hwang
daesangmail.com
_______________________________________________
Rubygems-developers mailing list
Rubygems-developersrubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-develope
rs
Feature Request: RubyGems namespace
user name
2006-11-29 13:00:50
On 11/28/06, Dae San Hwang <daesangmail.com> 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
> daesangmail.com
>
>
>

Hi.  Have you seen Bruce Williams' work in this area?

http://codefluency.com/2006/11/29/rubygem-based-rai
ls-plugins

Chad
_______________________________________________
Rubygems-developers mailing list
Rubygems-developersrubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-develope
rs
Feature Request: RubyGems namespace
user name
2006-11-29 22:21:35
On Nov 29, 2006, at 10:00 PM, Chad Fowler wrote:

> On 11/28/06, Dae San Hwang <daesangmail.com> 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
>> daesangmail.com
>>
>>
>>
>
> Hi.  Have you seen Bruce Williams' work in this area?
>
> http://codefluency.com/2006/11/29/rubygem-based-rai
ls-plugins

Hi Chad.

What a timing! It is just what I had in my mind. 

Dae San
_______________________________________________
Rubygems-developers mailing list
Rubygems-developersrubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-develope
rs
[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )