nonopolarity
nonopolarity

Reputation: 150996

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

Upvotes: 14

Views: 26785

Answers (2)

ignisavisintl
ignisavisintl

Reputation: 117

The command is now -include-dependencies, not --include-dependencies I have used it this way:

I have tried to install compass 0.12.3 dependencies and I have done it with this command, but this installed only dependencies not compass with them

gem install compass -v 0.12.3 -include-dependencies

Upvotes: 6

Slobodan Kovacevic
Slobodan Kovacevic

Reputation: 6888

Yes, the documentation is a bit outdated.

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

Upvotes: 14

Related Questions