recurly 3.3.1 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,39 +0,0 @@
1
- require "openssl"
2
-
3
- module Recurly
4
- class Client
5
- module NetHttpPersistentAdapter
6
- protected
7
-
8
- def configure_net_adapter(faraday)
9
- faraday.adapter :net_http_persistent do |http|
10
- # yields Net::HTTP::Persistent
11
- # for net-http-persistent 2.X, alternative is for 3.X
12
- if http.respond_to? :keep_alive_timeout
13
- http.keep_alive_timeout = 60
14
- else
15
- http.keep_alive = 60
16
- end
17
- end
18
- end
19
- end
20
-
21
- module NetHttpAdapter
22
- protected
23
-
24
- def configure_net_adapter(faraday)
25
- faraday.adapter :net_http do |http|
26
- # yields Net::HTTP
27
- end
28
- end
29
- end
30
-
31
- include NetHttpAdapter
32
-
33
- begin
34
- require "net/http/persistent"
35
- include NetHttpPersistentAdapter
36
- rescue LoadError
37
- end
38
- end
39
- end