Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-mailosaur committed May 30, 2022
1 parent ecd7de8 commit c6b9f63
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
11 changes: 10 additions & 1 deletion lib/mailosaur.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,16 @@ def connection
content_type: 'application/json; charset=utf-8',
user_agent: "mailosaur-ruby/#{Mailosaur::VERSION}"
}
}).tap { |conn| conn.request(:basic_auth, @api_key, '') }
}).tap do |conn|
case Faraday::VERSION
when /^0/
conn.basic_auth @api_key, ''
when /^1/
conn.request(:basic_auth, @api_key, '')
else
conn.request(:authorization, :basic, @api_key, '')
end
end
end

def handle_http_error(response)
Expand Down
10 changes: 5 additions & 5 deletions mailosaur.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Gem::Specification.new do |s|
}

s.files = Dir['LICENSE', 'README.md', 'lib/mailosaur.rb', 'lib/**/*']
s.add_dependency 'faraday', '>= 0.9', '< 2'
s.add_dependency 'faraday', '>= 2.0', '< 3'
s.add_dependency 'json', '>= 1.7.5', '< 4'

s.add_development_dependency 'mail', '~> 2.6', '>= 2.6.1'
s.add_development_dependency 'mail', '~> 2.7', '>= 2.7.1'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'rubocop', '~> 1.19.0'
s.add_development_dependency 'shoulda-context', '~> 1.2', '>= 1.2.2'
s.add_development_dependency 'test-unit', '~> 3.2', '>= 3.2.7'
s.add_development_dependency 'rubocop', '~> 1.30.0'
s.add_development_dependency 'shoulda-context', '~> 2.0', '>= 2.0.0'
s.add_development_dependency 'test-unit', '~> 3.5', '>= 3.5.3'
end

0 comments on commit c6b9f63

Please sign in to comment.