lib/travis/cli/api_command.rb in travis-1.6.4.travis.410.4 vs lib/travis/cli/api_command.rb in travis-1.6.4.travis.411.4
- old
+ new
@@ -122,9 +122,10 @@
gh_config = session.config['github']
gh_config &&= gh_config.inject({}) { |h,(k,v)| h.update(k.to_sym => v) }
gh_config ||= {}
gh_config[:ssl] = Travis::Client::Session::SSL_OPTIONS
gh_config[:ssl] = { :verify => false } if gh_config[:api_url] and gh_config[:api_url] != "https://api.github.com"
+ gh_config.delete :scopes
gh_config[:instrumenter] = proc do |type, payload, &block|
next block.call unless type == 'http.gh'
time("GitHub API: #{payload[:verb].to_s.upcase} #{payload[:url]}", block)
end if debug?