Skip to content

Commit

Permalink
Re-add faraday-net_http as default adapter (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia authored Jan 5, 2022
1 parent 565f463 commit 5f88f8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions faraday.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.6'

spec.add_dependency 'faraday-net_http', '~> 2.0'
spec.add_dependency 'ruby2_keywords', '>= 0.0.4'

# Includes `examples` and `spec` to allow external adapter gems to run Faraday unit and integration tests
Expand Down
3 changes: 2 additions & 1 deletion lib/faraday.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'faraday/adapter'
require 'faraday/request'
require 'faraday/response'

require 'faraday/net_http'
# This is the main namespace for Faraday.
#
# It provides methods to create {Connection} objects, and HTTP-related
Expand Down Expand Up @@ -148,4 +148,5 @@ def method_missing(name, *args, &block)
self.ignore_env_proxy = false
self.root_path = File.expand_path __dir__
self.lib_path = File.expand_path 'faraday', __dir__
self.default_adapter = :net_http
end

0 comments on commit 5f88f8f

Please sign in to comment.