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
# Loads the specified gem from RVM's current @global gemset if using | |
# Bundler and not included in the current Gemfile. Falls back | |
# accordingly if not using Bundler or RVM. | |
# | |
# @note Doesn't load gems not loaded by Bundler if using Bundler and | |
# not using RVM, or if gem is located somewhere other than the | |
# @global gemset. | |
# @param [String] The gem to require | |
# @raise [LoadError] If the gem couldn't be loaded | |
# Adapted from <https://gist.github.com/794915> |