def determine_api_version(new_file_content: nil, old_file_content: nil)
      # we know 100% there is a difference, so no need to compare
      unless old_file_content.length >= new_file_content.length
        old_api_version = find_api_version_string(content: old_file_content)

        return DEFAULT_API_VERSION_STRING if old_api_version.nil?

        return increment_api_version_string(api_version_string: old_api_version)
      end

      relevant_old_file_content = old_file_content[0..(new_file_content.length - 1)]

      if relevant_old_file_content == new_file_content
        # no changes at all, just return the same old api version string
        return find_api_version_string(content: old_file_content)
      else
        # there are differences, so calculate a new api_version_string
        old_api_version = find_api_version_string(content: old_file_content)

        return DEFAULT_API_VERSION_STRING if old_api_version.nil?

        return increment_api_version_string(api_version_string: old_api_version)
      end
    end
def determine_api_version(new_file_content: nil, old_file_content: nil)
      # we know 100% there is a difference, so no need to compare
      unless old_file_content.length >= new_file_content.length
        old_api_version = find_api_version_string(content: old_file_content)

        return DEFAULT_API_VERSION_STRING if old_api_version.nil?

        return increment_api_version_string(api_version_string: old_api_version)
      end

      relevant_old_file_content = old_file_content[0..(new_file_content.length - 1)]

      if relevant_old_file_content == new_file_content
        # no changes at all, just return the same old api version string
        return find_api_version_string(content: old_file_content)
      else
        # there are differences, so calculate a new api_version_string
        old_api_version = find_api_version_string(content: old_file_content)

        return DEFAULT_API_VERSION_STRING if old_api_version.nil?

        return increment_api_version_string(api_version_string: old_api_version)
      end
    end
compares the new file content to the old and figures out what api_version the new content should be