suppress annoying warning
This solves https://github.com/googleapis/google-auth-library-ruby/issues/424 for now. The issue has been open for over a year, so I'm guessing nobody has the bandwidth to fix it. This will keep it from spamming log files in the meantime
🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!
-- conventional-commit-lint bot https://conventionalcommits.org/
Unfortunately silence_warnings is a Rails-ism and not available in plain Ruby.
module_function on an attr_accessor effectively just makes it private, ~so this should be fixed by moving the attr_accessor into a private section~
EDIT:
Making it private might not be the intended outcome. If this is meant to also be accessible on the module, then perhaps it should be:
mattr_accessor :default_connection
attr_accessor :default_connection
module_function
def connection
#...
Otherwise I think the module_function should just be removed entirely
see #519
We merged #519.