priya
priya

Reputation: 26759

How do I find all gems which have a runtime dependency on a certain gem

How do I find all gems which have a runtime dependency on a certain gem.

e.g. How do I find all gems which are dependent on mongoid gem version 2.3.4

Upvotes: 4

Views: 684

Answers (2)

Tim Santeford
Tim Santeford

Reputation: 28161

You use the -R (uppercase R) switch with gem dependency:

gem dependency mongoid -v '2.3.4' -R 

outputs:

Gem mongoid-2.3.4
  activemodel (~> 3.1)
  bson_ext (~> 1.3, development)
  mocha (~> 0.9.12, development)
  mongo (~> 1.3)
  rdoc (~> 3.5.0, development)
  rspec (~> 2.6, development)
  tzinfo (~> 0.3.22)
  watchr (~> 0.6, development)

Upvotes: 3

Barry Jordan
Barry Jordan

Reputation: 2706

gem dependency mongoid -v 2.3.4

Documentation here http://docs.rubygems.org/read/chapter/10#page78

Upvotes: 0

Related Questions