How to install a downloaded Ruby gem file?

前端 未结 3 837
借酒劲吻你
借酒劲吻你 2021-01-30 21:10

How does \"gem install\" works ? It is not intuitive...

My gem is really here :

[root@localhost Téléchargement]# ll *.gem
-rw-rw-r-- 1 jean jean 16353818         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 21:34

    Just some more clarification in case you need to build / install your own gem file in this example foo-bar.

    gem build foo-bar.gemspec
    gem install --local foo-bar-0.1.0.gem
    

    I was researching how to do this and this post was first result :)

提交回复
热议问题