Skip to content

Commit

Permalink
Move out Net::HTTP adapter (#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia committed Dec 29, 2020
1 parent 2457525 commit e41668e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 222 deletions.
1 change: 1 addition & 0 deletions faraday.gemspec
Expand Up @@ -15,6 +15,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.4'

spec.add_dependency 'faraday-net_http', '~> 1.0'
spec.add_dependency 'multipart-post', '>= 1.2', '< 3'
spec.add_dependency 'ruby2_keywords'

Expand Down
2 changes: 2 additions & 0 deletions lib/faraday.rb
Expand Up @@ -27,6 +27,8 @@
require 'faraday/file_part'
require 'faraday/param_part'

require 'faraday/net_http'

# This is the main namespace for Faraday.
#
# It provides methods to create {Connection} objects, and HTTP-related
Expand Down
1 change: 0 additions & 1 deletion lib/faraday/adapter.rb
Expand Up @@ -11,7 +11,6 @@ class Adapter

register_middleware File.expand_path('adapter', __dir__),
test: [:Test, 'test'],
net_http: [:NetHttp, 'net_http'],
net_http_persistent: [
:NetHttpPersistent,
'net_http_persistent'
Expand Down
220 changes: 0 additions & 220 deletions lib/faraday/adapter/net_http.rb

This file was deleted.

1 change: 0 additions & 1 deletion lib/faraday/autoload.rb
Expand Up @@ -58,7 +58,6 @@ def all_loaded_constants
class Adapter
extend AutoloadHelper
autoload_all 'faraday/adapter',
NetHttp: 'net_http',
NetHttpPersistent: 'net_http_persistent',
EMSynchrony: 'em_synchrony',
EMHttp: 'em_http',
Expand Down

0 comments on commit e41668e

Please sign in to comment.