Created
February 4, 2013 06:00
-
-
Save havenwood/4705238 to your computer and use it in GitHub Desktop.
Install JSON gem from within Ruby (irc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems/dependency_installer' | |
install_dir = File.writable?(Gem.dir) ? Gem.dir : Gem.user_dir | |
Gem::DependencyInstaller.new(:install_dir => install_dir).new.install 'json' | |
Gem.refresh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment