lib/chronicle/spotify/authorizer.rb in chronicle-spotify-0.1.0 vs lib/chronicle/spotify/authorizer.rb in chronicle-spotify-0.2.0

- old
+ new

@@ -3,16 +3,23 @@ module Chronicle module Spotify class Authorizer < Chronicle::ETL::OauthAuthorizer provider :spotify omniauth_strategy :spotify - scope 'user-read-recently-played playlist-read-private playlist-read-collaborative user-read-private user-read-email user-library-read' - pluck_secrets({ - access_token: [:credentials, :token], - refresh_token: [:credentials, :refresh_token], + scope %w[ + user-read-recently-played + playlist-read-private + playlist-read-collaborative + user-read-private + user-read-email + user-library-read + ].join(' ') + pluck_secrets({ + access_token: %i[credentials token], + refresh_token: %i[credentials refresh_token], uid: [:uid], - name: [:info, :name], - email: [:info, :email], + name: %i[info name], + email: %i[info email] }) end end end