How can I install a local gem?

前端 未结 9 1939
夕颜
夕颜 2020-11-28 00:47

If I download a .gem file to a folder in my computer, can I install it later using gem install?

9条回答
  •  余生分开走
    2020-11-28 01:15

    If you create your gems with bundler:

    # do this in the proper directory
    bundle gem foobar
    

    You can install them with rake after they are written:

    # cd into your gem directory
    rake install
    

    Chances are, that your downloaded gem will know rake install, too.

提交回复
热议问题