I think that if you use Google Calendar Quickstart for Ruby, I think you should delete your credentials at the specified path ... I tried and it works well ... You can see where the credentials are entered here
CREDENTIALS_PATH = File.join(Dir.home, '.credentials', "calendar-ruby-quickstart.yaml")
In the home directory, you can find the directory in which Google stores your credentials after you approve a Google request to access your data.
marol source share