Gems Install All Dependencies Option


#1

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

Thanks,
T.


#2

gem install GEMNAME --include-dependencies


#3

francois wrote:

gem install GEMNAME --include-dependencies

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


#4

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
removed_email_address@domain.invalid

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


#5

Thanks!


#6

There is also the UNIX way:

yes | gem install GEMNAME

Guillaume.


#7

On 12/6/05, Guillaume M. removed_email_address@domain.invalid wrote:

There is also the UNIX way:

yes | gem install GEMNAME

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


#8

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.


#9

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

On 12/6/05, Guillaume M. removed_email_address@domain.invalid 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

#10

Hugh S. wrote:

end
SCNR:

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

Gavin