James Parsons
James Parsons

Reputation: 6057

Ruby -- Programmatically Install Gem

I am somewhat new to ruby, and some of the times I have used it, I can not install Gems via the gem program. Looking through the ruby docs, I noticed that Ruby has a library for gems in its core. I also noticed that you can download a gem directly as a .gem file. Is there someway I can use ruby code to extract and install a gem. This would be extremely helpful seeming as programs like RailsInstaller seem to always be outdated.

Upvotes: 1

Views: 214

Answers (1)

mikewesthad
mikewesthad

Reputation: 68

If I understand you correctly, how about you download the .gem and install it locally using gem install? Check out: "How can I install a local gem?"

Upvotes: 2

Related Questions