This help site has been deprecated. Please send your requests to support@rubygems.org

Basic Gem 101 - Downloading a Gem?

toddwozny's Avatar

toddwozny

13 Nov, 2013 04:26 PM

So I have just start diving into Ruby on Rails and Gems. When I go to click on the Download button, I see it trys to open up the file and and gives me a bunch of gook. I see that I can save it, by right-clicking, but it gives me the opinion of save target as and defaults with an html ext. Since I am so new to this and you guys aren't, can I change the ext to .gem and not corrupt the file.

I need to manually download some gems. Transport them to another workstation and do a local install, just to give a quick background.

Thank You,

TW

  1. 1 Posted by AWS on 19 Nov, 2013 07:09 PM

    AWS's Avatar

    I'm no pro heck I barely qualify as novice but.... I DID IT! I was having problems with proxies and getting that gook when clicking the download link. I right clicked the link, Save Target As, Changed type to 'All Files" and changed .htm to .gem.

    I then moved the file to my Ruby Installation directory and used this command to install. gem install \path\to\my\file\mynew.gem

    It worked! However, it doesn't seem to handle obtaining and installing dependencies so when/if it errors you have to come back to rubygems.org and get the dependency... and sometimes that has dependecies and so on and so forth

  2. Support Staff 2 Posted by Eric Hodel on 19 Nov, 2013 07:12 PM

    Eric Hodel's Avatar

    You can use gem install -i ~/tmp/gems then take the ~/tmp/cache directory to another machine for installation. All the necessary dependencies will be there.

  3. 3 Posted by toddwozny on 19 Nov, 2013 09:20 PM

    toddwozny's Avatar

    Good job. Yeah, sorry I guess I should of updated my thread. Yes, changing the .ext does indeed work. But what I found was opening Firefox and doing the download worked successfully. I guess IE doesn't recognize the .gem extension as a download and just tried to save it as an html page. Firefox seems to recognize the download. Anyway, it works.

  4. Amanda Quaranto closed this discussion on 06 Mar, 2014 02:38 AM.

Discussions are closed to public comments.
If you need help with RubyGems.org please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac