On Jan 23, 2008, at 3:47 PM, Alejandro Vartabedian wrote:

> bueno, creo que encontré la respuesta a esta y otras dudas:
>
> 4.2 Using Explicit Versions
> http://docs.rubygems.org/read/chapter/4#page71

Ojo que require_gem no va más.

La forma ahora sería:

$ irb -rubygems
irb(main):001:0> gem('activesupport', '>= 1.4')
=> true

Esto hace que los directorios correspondientes de la gema queden en el  
LOAD_PATH.

irb(main):002:0> require 'activesupport'
=> true

Este require anda porque hay un archivo activesupport.rb en el  
directorio de la gema, que está en el LOAD_PATH.
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a