Merge pull request #404 from xmjw/accept-symbol-for-credentail-flow
Google::APICilent::ClientSecrets Allow symbols for credential `flow`
This commit is contained in:
		
						commit
						e9cc29cb4b
					
				|  | @ -82,7 +82,7 @@ module Google | |||
|       def initialize(options={}) | ||||
|         # Client auth configuration | ||||
|         @flow = options[:flow] || options.keys.first.to_s || 'web' | ||||
|         fdata = options[@flow] | ||||
|         fdata = options[@flow.to_sym] || options[@flow] | ||||
|         @client_id = fdata[:client_id] || fdata["client_id"] | ||||
|         @client_secret = fdata[:client_secret] || fdata["client_secret"] | ||||
|         @redirect_uris = fdata[:redirect_uris] || fdata["redirect_uris"] | ||||
|  |  | |||
|  | @ -215,7 +215,7 @@ RSpec.describe Google::APIClient::ClientSecrets do | |||
| 
 | ||||
|       context 'option keys are symbol' do | ||||
|         let(:symbol_options) do | ||||
|           { 'samples' => | ||||
|           { samples: | ||||
|             { | ||||
|               access_token:         'sample_access_token', | ||||
|               auth_uri:             'sample_auth_uri', | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue