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")