Forum: Ruby Gems Install All Dependencies Option

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
45196398e9685000d195ec626d477f0e?d=identicon&s=25 transfire (Guest)
on 2005-12-06 14:57
(Received via mailing list)
Is there a way, or can a way be made to install all dependencies
without it asking for each an everyone?

Thanks,
T.
A43430351a6d4fb6d61d000bd56ed19a?d=identicon&s=25 francois (Guest)
on 2005-12-06 15:06
(Received via mailing list)
gem install GEMNAME --include-dependencies
10d4acbfdaccb4eee687a428ca00a5d8?d=identicon&s=25 Jim Weirich (weirich)
on 2005-12-06 16:08
francois wrote:
> gem install GEMNAME --include-dependencies

For future reference:  http://docs.rubygems.org/read/chapter/10#page33
1fba4539b6cafe2e60a2916fa184fc2f?d=identicon&s=25 dblack (Guest)
on 2005-12-06 16:27
(Received via mailing list)
Hi --

On Tue, 6 Dec 2005, Trans wrote:

> Is there a way, or can a way be made to install all dependencies
> without it asking for each an everyone?

gem install -y

(equivalent to some longer one I can't remember :-)


David
__
David A. Black
dblack@wobblini.net

"Ruby for Rails", forthcoming from Manning Publications, April 2006!
45196398e9685000d195ec626d477f0e?d=identicon&s=25 transfire (Guest)
on 2005-12-06 16:27
(Received via mailing list)
Thanks!
Ec9233451f7c6ba37a83388b87a1f565?d=identicon&s=25 gavin (Guest)
on 2005-12-06 22:06
(Received via mailing list)
You know what would be nice?
An 'a' for 'all' option along with [yn] when choosing the first gem.

Or, for it to default to install dependencies.

As it is, my choices now are:
a) Remember to use a command-line argument for what I consider the
desired default behavior, or
b) As soon as a dependency crops up (and I have no idea if it's the
only one or 1/100) cancel out and then start over.
D8831c4665a164c6ce484003deb1afd6?d=identicon&s=25 guslist (Guest)
on 2005-12-07 00:17
(Received via mailing list)
There is also the UNIX way:

yes | gem install GEMNAME

Guillaume.
31e038e4e9330f6c75ccfd1fca8010ee?d=identicon&s=25 gregory.t.brown (Guest)
on 2005-12-07 06:26
(Received via mailing list)
On 12/6/05, Guillaume Marcais <guslist@free.fr> wrote:
> There is also the UNIX way:
>
> yes | gem install GEMNAME

wow... I didn't know that existed. Cool!
457cf540784a12ba2f30e06565a2c189?d=identicon&s=25 hgs (Guest)
on 2005-12-07 11:44
(Received via mailing list)
On Wed, 7 Dec 2005, Gregory Brown wrote:

> On 12/6/05, Guillaume Marcais <guslist@free.fr> wrote:
> > There is also the UNIX way:
> >
> > yes | gem install GEMNAME
>
> wow... I didn't know that existed. Cool!

It doesn't exist on all unix flavours.
If you haven't got it then:


#!/bin/sh
message=$*
while true
do
   echo ${message:=yes}
done


Or, more on topic for this list :-)


#!/usr/local/bin/ruby -w
if ARGV.length == 0
    message = ["yes"]
else
    message = ARGV
end
while true
   print "#{message.join(' ')}\n"
   # sleep 1
end


        Hugh
Bfcc9047bea80035a936648dc1912ec4?d=identicon&s=25 gsinclair (Guest)
on 2005-12-08 04:54
(Received via mailing list)
Hugh Sasse wrote:
> end
SCNR:

  #!/usr/local/bin/ruby -w
  ARGV[0] ||= "yes"
  message = ARGV.join(' ')
  loop do
    puts message
    # sleep 1
  end

Gavin
This topic is locked and can not be replied to.