class Dependabot::Uv::FileUpdater::RequirementFileUpdater

def fetch_updated_dependency_files

def fetch_updated_dependency_files
  reqs = dependency.requirements.zip(dependency.previous_requirements)
  reqs.filter_map do |(new_req, old_req)|
    next if new_req == old_req
    file = get_original_file(new_req.fetch(:file)).dup
    updated_content =
      updated_requirement_or_setup_file_content(new_req, old_req)
    next if updated_content == file.content
    file.content = updated_content
    file
  end
end