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.
Asked
Active
Viewed 192 times
1

Cœur
- 37,241
- 25
- 195
- 267

James Parsons
- 6,097
- 12
- 68
- 108
-
Why can't you install gems using the `gem` command in the first place ? – Aug 12 '14 at 16:40
-
I don't know, at home it works, but other places, it times out. – James Parsons Aug 12 '14 at 16:41
-
Maybe your gem is just a bit outdated? Try `gem update --system` to install the last version. – Aug 12 '14 at 16:46
-
1@James_Parsons, If it is failing to install from your office, ask your IT department about the proxies they have. They might be blocking it. – Rahul Aug 12 '14 at 16:46
-
And you are connected to the internet at those places? – Brennan Aug 12 '14 at 16:46
-
1I think @Rahul is right, the proxies may be blocking – James Parsons Aug 12 '14 at 16:53
1 Answers
2
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?"

Community
- 1
- 1

mikewesthad
- 68
- 1
- 5