The edited gem file is located in the same folder as the application I'm working on. The path is /Users/name/Ruby/Instagram. I need to install it, but I can't just use gem 'gem_name' install because it will install the general version from GitHub. How can I make it install the gem I just made changes to?
Also, I'm using RVM and can't get into the .rvm file to just drag and drop.
There are a couple of possibilities:
You could give the gem a different name.
You could give the gem a higher version number than the original one, then it will be preferred … until the original author releases an higher version.
You could set up your own repository and put it first in the search list (this is generally a good idea if you want to make private gems). Again, this only works if your version number is at least as high as the official one.
You could simply pass the path to the gem file to
gem install. But again, this will only work until the original author releases a version whose number is greater than yours.