def get_metadata(session, name):
    """
    Gets meta data from pypi for the given package.
    :param session: requests Session instance
    :param name: str, package
    :return: dict, meta data
    """
    resp = session.get("https://rubygems.org/api/v1/gems/{}.json".format(name))
    if resp.status_code == 200:
        return resp.json()
    return {}