peatio-decredcoin 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/peatio/decredcoin/client.rb +3 -5
- data/lib/peatio/decredcoin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ff1768afd86ac4684223228b7ce57fcec0a950836b0ae896cf2556706032af4
|
4
|
+
data.tar.gz: bc5ff2e2ff1a16ae66f3672bcadd2051d2ad8a796b72c8b0e8abf950cc09bb22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfba25d6e9c25f3f68fd352d83d41464754b32f6018b22c8169153a38e0c2da9ba191a70aca8036158af263865b137e8e7f732de50817179c09662c6c123b1bd
|
7
|
+
data.tar.gz: dc1651ddb8b157365b44f0d0d6a1e6a2194af9e5bd43da9bd7ff6adf706305be13a027d6b260e172698792a3f8b2753c1248f6e28df2b6c85663e8369b563904
|
data/Gemfile.lock
CHANGED
@@ -47,14 +47,12 @@ module Peatio
|
|
47
47
|
private
|
48
48
|
|
49
49
|
def connection
|
50
|
+
user, pass = [@json_rpc_endpoint.user, @json_rpc_endpoint.password]
|
50
51
|
@connection ||= Faraday.new(@json_rpc_endpoint) do |f|
|
51
|
-
f.adapter :
|
52
|
+
f.adapter :net_http, pool_size: 5
|
52
53
|
f.ssl[:verify] = @is_secure
|
53
54
|
end.tap do |connection|
|
54
|
-
unless
|
55
|
-
connection.basic_auth(@json_rpc_endpoint.user,
|
56
|
-
@json_rpc_endpoint.password)
|
57
|
-
end
|
55
|
+
connection.basic_auth(user, pass) unless user.blank?
|
58
56
|
end
|
59
57
|
end
|
60
58
|
end
|