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 +4 -4
- data/Gemfile.lock +48 -46
- data/README.md +1 -0
- data/lib/peatio/ndc/blockchain.rb +55 -52
- data/lib/peatio/ndc/client.rb +48 -35
- data/lib/peatio/ndc/hooks.rb +8 -8
- data/lib/peatio/ndc/railtie.rb +1 -1
- data/lib/peatio/ndc/version.rb +1 -1
- data/lib/peatio/ndc/wallet.rb +57 -55
- data/peatio-ndc.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a03e52e0c58b810d748551008411f42e8c6873e1652a9e02508da335d1de0b04
|
4
|
+
data.tar.gz: 2936ca54a8e8da5bfe4063109b8a6737f20f42af9ab74c222b1d8e781ece2cf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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
|
-
|
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.
|
15
|
-
activesupport (= 5.2.
|
16
|
-
activesupport (5.2.
|
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.
|
22
|
-
public_suffix (>= 2.0.2, <
|
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.
|
28
|
+
better-faraday (1.0.8)
|
28
29
|
activesupport (>= 4.0, < 6.0)
|
29
30
|
faraday (~> 0.12)
|
30
|
-
bunny (2.14.
|
31
|
+
bunny (2.14.4)
|
31
32
|
amq-protocol (~> 2.3, >= 2.3.0)
|
32
|
-
byebug (11.
|
33
|
-
clamp (1.3.
|
33
|
+
byebug (11.1.1)
|
34
|
+
clamp (1.3.1)
|
34
35
|
coderay (1.1.2)
|
35
|
-
concurrent-ruby (1.1.
|
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.
|
47
|
+
hashdiff (1.0.1)
|
46
48
|
http_parser.rb (0.6.0)
|
47
|
-
i18n (1.
|
49
|
+
i18n (1.8.2)
|
48
50
|
concurrent-ruby (~> 1.0)
|
49
51
|
jwt (2.2.1)
|
50
|
-
memoist (0.16.
|
51
|
-
|
52
|
-
|
53
|
-
|
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.
|
58
|
-
|
59
|
-
|
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.
|
68
|
-
coderay (~> 1.1
|
69
|
-
method_source (~>
|
70
|
-
pry-byebug (3.
|
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.
|
73
|
-
public_suffix (
|
74
|
+
pry (~> 0.13.0)
|
75
|
+
public_suffix (4.0.3)
|
74
76
|
rake (10.5.0)
|
75
|
-
rspec (3.
|
76
|
-
rspec-core (~> 3.
|
77
|
-
rspec-expectations (~> 3.
|
78
|
-
rspec-mocks (~> 3.
|
79
|
-
rspec-core (3.
|
80
|
-
rspec-support (~> 3.
|
81
|
-
rspec-expectations (3.
|
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.
|
84
|
-
rspec-mocks (3.
|
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.
|
87
|
-
rspec-support (3.
|
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.
|
92
|
+
tzinfo (1.2.7)
|
91
93
|
thread_safe (~> 0.1)
|
92
|
-
webmock (3.
|
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.
|
103
|
+
bundler (~> 1.17)
|
102
104
|
mocha (~> 1.8)
|
103
|
-
peatio-
|
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.
|
112
|
+
1.17.3
|
data/README.md
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
-
|
19
|
-
|
20
|
+
def fetch_block!(block_number)
|
21
|
+
block_hash = client.json_rpc(:getblockhash, [block_number])
|
20
22
|
|
21
|
-
|
22
|
-
|
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
|
-
|
29
|
-
|
30
|
-
|
30
|
+
rescue Client::Error => e
|
31
|
+
raise Peatio::Blockchain::ClientError, e
|
32
|
+
end
|
31
33
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
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
|
-
|
44
|
-
|
45
|
-
|
45
|
+
if address_with_balance.blank?
|
46
|
+
raise Peatio::Blockchain::UnavailableAddressBalanceError, address
|
47
|
+
end
|
46
48
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
49
|
+
address_with_balance[1].to_d
|
50
|
+
rescue Client::Error => e
|
51
|
+
raise Peatio::Blockchain::ClientError, e
|
52
|
+
end
|
51
53
|
|
52
|
-
|
54
|
+
private
|
53
55
|
|
54
|
-
|
55
|
-
|
56
|
-
|
56
|
+
def build_transaction(tx_hash)
|
57
|
+
tx_hash.fetch('vout')
|
58
|
+
.select do |entry|
|
57
59
|
entry.fetch('value').to_d > 0 &&
|
58
|
-
|
60
|
+
entry['scriptPubKey'].has_key?('addresses')
|
59
61
|
end
|
60
|
-
|
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
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
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
|
-
|
74
|
+
end
|
73
75
|
|
74
|
-
|
75
|
-
|
76
|
-
|
76
|
+
def client
|
77
|
+
@client ||= Client.new(settings_fetch(:server))
|
78
|
+
end
|
77
79
|
|
78
|
-
|
79
|
-
|
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
|
data/lib/peatio/ndc/client.rb
CHANGED
@@ -1,48 +1,61 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
require 'memoist'
|
2
|
+
require 'faraday'
|
3
|
+
require 'better-faraday'
|
4
4
|
|
5
|
-
|
5
|
+
module Peatio
|
6
|
+
module Ndc
|
7
|
+
class Client
|
8
|
+
Error = Class.new(StandardError)
|
9
|
+
class ConnectionError < Error; end
|
6
10
|
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
22
|
+
extend Memoist
|
14
23
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
end
|
24
|
+
def initialize(endpoint)
|
25
|
+
@json_rpc_endpoint = URI.parse(endpoint)
|
26
|
+
end
|
19
27
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
-
|
48
|
+
private
|
37
49
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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
|
data/lib/peatio/ndc/hooks.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Peatio
|
2
|
-
module
|
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
|
-
"
|
13
|
-
"
|
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
|
-
"
|
22
|
-
"
|
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[:
|
30
|
-
Peatio::Wallet.registry[:
|
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/
|
35
|
+
require "peatio/nexbit/railtie"
|
36
36
|
else
|
37
37
|
check_compatibility
|
38
38
|
register
|
data/lib/peatio/ndc/railtie.rb
CHANGED
data/lib/peatio/ndc/version.rb
CHANGED
data/lib/peatio/ndc/wallet.rb
CHANGED
@@ -1,58 +1,60 @@
|
|
1
|
-
module
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
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.
|
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
|