peatio-bitgo 2.5.2 → 2.6.4

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: acdc8edfa1495b5fe9d11d0396c34c36e086dd4594289745e66c506a61b72194
4
- data.tar.gz: ec04b54eb43a007e4e0bd02c9ec3efbc333b76da239b876ba73c251ac23563a4
3
+ metadata.gz: d1515fca85406f5b59cb6e89eab685278a2f5c44a858579de915805f93fecc07
4
+ data.tar.gz: f92854ebb36d43f171781c8ec38b514083d017281973c3cead917050821e9433
5
5
  SHA512:
6
- metadata.gz: 44d662cd396e174301f130c25e2904fef5f1cfcbd47aa9090c81ed65a6b1422682ebf78ef80c8d9c34008763252b9432cc6aef72748f615361d94da0bb77bccd
7
- data.tar.gz: 40ba65fa72eeaf02f69153a394a8ac4a177f50ea06ed4ce86217209865c82d6e37e8d6c13c5056d877dd40719bd53ffbe2d3331e2faf14383a39aa00dffefa78
6
+ metadata.gz: f886bc0ae67b72687683cf64fd09931d186394d8b041ba8f6fbdd7dcf63ae536eeafaaf34684f4b798ad848d3135e35ea3285e8a2a9eedbfa62c07dc40d9519d
7
+ data.tar.gz: e9d6a6f7687e031b8ee59ff2b8d9a4dc3461af768fc5752ee39753944cf564d3a980657182f1098799d15e8e9ae0d48dd790d32d1b89d876877112681d3a75b5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-bitgo (2.5.2)
4
+ peatio-bitgo (2.6.4)
5
5
  activesupport (~> 5.2.3)
6
6
  better-faraday (~> 1.0.5)
7
7
  faraday (~> 0.17)
@@ -5,7 +5,7 @@ module Peatio
5
5
  module Bitgo
6
6
  class Client
7
7
  Error = Class.new(StandardError)
8
- class ConnectionError < Error; end
8
+ ConnectionError = Class.new(Error)
9
9
 
10
10
  class ResponseError < Error
11
11
  def initialize(msg)
@@ -22,7 +22,7 @@ module Peatio
22
22
  args = [@endpoint.to_s + path]
23
23
 
24
24
  if data
25
- if %i[ post put patch ].include?(verb)
25
+ if %i[post put patch].include?(verb)
26
26
  args << data.compact.to_json
27
27
  args << { 'Content-Type' => 'application/json' }
28
28
  else
@@ -48,8 +48,6 @@ module Peatio
48
48
  else
49
49
  raise ConnectionError, JSON.parse(e.response.body)['message']
50
50
  end
51
- rescue StandardError => e
52
- raise Error, e
53
51
  end
54
52
  end
55
53
  end
@@ -9,7 +9,7 @@ module Peatio
9
9
  unless Gem::Requirement.new(BLOCKCHAIN_VERSION_REQUIREMENT)
10
10
  .satisfied_by?(Gem::Version.new(Peatio::Blockchain::VERSION))
11
11
  [
12
- "Bitgo blockchain version requiremnt was not suttisfied by Peatio::Blockchain.",
12
+ "Bitgo blockchain version requirement was not satisfied by Peatio::Blockchain.",
13
13
  "Bitgo blockchain requires #{BLOCKCHAIN_VERSION_REQUIREMENT}.",
14
14
  "Peatio::Blockchain version is #{Peatio::Blockchain::VERSION}"
15
15
  ].join('\n').tap { |s| Kernel.abort s }
@@ -18,7 +18,7 @@ module Peatio
18
18
  unless Gem::Requirement.new(WALLET_VERSION_REQUIREMENT)
19
19
  .satisfied_by?(Gem::Version.new(Peatio::Wallet::VERSION))
20
20
  [
21
- "Bitgo wallet version requiremnt was not suttisfied by Peatio::Wallet.",
21
+ "Bitgo wallet version requirement was not satisfied by Peatio::Wallet.",
22
22
  "Bitgo wallet requires #{WALLET_VERSION_REQUIREMENT}.",
23
23
  "Peatio::Wallet version is #{Peatio::Wallet::VERSION}"
24
24
  ].join('\n').tap { |s| Kernel.abort s }
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Bitgo
3
- VERSION = "2.5.2"
3
+ VERSION = "2.6.4".freeze
4
4
  end
5
5
  end
@@ -4,8 +4,11 @@ module Peatio
4
4
  TIME_DIFFERENCE_IN_MINUTES = 10
5
5
  XLM_MEMO_TYPES = { 'memoId': 'id', 'memoText': 'text', 'memoHash': 'hash', 'memoReturn': 'return' }
6
6
 
7
- def initialize(settings = {})
8
- @settings = settings
7
+ DEFAULT_FEATURES = { skip_deposit_collection: false }.freeze
8
+
9
+ def initialize(custom_features = {})
10
+ @features = DEFAULT_FEATURES.merge(custom_features).slice(*SUPPORTED_FEATURES)
11
+ @settings = {}
9
12
  end
10
13
 
11
14
  def configure(settings = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio-bitgo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nadia Ch., Maksym N.