module Attractor # from https://github.com/prontolabs/pronto/blob/master/lib/pronto/gem_names.rb class GemNames def to_a gems.map { |gem| gem.name.sub(/^pronto-/, '') }.uniq.sort end private def gems Gem::Specification.find_all.select do |gem| if gem.name =~ /^pronto-/ true elsif gem.name != 'pronto' runner_path = File.join(gem.full_gem_path, "lib/pronto/#{gem.name}.rb") File.exist?(runner_path) end end end end end