class Bundler::GemHelper

def rubygem_push(path)

def rubygem_push(path)
  if Pathname.new("~/.gem/credentials").expand_path.exist?
    sh("gem push '#{path}'")
    Bundler.ui.confirm "Pushed #{name} #{version} to rubygems.org."
  else
    raise "Your rubygems.org credentials aren't set. Run `gem push` to set them."
  end
end