Gems Install All Dependencies Option

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

Thanks,
T.

gem install GEMNAME --include-dependencies

francois wrote:

gem install GEMNAME --include-dependencies

For future reference: http://docs.rubygems.org/read/chapter/10#page33

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 :slight_smile:

David
__
David A. Black
[email protected]

“Ruby for Rails”, forthcoming from Manning Publications, April 2006!

Thanks!

There is also the UNIX way:

yes | gem install GEMNAME

Guillaume.

On 12/6/05, Guillaume M. [email protected] wrote:

There is also the UNIX way:

yes | gem install GEMNAME

wow… I didn’t know that existed. Cool!

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.

On Wed, 7 Dec 2005, Gregory B. wrote:

On 12/6/05, Guillaume M. [email protected] 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 :slight_smile:

#!/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

Hugh S. wrote:

end
SCNR:

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

Gavin