humbargs
12/2/2013 - 9:10 PM

Ruby: Gem Utilities

Ruby: Gem Utilities

# Determine the location of a gem that has been installed
spec = Gem::Specification.find_by_name("cucumber")
gem_root = spec.gem_dir
gem_lib = File.join(gem_root, "lib")