user@domain.invalid
10/16/2007 8:40:00 PM
le 16/10/2007 15:41, Tim Hunter nous a dit:
> Zouplaz wrote:
>> 2) require_gem puts a warning (use gem instead), and using gem
>> 'ruby-breakpoint' makes breakpoint command to be unknown :
>> undefined local variable or method `breakpoint' for main:Object
>> (NameError)
>
> require_gem is obsolete and didn't do what you think it did. It was not
> a synonym for "require", it was a way to specify that you want a
> specific version of a gem, which is what the "gem" method does now. In
> the past "require_gem" could have the side-effect of actually requiring
> the gem, but the "gem" method does not have that side-effect.
>
> To require a gem, use "require". Nothing else.
Thanks, I will stick to "require" definitely ;-)