Find a gem locationToolbox2015/4/1spec = Gem::Specification.find_by_name("cucumber") gem_root = spec.gem_dir Licence CC BY-SA 4.0