Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

With Ruby, does "gem install" use "--include-dependencies"... just the doc is a little outdated?

Using Ruby on Rails, if I do a

gem help install

a part of it says:

-y, --include-dependencies       Unconditionally install the required
                                 dependent gems

[...]

Defaults:
  --both --version '>= 0' --rdoc --ri --no-force
  --no-test --install-dir c:/ruby/lib/ruby/gems/1.8

but if I do a

gem install --include-dependencies mysql

a line says:

INFO:  `gem install -y` is now default and will be removed
INFO:  use --ignore-dependencies to install only the gems you list

so looks like gem install always use --include-dependencies now? Just the docs of gem help install is a little outdated?

I am using the most recent gem:

C:\>gem -v
1.3.7

C:\>gem update --system
Updating RubyGems
Nothing to update

C:\>
like image 913
nonopolarity Avatar asked Jun 10 '10 12:06

nonopolarity


1 Answers

Yes, the documentation is a bit outdated.

gem install --include-dependencies option has been default for some time now.

like image 119
Slobodan Kovacevic Avatar answered Sep 28 '22 00:09

Slobodan Kovacevic