Skip to content

Commit bc4eb87

Browse files
authored
Use external patron adapter (#1290)
1 parent 274f5fa commit bc4eb87

5 files changed

Lines changed: 3 additions & 135 deletions

File tree

faraday.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require_relative 'lib/faraday/version'
44

5-
Gem::Specification.new do |spec|
5+
Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
66
spec.name = 'faraday'
77
spec.version = Faraday::VERSION
88

@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
2121
spec.add_dependency 'faraday-httpclient', '~> 1.0.1'
2222
spec.add_dependency 'faraday-net_http', '~> 1.0'
2323
spec.add_dependency 'faraday-net_http_persistent', '~> 1.1'
24+
spec.add_dependency 'faraday-patron', '~> 1.0'
2425
spec.add_dependency 'multipart-post', '>= 1.2', '< 3'
2526
spec.add_dependency 'ruby2_keywords', '>= 0.0.4'
2627

lib/faraday.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
require 'faraday/httpclient'
3434
require 'faraday/net_http'
3535
require 'faraday/net_http_persistent'
36+
require 'faraday/patron'
3637

3738
# This is the main namespace for Faraday.
3839
#

lib/faraday/adapter.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class Adapter
1212
register_middleware File.expand_path('adapter', __dir__),
1313
test: [:Test, 'test'],
1414
typhoeus: [:Typhoeus, 'typhoeus'],
15-
patron: [:Patron, 'patron'],
1615
rack: [:Rack, 'rack']
1716

1817
# This module marks an Adapter as supporting parallel requests.

lib/faraday/adapter/patron.rb

Lines changed: 0 additions & 132 deletions
This file was deleted.

lib/faraday/autoload.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class Adapter
5959
extend AutoloadHelper
6060
autoload_all 'faraday/adapter',
6161
Typhoeus: 'typhoeus',
62-
Patron: 'patron',
6362
Test: 'test',
6463
Rack: 'rack'
6564
end

0 commit comments

Comments
 (0)