peatio-ndc 0.1.0 → 0.1.2

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: 6ec659bbb61d542ea3bd80a5ab799b6e1e623f46f74982f7b9100251126790f6
4
- data.tar.gz: 37e6574e95a0b8b50bf8d728199652ec9150b0860dab2cff39ab61dfbcf4a3cf
3
+ metadata.gz: a03e52e0c58b810d748551008411f42e8c6873e1652a9e02508da335d1de0b04
4
+ data.tar.gz: 2936ca54a8e8da5bfe4063109b8a6737f20f42af9ab74c222b1d8e781ece2cf9
5
5
  SHA512:
6
- metadata.gz: d0db6b3dad66efb4ee7bcc00e82bfe0ca377e8b1fd15ff9d802c2192991b869b268c633e9250926c238dde2be68cee4e6156d7ae30ed40ae065ce9ea4cc728aa
7
- data.tar.gz: 5ee0d9c7f304222f3a43cb9b184ae2ddd9f3e063ad12e7fd26fc9986c5d55806aa4751a32ef23d6df1a8cb068ad912e2fb0e64dd0fa9a6d7ae8c10cdddb0ce5b
6
+ metadata.gz: 304d9c2495db3da4e713fbe67ac154639e4beecedcfeda05e1f0f65cc21bb4a89ae1766d8c8feba10ccb84dc998a5ff5418ea1662137a53be9958bf641886095
7
+ data.tar.gz: cfec5b5b58128f86b336a9b4770f00338439d68b28d5879943a1cd0a0d6da066b09ac35a6ca55260fe643b94ba8ab0e211423d3b357a66ec5ad4cdd19a12391d
data/Gemfile.lock CHANGED
@@ -1,38 +1,40 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-nexbit (0.1.1)
4
+ peatio-ndc (0.1.1)
5
5
  activesupport (~> 5.2.3)
6
6
  better-faraday (~> 1.0.5)
7
7
  faraday (~> 0.15.4)
8
8
  memoist (~> 0.16.0)
9
- peatio (~> 0.6.1)
9
+ net-http-persistent (~> 3.0.1)
10
+ peatio (~> 0.6.3)
10
11
 
11
12
  GEM
12
13
  remote: https://rubygems.org/
13
14
  specs:
14
- activemodel (5.2.3)
15
- activesupport (= 5.2.3)
16
- activesupport (5.2.3)
15
+ activemodel (5.2.4.2)
16
+ activesupport (= 5.2.4.2)
17
+ activesupport (5.2.4.2)
17
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
19
  i18n (>= 0.7, < 2)
19
20
  minitest (~> 5.1)
20
21
  tzinfo (~> 1.1)
21
- addressable (2.6.0)
22
- public_suffix (>= 2.0.2, < 4.0)
22
+ addressable (2.7.0)
23
+ public_suffix (>= 2.0.2, < 5.0)
23
24
  amq-protocol (2.3.0)
24
25
  amqp (1.8.0)
25
26
  amq-protocol (>= 2.2.0)
26
27
  eventmachine
27
- better-faraday (1.0.5)
28
+ better-faraday (1.0.8)
28
29
  activesupport (>= 4.0, < 6.0)
29
30
  faraday (~> 0.12)
30
- bunny (2.14.2)
31
+ bunny (2.14.4)
31
32
  amq-protocol (~> 2.3, >= 2.3.0)
32
- byebug (11.0.1)
33
- clamp (1.3.0)
33
+ byebug (11.1.1)
34
+ clamp (1.3.1)
34
35
  coderay (1.1.2)
35
- concurrent-ruby (1.1.5)
36
+ concurrent-ruby (1.1.6)
37
+ connection_pool (2.2.2)
36
38
  crack (0.4.3)
37
39
  safe_yaml (~> 1.0.0)
38
40
  diff-lcs (1.3)
@@ -42,21 +44,21 @@ GEM
42
44
  eventmachine (1.2.7)
43
45
  faraday (0.15.4)
44
46
  multipart-post (>= 1.2, < 3)
45
- hashdiff (0.3.9)
47
+ hashdiff (1.0.1)
46
48
  http_parser.rb (0.6.0)
47
- i18n (1.6.0)
49
+ i18n (1.8.2)
48
50
  concurrent-ruby (~> 1.0)
49
51
  jwt (2.2.1)
50
- memoist (0.16.0)
51
- metaclass (0.0.4)
52
- method_source (0.9.2)
53
- minitest (5.11.3)
54
- mocha (1.8.0)
55
- metaclass (~> 0.0.1)
52
+ memoist (0.16.2)
53
+ method_source (1.0.0)
54
+ minitest (5.14.0)
55
+ mocha (1.11.2)
56
56
  multipart-post (2.1.1)
57
- mysql2 (0.5.2)
58
- peatio (0.6.1)
59
- activemodel (~> 5.2.3)
57
+ mysql2 (0.5.3)
58
+ net-http-persistent (3.0.1)
59
+ connection_pool (~> 2.2)
60
+ peatio (0.6.3)
61
+ activemodel (> 5.2, <= 6.0.0)
60
62
  amqp
61
63
  bunny
62
64
  clamp
@@ -64,47 +66,47 @@ GEM
64
66
  eventmachine
65
67
  jwt
66
68
  mysql2
67
- pry (0.12.2)
68
- coderay (~> 1.1.0)
69
- method_source (~> 0.9.0)
70
- pry-byebug (3.7.0)
69
+ pry (0.13.0)
70
+ coderay (~> 1.1)
71
+ method_source (~> 1.0)
72
+ pry-byebug (3.9.0)
71
73
  byebug (~> 11.0)
72
- pry (~> 0.10)
73
- public_suffix (3.0.3)
74
+ pry (~> 0.13.0)
75
+ public_suffix (4.0.3)
74
76
  rake (10.5.0)
75
- rspec (3.8.0)
76
- rspec-core (~> 3.8.0)
77
- rspec-expectations (~> 3.8.0)
78
- rspec-mocks (~> 3.8.0)
79
- rspec-core (3.8.0)
80
- rspec-support (~> 3.8.0)
81
- rspec-expectations (3.8.2)
77
+ rspec (3.9.0)
78
+ rspec-core (~> 3.9.0)
79
+ rspec-expectations (~> 3.9.0)
80
+ rspec-mocks (~> 3.9.0)
81
+ rspec-core (3.9.1)
82
+ rspec-support (~> 3.9.1)
83
+ rspec-expectations (3.9.1)
82
84
  diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.8.0)
84
- rspec-mocks (3.8.0)
85
+ rspec-support (~> 3.9.0)
86
+ rspec-mocks (3.9.1)
85
87
  diff-lcs (>= 1.2.0, < 2.0)
86
- rspec-support (~> 3.8.0)
87
- rspec-support (3.8.0)
88
+ rspec-support (~> 3.9.0)
89
+ rspec-support (3.9.2)
88
90
  safe_yaml (1.0.5)
89
91
  thread_safe (0.3.6)
90
- tzinfo (1.2.5)
92
+ tzinfo (1.2.7)
91
93
  thread_safe (~> 0.1)
92
- webmock (3.5.1)
94
+ webmock (3.8.3)
93
95
  addressable (>= 2.3.6)
94
96
  crack (>= 0.3.2)
95
- hashdiff
97
+ hashdiff (>= 0.4.0, < 2.0.0)
96
98
 
97
99
  PLATFORMS
98
100
  ruby
99
101
 
100
102
  DEPENDENCIES
101
- bundler (~> 1.16)
103
+ bundler (~> 1.17)
102
104
  mocha (~> 1.8)
103
- peatio-nexbit!
105
+ peatio-ndc!
104
106
  pry-byebug
105
107
  rake (~> 10.0)
106
108
  rspec (~> 3.0)
107
109
  webmock (~> 3.5)
108
110
 
109
111
  BUNDLED WITH
110
- 1.16.3
112
+ 1.17.3
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Peatio::NDC
2
+ [![Gem Version](https://badge.fury.io/rb/peatio-ndc.svg)](https://badge.fury.io/rb/peatio-ndc)
2
3
 
3
4
  Peatio ndc plugin for nPro [peatio] stack
4
5
 
@@ -1,82 +1,85 @@
1
- module Ndc
2
- # TODO: Processing of unconfirmed transactions from mempool isn't supported now.
3
- class Blockchain < Peatio::Blockchain::Abstract
4
1
 
5
- DEFAULT_FEATURES = {case_sensitive: true, cash_addr_format: false}.freeze
2
+ module Peatio
3
+ module Ndc
4
+ # TODO: Processing of unconfirmed transactions from mempool isn't supported now.
5
+ class Blockchain < Peatio::Blockchain::Abstract
6
6
 
7
- def initialize(custom_features = {})
8
- @features = DEFAULT_FEATURES.merge(custom_features).slice(*SUPPORTED_FEATURES)
9
- @settings = {}
10
- end
7
+ DEFAULT_FEATURES = {case_sensitive: true, cash_addr_format: false}.freeze
11
8
 
12
- def configure(settings = {})
13
- # Clean client state during configure.
14
- @client = nil
15
- @settings.merge!(settings.slice(*SUPPORTED_SETTINGS))
16
- end
9
+ def initialize(custom_features = {})
10
+ @features = DEFAULT_FEATURES.merge(custom_features).slice(*SUPPORTED_FEATURES)
11
+ @settings = {}
12
+ end
13
+
14
+ def configure(settings = {})
15
+ # Clean client state during configure.
16
+ @client = nil
17
+ @settings.merge!(settings.slice(*SUPPORTED_SETTINGS))
18
+ end
17
19
 
18
- def fetch_block!(block_number)
19
- block_hash = client.json_rpc(:getblockhash, [block_number])
20
+ def fetch_block!(block_number)
21
+ block_hash = client.json_rpc(:getblockhash, [block_number])
20
22
 
21
- client.json_rpc(:getblock, [block_hash, 2])
22
- .fetch('tx').each_with_object([]) do |tx, txs_array|
23
+ client.json_rpc(:getblock, [block_hash, 2])
24
+ .fetch('tx').each_with_object([]) do |tx, txs_array|
23
25
  txs = build_transaction(tx).map do |ntx|
24
26
  Peatio::Transaction.new(ntx.merge(block_number: block_number))
25
27
  end
26
28
  txs_array.append(*txs)
27
29
  end.yield_self { |txs_array| Peatio::Block.new(block_number, txs_array) }
28
- rescue Ndc::Client::Error => e
29
- raise Peatio::Blockchain::ClientError, e
30
- end
30
+ rescue Client::Error => e
31
+ raise Peatio::Blockchain::ClientError, e
32
+ end
31
33
 
32
- def latest_block_number
33
- client.json_rpc(:getblockcount)
34
- rescue Ndc::Client::Error => e
35
- raise Peatio::Blockchain::ClientError, e
36
- end
34
+ def latest_block_number
35
+ client.json_rpc(:getblockcount)
36
+ rescue Client::Error => e
37
+ raise Peatio::Blockchain::ClientError, e
38
+ end
37
39
 
38
- def load_balance_of_address!(address, _currency_id)
39
- address_with_balance = client.json_rpc(:listaddressgroupings)
40
- .flatten(1)
41
- .find { |addr| addr[0] == address }
40
+ def load_balance_of_address!(address, _currency_id)
41
+ address_with_balance = client.json_rpc(:listaddressgroupings)
42
+ .flatten(1)
43
+ .find { |addr| addr[0] == address }
42
44
 
43
- if address_with_balance.blank?
44
- raise Peatio::Blockchain::UnavailableAddressBalanceError, address
45
- end
45
+ if address_with_balance.blank?
46
+ raise Peatio::Blockchain::UnavailableAddressBalanceError, address
47
+ end
46
48
 
47
- address_with_balance[1].to_d
48
- rescue Ndc::Client::Error => e
49
- raise Peatio::Blockchain::ClientError, e
50
- end
49
+ address_with_balance[1].to_d
50
+ rescue Client::Error => e
51
+ raise Peatio::Blockchain::ClientError, e
52
+ end
51
53
 
52
- private
54
+ private
53
55
 
54
- def build_transaction(tx_hash)
55
- tx_hash.fetch('vout')
56
- .select do |entry|
56
+ def build_transaction(tx_hash)
57
+ tx_hash.fetch('vout')
58
+ .select do |entry|
57
59
  entry.fetch('value').to_d > 0 &&
58
- entry['scriptPubKey'].has_key?('addresses')
60
+ entry['scriptPubKey'].has_key?('addresses')
59
61
  end
60
- .each_with_object([]) do |entry, formatted_txs|
62
+ .each_with_object([]) do |entry, formatted_txs|
61
63
  no_currency_tx =
62
64
  { hash: tx_hash['txid'], txout: entry['n'],
63
65
  to_address: entry['scriptPubKey']['addresses'][0],
64
66
  amount: entry.fetch('value').to_d,
65
67
  status: 'success' }
66
68
 
67
- # Build transaction for each currency belonging to blockchain.
68
- settings_fetch(:currencies).pluck(:id).each do |currency_id|
69
- formatted_txs << no_currency_tx.merge(currency_id: currency_id)
70
- end
69
+ # Build transaction for each currency belonging to blockchain.
70
+ settings_fetch(:currencies).pluck(:id).each do |currency_id|
71
+ formatted_txs << no_currency_tx.merge(currency_id: currency_id)
72
+ end
71
73
  end
72
- end
74
+ end
73
75
 
74
- def client
75
- @client ||= Ndc::Client.new(settings_fetch(:server))
76
- end
76
+ def client
77
+ @client ||= Client.new(settings_fetch(:server))
78
+ end
77
79
 
78
- def settings_fetch(key)
79
- @settings.fetch(key) { raise Peatio::Blockchain::MissingSettingError, key.to_s }
80
+ def settings_fetch(key)
81
+ @settings.fetch(key) { raise Peatio::Blockchain::MissingSettingError, key.to_s }
82
+ end
80
83
  end
81
84
  end
82
85
  end
@@ -1,48 +1,61 @@
1
- module Ndc
2
- class Client
3
- Error = Class.new(StandardError)
1
+ require 'memoist'
2
+ require 'faraday'
3
+ require 'better-faraday'
4
4
 
5
- class ConnectionError < Error; end
5
+ module Peatio
6
+ module Ndc
7
+ class Client
8
+ Error = Class.new(StandardError)
9
+ class ConnectionError < Error; end
6
10
 
7
- class ResponseError < Error
8
- def initialize(code, msg)
9
- super "#{msg} (#{code})"
11
+ class ResponseError < Error
12
+ def initialize(code, msg)
13
+ @code = code
14
+ @msg = msg
15
+ end
16
+
17
+ def message
18
+ "#{@msg} (#{@code})"
19
+ end
10
20
  end
11
- end
12
21
 
13
- extend Memoist
22
+ extend Memoist
14
23
 
15
- def initialize(endpoint, idle_timeout: 5)
16
- @json_rpc_endpoint = URI.parse(endpoint)
17
- @idle_timeout = idle_timeout
18
- end
24
+ def initialize(endpoint)
25
+ @json_rpc_endpoint = URI.parse(endpoint)
26
+ end
19
27
 
20
- def json_rpc(method, params = [])
21
- response = connection.post \
22
- '/',
23
- {jsonrpc: '1.0', method: method, params: params}.to_json,
24
- {'Accept' => 'application/json',
25
- 'Content-Type' => 'application/json'}
26
- response.assert_success!
27
- response = JSON.parse(response.body)
28
- response['error'].tap { |error| raise ResponseError.new(error['code'], error['message']) if error }
29
- response.fetch('result')
30
- rescue Faraday::Error => e
31
- raise ConnectionError, e
32
- rescue StandardError => e
33
- raise Error, e
34
- end
28
+ def json_rpc(method, params = [])
29
+ response = connection.post \
30
+ '/',
31
+ { jsonrpc: '1.0', method: method, params: params }.to_json,
32
+ { 'Accept' => 'application/json',
33
+ 'Content-Type' => 'application/json' }
34
+ response.assert_2xx!
35
+ response = JSON.parse(response.body)
36
+ response['error'].tap { |e| raise ResponseError.new(e['code'], e['message']) if e }
37
+ response.fetch('result')
38
+ rescue => e
39
+ if e.is_a?(Error)
40
+ raise e
41
+ elsif e.is_a?(Faraday::Error)
42
+ raise ConnectionError, e
43
+ else
44
+ raise Error, e
45
+ end
46
+ end
35
47
 
36
- private
48
+ private
37
49
 
38
- def connection
39
- @connection ||= Faraday.new(@json_rpc_endpoint) do |f|
40
- f.adapter :net_http_persistent, pool_size: 5, idle_timeout: @idle_timeout
41
- end.tap do |connection|
42
- unless @json_rpc_endpoint.user.blank?
43
- connection.basic_auth(@json_rpc_endpoint.user, @json_rpc_endpoint.password)
50
+ def connection
51
+ Faraday.new(@json_rpc_endpoint).tap do |connection|
52
+ unless @json_rpc_endpoint.user.blank?
53
+ connection.basic_auth(@json_rpc_endpoint.user,
54
+ @json_rpc_endpoint.password)
55
+ end
44
56
  end
45
57
  end
58
+ memoize :connection
46
59
  end
47
60
  end
48
61
  end
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
- module Ndc
2
+ module Nexbit
3
3
  module Hooks
4
4
  BLOCKCHAIN_VERSION_REQUIREMENT = "~> 1.0.0"
5
5
  WALLET_VERSION_REQUIREMENT = "~> 1.0.0"
@@ -9,8 +9,8 @@ module Peatio
9
9
  unless Gem::Requirement.new(BLOCKCHAIN_VERSION_REQUIREMENT)
10
10
  .satisfied_by?(Gem::Version.new(Peatio::Blockchain::VERSION))
11
11
  [
12
- "Ndc blockchain version requiremnt was not suttisfied by Peatio::Blockchain.",
13
- "Ndc blockchain requires #{BLOCKCHAIN_VERSION_REQUIREMENT}.",
12
+ "Nexbit blockchain version requiremnt was not suttisfied by Peatio::Blockchain.",
13
+ "Nexbit blockchain requires #{BLOCKCHAIN_VERSION_REQUIREMENT}.",
14
14
  "Peatio::Blockchain version is #{Peatio::Blockchain::VERSION}"
15
15
  ].join('\n').tap { |s| Kernel.abort s }
16
16
  end
@@ -18,21 +18,21 @@ module Peatio
18
18
  unless Gem::Requirement.new(WALLET_VERSION_REQUIREMENT)
19
19
  .satisfied_by?(Gem::Version.new(Peatio::Wallet::VERSION))
20
20
  [
21
- "Ndc wallet version requiremnt was not suttisfied by Peatio::Wallet.",
22
- "Ndc wallet requires #{WALLET_VERSION_REQUIREMENT}.",
21
+ "Nexbit wallet version requiremnt was not suttisfied by Peatio::Wallet.",
22
+ "Nexbit wallet requires #{WALLET_VERSION_REQUIREMENT}.",
23
23
  "Peatio::Wallet version is #{Peatio::Wallet::VERSION}"
24
24
  ].join('\n').tap { |s| Kernel.abort s }
25
25
  end
26
26
  end
27
27
 
28
28
  def register
29
- Peatio::Blockchain.registry[:Ndc] = Ndc::Blockchain.new
30
- Peatio::Wallet.registry[:ndcd] = Ndc::Wallet.new
29
+ Peatio::Blockchain.registry[:nexbit] = Nexbit::Blockchain.new
30
+ Peatio::Wallet.registry[:nexbitd] = Nexbit::Wallet.new
31
31
  end
32
32
  end
33
33
 
34
34
  if defined?(Rails::Railtie)
35
- require "peatio/ndc/railtie"
35
+ require "peatio/nexbit/railtie"
36
36
  else
37
37
  check_compatibility
38
38
  register
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
- module Ndc
2
+ module Nexbit
3
3
  class Railtie < Rails::Railtie
4
4
  config.before_initialize do
5
5
  Hooks.check_compatibility
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Ndc
3
- VERSION = "0.1.0".freeze
3
+ VERSION = "0.1.2".freeze
4
4
  end
5
5
  end
@@ -1,58 +1,60 @@
1
- module Ndc
2
- class Wallet < Peatio::Wallet::Abstract
3
-
4
- def initialize(settings = {})
5
- @settings = settings
6
- end
7
-
8
- def configure(settings = {})
9
- # Clean client state during configure.
10
- @client = nil
11
-
12
- @settings.merge!(settings.slice(*SUPPORTED_SETTINGS))
13
-
14
- @wallet = @settings.fetch(:wallet) do
15
- raise Peatio::Wallet::MissingSettingError, :wallet
16
- end.slice(:uri, :address)
17
-
18
- @currency = @settings.fetch(:currency) do
19
- raise Peatio::Wallet::MissingSettingError, :currency
20
- end.slice(:id, :base_factor, :options)
21
- end
22
-
23
- def create_address!(_options = {})
24
- { address: client.json_rpc(:getnewaddress) }
25
- rescue Ndc::Client::Error => e
26
- raise Peatio::Wallet::ClientError, e
27
- end
28
-
29
- def create_transaction!(transaction, options = {})
30
- txid = client.json_rpc(:sendtoaddress,
31
- [
32
- transaction.to_address,
33
- transaction.amount,
34
- '',
35
- '',
36
- options[:subtract_fee].to_s == 'true' # subtract fee from transaction amount.
37
- ])
38
- transaction.hash = txid
39
- transaction
40
- rescue Ndc::Client::Error => e
41
- raise Peatio::Wallet::ClientError, e
42
- end
43
-
44
- def load_balance!
45
- client.json_rpc(:getbalance).to_d
46
-
47
- rescue Ndc::Client::Error => e
48
- raise Peatio::Wallet::ClientError, e
49
- end
50
-
51
- private
52
-
53
- def client
54
- uri = @wallet.fetch(:uri) { raise Peatio::Wallet::MissingSettingError, :uri }
55
- @client ||= Client.new(uri, idle_timeout: 1)
1
+ module Peatio
2
+ module Ndc
3
+ class Wallet < Peatio::Wallet::Abstract
4
+
5
+ def initialize(settings = {})
6
+ @settings = settings
7
+ end
8
+
9
+ def configure(settings = {})
10
+ # Clean client state during configure.
11
+ @client = nil
12
+
13
+ @settings.merge!(settings.slice(*SUPPORTED_SETTINGS))
14
+
15
+ @wallet = @settings.fetch(:wallet) do
16
+ raise Peatio::Wallet::MissingSettingError, :wallet
17
+ end.slice(:uri, :address)
18
+
19
+ @currency = @settings.fetch(:currency) do
20
+ raise Peatio::Wallet::MissingSettingError, :currency
21
+ end.slice(:id, :base_factor, :options)
22
+ end
23
+
24
+ def create_address!(_options = {})
25
+ { address: client.json_rpc(:getnewaddress) }
26
+ rescue Ndc::Client::Error => e
27
+ raise Peatio::Wallet::ClientError, e
28
+ end
29
+
30
+ def create_transaction!(transaction, options = {})
31
+ txid = client.json_rpc(:sendtoaddress,
32
+ [
33
+ transaction.to_address,
34
+ transaction.amount,
35
+ '',
36
+ '',
37
+ options[:subtract_fee].to_s == 'true' # subtract fee from transaction amount.
38
+ ])
39
+ transaction.hash = txid
40
+ transaction
41
+ rescue Ndc::Client::Error => e
42
+ raise Peatio::Wallet::ClientError, e
43
+ end
44
+
45
+ def load_balance!
46
+ client.json_rpc(:getbalance).to_d
47
+
48
+ rescue Ndc::Client::Error => e
49
+ raise Peatio::Wallet::ClientError, e
50
+ end
51
+
52
+ private
53
+
54
+ def client
55
+ uri = @wallet.fetch(:uri) { raise Peatio::Wallet::MissingSettingError, :uri }
56
+ @client ||= Client.new(uri)
57
+ end
56
58
  end
57
59
  end
58
60
  end
data/peatio-ndc.gemspec CHANGED
@@ -39,6 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_dependency "faraday", "~> 0.15.4"
40
40
  spec.add_dependency "memoist", "~> 0.16.0"
41
41
  spec.add_dependency "peatio", "~> 0.6.3"
42
+ spec.add_dependency "net-http-persistent", "~> 3.0.1"
42
43
 
43
44
  spec.add_development_dependency "bundler", "~> 1.17"
44
45
  spec.add_development_dependency "mocha", "~> 1.8"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio-ndc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BitBD
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.6.3
83
+ - !ruby/object:Gem::Dependency
84
+ name: net-http-persistent
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 3.0.1
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 3.0.1
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: bundler
85
99
  requirement: !ruby/object:Gem::Requirement