Skip to content

Commit

Permalink
#563: upgrade to faraday-2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dgroup committed Jan 17, 2022
1 parent fb9e608 commit a95b60a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lazylead.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions lib/lazylead/confluence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a95b60a

Please sign in to comment.