Is it possible to download a Ruby gem without installing it automatically?

前端 未结 3 2095
旧巷少年郎
旧巷少年郎 2021-02-07 06:15

When I download something using gem I\'d like to be able to just download the gem, and then choose whether or not I want to install it. I\'m asking this because I\'

相关标签:
3条回答
  • 2021-02-07 06:32

    Yes it is. Browse to the package's page on RubyGems.org and follow the download link.

    Eg. from https://rubygems.org/gems/pony to https://rubygems.org/downloads/pony-1.4.gem

    0 讨论(0)
  • 2021-02-07 06:44

    gem fetch

    So, something like $ gem fetch gosu ... this will leave gosu-0.7.14.gem in the current directory.

    This will work even if you have already installed it.

    0 讨论(0)
  • 2021-02-07 06:45

    Most of the gems are hosted on github.com right now, you just have to clone the repo.

    0 讨论(0)
提交回复
热议问题