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

Trans wrote:

···

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

Thanks,
T.

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
dblack@wobblini.net

"Ruby for Rails", forthcoming from Manning Publications, April 2006!

Thanks!

francois wrote:

gem install GEMNAME --include-dependencies

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

···

--
Posted via http://www.ruby-forum.com/\.

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.

There is also the UNIX way:

yes | gem install GEMNAME

Guillaume.

···

On Wed, 2005-12-07 at 00:25 +0900, David A. Black wrote:

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
dblack@wobblini.net

"Ruby for Rails", forthcoming from Manning Publications, April 2006!

wow... I didn't know that existed. Cool!

···

On 12/6/05, Guillaume Marcais <guslist@free.fr> wrote:

There is also the UNIX way:

yes | gem install GEMNAME

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

···

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!

Hugh Sasse wrote:

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

SCNR:

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

Gavin