gist v4.0.0 from master

Update gist to the latest (unreleased) version to compensate for the new GitHub API requirements. "v4.0.0-pre" is used for the version to allow for updating the formula when v4.0.0 final gets tagged.

Fixes #19819