diff --git a/lazylead.gemspec b/lazylead.gemspec index 8c05e9d..fa168f5 100644 --- a/lazylead.gemspec +++ b/lazylead.gemspec @@ -58,7 +58,7 @@ tasks instead of solving technical problems." s.add_runtime_dependency "activerecord", "6.1.3" s.add_runtime_dependency "backtrace", "0.3" s.add_runtime_dependency "colorize", "0.8.1" - s.add_runtime_dependency "faraday", "1.8.0" + s.add_runtime_dependency "faraday", "2.1.0" s.add_runtime_dependency "get_process_mem", "0.2.7" s.add_runtime_dependency "inifile", "3.0.0" s.add_runtime_dependency "jira-ruby", "2.1.5" diff --git a/lib/lazylead/confluence.rb b/lib/lazylead/confluence.rb index 259e62f..177dde3 100644 --- a/lib/lazylead/confluence.rb +++ b/lib/lazylead/confluence.rb @@ -34,8 +34,9 @@ module Lazylead class Confluence def initialize(conf) @conf = conf - @http = Faraday.new(url: @conf.url) - @http.basic_auth(@conf.user, @conf.pass) + @http = Faraday.new(url: @conf.url) do |conn| + conn.request :authorization, :basic, @conf.user, @conf.pass + end end # Confluence instance url like