Find a gem location

spec = Gem::Specification.find_by_name("cucumber")
gem_root = spec.gem_dir
Licence  CC BY-SA 4.0
Mastodon