Skip to content

Commit

Permalink
Fix Ruby 2.7 compatibility in Cloud::Config#mehtod_missing
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Oct 1, 2019
1 parent 2255337 commit fd0763e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google-cloud-core/lib/google/cloud/config.rb
Expand Up @@ -458,8 +458,8 @@ def self.deferred &block
def method_missing name, *args
name_str = name.to_s
super unless name_str =~ /^[a-zA-Z]\w*=?$/
if name_str.chomp! "="
self[name_str] = args.first
if name_str.end_with? "="
self[name_str[0...-1]] = args.first
else
self[name]
end
Expand Down

0 comments on commit fd0763e

Please sign in to comment.