Skip to content

Commit

Permalink
Use external Rack adapter (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia committed Aug 1, 2021
1 parent 66d5dae commit fd1007a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 79 deletions.
1 change: 1 addition & 0 deletions faraday.gemspec
Expand Up @@ -22,6 +22,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
spec.add_dependency 'faraday-net_http', '~> 1.0'
spec.add_dependency 'faraday-net_http_persistent', '~> 1.1'
spec.add_dependency 'faraday-patron', '~> 1.0'
spec.add_dependency 'faraday-rack', '~> 1.0'
spec.add_dependency 'multipart-post', '>= 1.2', '< 3'
spec.add_dependency 'ruby2_keywords', '>= 0.0.4'

Expand Down
1 change: 1 addition & 0 deletions lib/faraday.rb
Expand Up @@ -36,6 +36,7 @@
require 'faraday/net_http'
require 'faraday/net_http_persistent'
require 'faraday/patron'
require 'faraday/rack'

# This is the main namespace for Faraday.
#
Expand Down
3 changes: 1 addition & 2 deletions lib/faraday/adapter.rb
Expand Up @@ -11,8 +11,7 @@ class Adapter

register_middleware File.expand_path('adapter', __dir__),
test: [:Test, 'test'],
typhoeus: [:Typhoeus, 'typhoeus'],
rack: [:Rack, 'rack']
typhoeus: [:Typhoeus, 'typhoeus']

# This module marks an Adapter as supporting parallel requests.
module Parallelism
Expand Down
75 changes: 0 additions & 75 deletions lib/faraday/adapter/rack.rb

This file was deleted.

3 changes: 1 addition & 2 deletions lib/faraday/autoload.rb
Expand Up @@ -59,8 +59,7 @@ class Adapter
extend AutoloadHelper
autoload_all 'faraday/adapter',
Typhoeus: 'typhoeus',
Test: 'test',
Rack: 'rack'
Test: 'test'
end

# Request represents a single HTTP request for a Faraday adapter to make.
Expand Down

0 comments on commit fd1007a

Please sign in to comment.