lib/targit/client.rb in targit-2.2.0 vs lib/targit/client.rb in targit-2.3.0

- old
+ new

@@ -11,16 +11,16 @@ @client ||= _client end def _client auth = Octoauth.new octoauth_options - Octokit::Client.new( + Octokit::Client.new({ access_token: auth.token, api_endpoint: @options[:api_endpoint], web_endpoint: @options[:api_endpoint], auto_paginate: true - ) + }.compact) end def octoauth_options { note: 'targit', @@ -31,9 +31,9 @@ } end def authfiles return [:default] unless @options[:authfile] - @authfile ||= @options[:authfile].split(',') + @authfiles ||= @options[:authfile].split(',') end end end