Small utility for normalizing scopes into canonical form
# File lib/googleauth/scope_util.rb, line 49 def self.as_array(scope) case scope when Array scope when String scope.split(' ') else raise 'Invalid scope value. Must be string or array' end end
# File lib/googleauth/scope_util.rb, line 44 def self.normalize(scope) list = as_array(scope) list.map { |item| ALIASES[item] || item } end