def METHOD_NAME(name):
    ruby_name = name[5:]
    req = requests.get('https://rubygems.org/api/v1/gems/{name}.json'.format(name=ruby_name))  # ruby json api ^-^
    if req.ok:
        current_version = get_current_version(name)
        available_version = str(json.loads(req.text).get('version'))
        if available_version != current_version:
            url = str(json.loads(req.text).get('gem_uri'))
            update_pkgbuild(name, url, current_version, available_version)