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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c36d1210e5f6d8a64f5d0bb4afc34a495224f8f881e5cd73185999499d480d2e
4
- data.tar.gz: 82669f2e9ec354a6dbc856e16b80386540f7361e529276086d2edec1999c7a61
3
+ metadata.gz: 2ff1768afd86ac4684223228b7ce57fcec0a950836b0ae896cf2556706032af4
4
+ data.tar.gz: bc5ff2e2ff1a16ae66f3672bcadd2051d2ad8a796b72c8b0e8abf950cc09bb22
5
5
  SHA512:
6
- metadata.gz: d45e974d265dc09aa4255c98f48c0b2011806c67c9ec670b44e7709c1099f1a3265c3310e02fe26e55fbada0b86d1022220948787317d51ad0bb23312fa5f87f
7
- data.tar.gz: 51d3bfa1ed6ff1b0135ae9d453506a156f526f22b6570bba7bf7bdb54ba7e07250443927e9ca4d5dc2d140a406f60dc85d6cc688f2a0b45caa481ab9b76466a2
6
+ metadata.gz: bfba25d6e9c25f3f68fd352d83d41464754b32f6018b22c8169153a38e0c2da9ba191a70aca8036158af263865b137e8e7f732de50817179c09662c6c123b1bd
7
+ data.tar.gz: dc1651ddb8b157365b44f0d0d6a1e6a2194af9e5bd43da9bd7ff6adf706305be13a027d6b260e172698792a3f8b2753c1248f6e28df2b6c85663e8369b563904
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-decredcoin (2.0.1)
4
+ peatio-decredcoin (2.0.2)
5
5
  activesupport (~> 5.2.3)
6
6
  better-faraday (~> 1.0.5)
7
7
  faraday (~> 0.17)
@@ -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 :net_http_persistent, pool_size: 5
52
+ f.adapter :net_http, pool_size: 5
52
53
  f.ssl[:verify] = @is_secure
53
54
  end.tap do |connection|
54
- unless @json_rpc_endpoint.user.blank?
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
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Decredcoin
3
- VERSION = "2.0.2".freeze
3
+ VERSION = "2.0.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio-decredcoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anuj Dhiman