How do I find out which gem has a specific dependency?

后端 未结 2 566
我在风中等你
我在风中等你 2020-12-07 15:20

I commented out a gem, but \'bundle install\' still won\'t run. How do I find out which gem has a dependency on sys-proctable?

$ bundle install
Fetching gem         


        
相关标签:
2条回答
  • 2020-12-07 16:07

    I know this answer includes a link, but this is not a link specific answer

    You can always check the reverse dependencies of a gem on rubygems.org. There's a link on the right side panel on the website.

    Or you can visit the site

    https://rubygems.org/gems/{gem_name}/reverse_dependencies

    So, in your case

    https://rubygems.org/gems/sys-proctable/reverse_dependencies

    0 讨论(0)
  • 2020-12-07 16:14

    In the bash shell you can do:

    gem dependency name_of_the_gem --reverse-dependencies

    For instance:

    $ gem dependency activesupport --reverse-dependencies                        
    Gem activesupport-2.3.14
    Used by
    actionpack-2.3.14 (activesupport (= 2.3.14))
    activerecord-2.3.14 (activesupport (= 2.3.14))
    activeresource-2.3.14 (activesupport (= 2.3.14))
    
    0 讨论(0)
提交回复
热议问题