peatio-bitcoincash 2.5.2 → 2.5.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 +14 -14
- data/lib/peatio/bitcoincash/client.rb +7 -5
- data/lib/peatio/bitcoincash/version.rb +1 -1
- data/peatio-bitcoincash.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e12e8dd94904f0e60b5bc27396bcce91551e82c3eaf95aef206037e78e1b2a98
|
4
|
+
data.tar.gz: 40d1179302f5659fb8d896e01bac7c7b92f2047b805f3d62d2efb846b0aa28e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ca20a92b9e130d1a2680f1c8ad94d6b60191b9950421b9a07a8607e5993cd9218de012ae7cdb5c3d0598eee9e94ec482eac437090912e896b8e046f690209af
|
7
|
+
data.tar.gz: 719530948ee7d892a889088b3311b33e04798beced3537150c7a51dfbc8521968df9de58022d8755651d7faf350e66704bf73769c2202e7a9e9f4a1c54bab356
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
peatio-bitcoincash (2.5.
|
4
|
+
peatio-bitcoincash (2.5.3)
|
5
5
|
activesupport (~> 5.2.3)
|
6
6
|
better-faraday (~> 1.0.5)
|
7
7
|
cash-addr (~> 0.2.0)
|
8
|
-
faraday (~> 0.
|
8
|
+
faraday (~> 0.17)
|
9
9
|
memoist (~> 0.16.0)
|
10
10
|
net-http-persistent (~> 3.0.1)
|
11
11
|
peatio (>= 0.6.3)
|
@@ -13,9 +13,9 @@ PATH
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
activemodel (5.2.4.
|
17
|
-
activesupport (= 5.2.4.
|
18
|
-
activesupport (5.2.4.
|
16
|
+
activemodel (5.2.4.3)
|
17
|
+
activesupport (= 5.2.4.3)
|
18
|
+
activesupport (5.2.4.3)
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
20
|
i18n (>= 0.7, < 2)
|
21
21
|
minitest (~> 5.1)
|
@@ -38,13 +38,13 @@ GEM
|
|
38
38
|
clamp (1.3.1)
|
39
39
|
coderay (1.1.2)
|
40
40
|
concurrent-ruby (1.1.6)
|
41
|
-
connection_pool (2.2.
|
41
|
+
connection_pool (2.2.3)
|
42
42
|
cookiejar (0.3.3)
|
43
43
|
crack (0.4.3)
|
44
44
|
safe_yaml (~> 1.0.0)
|
45
45
|
daemons (1.3.1)
|
46
46
|
diff-lcs (1.3)
|
47
|
-
em-http-request (1.1.
|
47
|
+
em-http-request (1.1.6)
|
48
48
|
addressable (>= 2.3.4)
|
49
49
|
cookiejar (!= 0.3.1)
|
50
50
|
em-socksify (>= 0.3)
|
@@ -58,11 +58,11 @@ GEM
|
|
58
58
|
eventmachine (>= 0.12.9)
|
59
59
|
http_parser.rb (~> 0.6.0)
|
60
60
|
eventmachine (1.2.7)
|
61
|
-
faraday (0.
|
61
|
+
faraday (0.17.3)
|
62
62
|
multipart-post (>= 1.2, < 3)
|
63
63
|
faraday_middleware (0.13.1)
|
64
64
|
faraday (>= 0.7.4, < 1.0)
|
65
|
-
faye (1.
|
65
|
+
faye (1.3.0)
|
66
66
|
cookiejar (>= 0.3.0)
|
67
67
|
em-http-request (>= 0.3.0)
|
68
68
|
eventmachine (>= 0.12.0)
|
@@ -75,19 +75,19 @@ GEM
|
|
75
75
|
websocket-driver (>= 0.5.1)
|
76
76
|
hashdiff (1.0.1)
|
77
77
|
http_parser.rb (0.6.0)
|
78
|
-
i18n (1.8.
|
78
|
+
i18n (1.8.3)
|
79
79
|
concurrent-ruby (~> 1.0)
|
80
80
|
jwt (2.2.1)
|
81
81
|
memoist (0.16.2)
|
82
82
|
method_source (1.0.0)
|
83
|
-
minitest (5.14.
|
83
|
+
minitest (5.14.1)
|
84
84
|
mocha (1.11.2)
|
85
85
|
multi_json (1.14.1)
|
86
86
|
multipart-post (2.1.1)
|
87
87
|
mysql2 (0.5.3)
|
88
88
|
net-http-persistent (3.0.1)
|
89
89
|
connection_pool (~> 2.2)
|
90
|
-
peatio (2.
|
90
|
+
peatio (2.6.1)
|
91
91
|
activemodel (> 5.2, <= 6.0.0)
|
92
92
|
amqp
|
93
93
|
bunny
|
@@ -136,9 +136,9 @@ GEM
|
|
136
136
|
addressable (>= 2.3.6)
|
137
137
|
crack (>= 0.3.2)
|
138
138
|
hashdiff (>= 0.4.0, < 2.0.0)
|
139
|
-
websocket-driver (0.7.
|
139
|
+
websocket-driver (0.7.2)
|
140
140
|
websocket-extensions (>= 0.1.0)
|
141
|
-
websocket-extensions (0.1.
|
141
|
+
websocket-extensions (0.1.5)
|
142
142
|
|
143
143
|
PLATFORMS
|
144
144
|
ruby
|
@@ -26,11 +26,8 @@ module Peatio
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def json_rpc(method, params = [])
|
29
|
-
response =
|
30
|
-
|
31
|
-
{ jsonrpc: '1.0', method: method, params: params }.to_json,
|
32
|
-
{ 'Accept' => 'application/json',
|
33
|
-
'Content-Type' => 'application/json' }
|
29
|
+
response = post(method, params)
|
30
|
+
|
34
31
|
response.assert_2xx!
|
35
32
|
response = JSON.parse(response.body)
|
36
33
|
response['error'].tap { |e| raise ResponseError.new(e['code'], e['message']) if e }
|
@@ -47,6 +44,11 @@ module Peatio
|
|
47
44
|
|
48
45
|
private
|
49
46
|
|
47
|
+
def post(method, params)
|
48
|
+
connection.post("/", {jsonrpc: "1.0", method: method, params: params}.to_json,
|
49
|
+
"Accept" => "application/json", "Content-Type" => "application/json")
|
50
|
+
end
|
51
|
+
|
50
52
|
def connection
|
51
53
|
@connection ||= Faraday.new(@json_rpc_endpoint) do |f|
|
52
54
|
f.adapter :net_http_persistent, pool_size: 5
|
data/peatio-bitcoincash.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.add_dependency "activesupport", "~> 5.2.3"
|
27
27
|
spec.add_dependency "better-faraday", "~> 1.0.5"
|
28
|
-
spec.add_dependency "faraday", "~> 0.
|
28
|
+
spec.add_dependency "faraday", "~> 0.17"
|
29
29
|
spec.add_dependency "memoist", "~> 0.16.0"
|
30
30
|
spec.add_dependency "peatio", ">= 0.6.3"
|
31
31
|
spec.add_dependency "cash-addr", '~> 0.2.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peatio-bitcoincash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dinesh Chohda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: '0.17'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: '0.17'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: memoist
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|