Skip to content

Commit

Permalink
Use external patron adapter (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia committed Jul 4, 2021
1 parent 274f5fa commit bc4eb87
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 135 deletions.
3 changes: 2 additions & 1 deletion faraday.gemspec
Expand Up @@ -2,7 +2,7 @@

require_relative 'lib/faraday/version'

Gem::Specification.new do |spec|
Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
spec.name = 'faraday'
spec.version = Faraday::VERSION

Expand All @@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'faraday-httpclient', '~> 1.0.1'
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 '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 @@ -33,6 +33,7 @@
require 'faraday/httpclient'
require 'faraday/net_http'
require 'faraday/net_http_persistent'
require 'faraday/patron'

# This is the main namespace for Faraday.
#
Expand Down
1 change: 0 additions & 1 deletion lib/faraday/adapter.rb
Expand Up @@ -12,7 +12,6 @@ class Adapter
register_middleware File.expand_path('adapter', __dir__),
test: [:Test, 'test'],
typhoeus: [:Typhoeus, 'typhoeus'],
patron: [:Patron, 'patron'],
rack: [:Rack, 'rack']

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

This file was deleted.

1 change: 0 additions & 1 deletion lib/faraday/autoload.rb
Expand Up @@ -59,7 +59,6 @@ class Adapter
extend AutoloadHelper
autoload_all 'faraday/adapter',
Typhoeus: 'typhoeus',
Patron: 'patron',
Test: 'test',
Rack: 'rack'
end
Expand Down

0 comments on commit bc4eb87

Please sign in to comment.