class Bundler::Env

def self.chruby_version

def self.chruby_version
  return "not installed" unless Bundler.which("chruby-exec")
  `chruby-exec -- chruby --version`.
    sub(/.*^chruby: (#{Gem::Version::VERSION_PATTERN}).*/m, '\1')
end