# File lib/commands/owner.rb, line 68
  def show_owners(name)
    require 'json/pure' unless defined?(JSON::JSON_LOADED)

    response = make_request(:get, "gems/#{name}/owners.json") do |request|
      request.add_field("Authorization", api_key)
    end

    case response
    when Net::HTTPSuccess
      begin
        owners = JSON.parse(response.body)

        say "Owners for gem: #{name}"
        owners.each do |owner|
          say "- #{owner['email']}"
        end
      rescue JSON::ParserError => json_error
        say "There was a problem parsing the data: #{json_error}"
        terminate_interaction
      end
    when Net::HTTPNotFound
      say "This gem is currently not hosted on Gemcutter."
      terminate_interaction
    when Net::HTTPUnauthorized
      say "You do not have permission to manage this gem."
      terminate_interaction
    else
      say "There was a problem processing your request."
      terminate_interaction
    end
  end