Une bue wrote:
> what kind of var i've to setup in order to be able to write :
>
> require 'direct'
>
> and avoiding warnings of rubygems ???
>
> notice i don't want my "~/bin/rb" being in the PATH...

Two ways:

1) Copy direct.rb in the ruby lib / site_lib directory. You can see
where they are like this:

require 'rbconfig'
puts Config::CONFIG['rubylibdir']
puts Config::CONFIG['sitelibdir']

It is conventional (and easier to maintain) to put user scripts into
site_lib.

OR

2) Add something like this to every script where you want to require
direct.rb:

# $: is an alias for $LOAD_PATH
$: << '/some/dir' unless $:.include?('/some/dir')
require 'direct'

HTH,
Jordan