From: "Étienne Vallette d'Osia" Date: 2011-10-06T21:43:25+09:00 Subject: Re: a dream: gem require auto-installer On 06/10/2011 12:37, Regis d'Aubarede wrote:
Hello,

When I develop some administration scripts and distribute them to
my colleague, we often encounter issues: I must write a readme or
an email for explain what to do for use them:
mkdir, gem install …

Why 'require X' instruction do not make a  'gem install X' when
the gem is not installed ?

With (red) Shoes, we got  "Shoes.setup { gem 'json_pure' } ", this is
really useful for non-native gem !

Sincerely,

Regis d'Aubarede
http://regisaubarede.posterous.com/

Hello,

IMHO a such tool would be really dangerous, and not so useful:
the best option is to allow users to install everything in 1 command.

You should try Bundler : even if you don't want to use it in your
application, you can provide a Gemfile (and, even better, a
Gemfile.lock) then user will be able to use it with "bundle install."

An other way is to create a rake task which does to job.

Regards,

--
Étienne Vallette d'Osia