peatio-litecoin 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/litecoin/client.rb +7 -5
- data/lib/peatio/litecoin/version.rb +1 -1
- data/peatio-litecoin.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: db9b97d7e0a81b6f66040e1b46eff951a5b72ac7f717592ae929fceeef6f4a5c
|
4
|
+
data.tar.gz: 77ff7366cc8cfcf38cba45adcbe07d08bf8e41e61fed65fadd0a297b7bd54651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61a2a7807338e96f0703b764a8fe9402f0dd8b41be7a51fd8281538624815a6bb38c377461b1f4e73cc9f956df5a14461510b24eafccd7c5d8d654b25f2e516e
|
7
|
+
data.tar.gz: 495e42adccff0af358583d9d2b5596282cfa1fc6e3afaba175ec0649cb219cc8ba219ddeec301d4060a94bf22212af2a7b457cf344bbda3353fd61652774f780
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
peatio-litecoin (2.5.
|
4
|
+
peatio-litecoin (2.5.3)
|
5
5
|
activesupport (~> 5.2.3)
|
6
6
|
better-faraday (~> 1.0.5)
|
7
|
-
faraday (~> 0.
|
7
|
+
faraday (~> 0.17)
|
8
8
|
memoist (~> 0.16.0)
|
9
9
|
net-http-persistent (~> 3.0.1)
|
10
10
|
peatio (>= 0.6.3)
|
@@ -12,9 +12,9 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
activemodel (5.2.4.
|
16
|
-
activesupport (= 5.2.4.
|
17
|
-
activesupport (5.2.4.
|
15
|
+
activemodel (5.2.4.3)
|
16
|
+
activesupport (= 5.2.4.3)
|
17
|
+
activesupport (5.2.4.3)
|
18
18
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
19
|
i18n (>= 0.7, < 2)
|
20
20
|
minitest (~> 5.1)
|
@@ -34,13 +34,13 @@ GEM
|
|
34
34
|
clamp (1.3.1)
|
35
35
|
coderay (1.1.2)
|
36
36
|
concurrent-ruby (1.1.6)
|
37
|
-
connection_pool (2.2.
|
37
|
+
connection_pool (2.2.3)
|
38
38
|
cookiejar (0.3.3)
|
39
39
|
crack (0.4.3)
|
40
40
|
safe_yaml (~> 1.0.0)
|
41
41
|
daemons (1.3.1)
|
42
42
|
diff-lcs (1.3)
|
43
|
-
em-http-request (1.1.
|
43
|
+
em-http-request (1.1.6)
|
44
44
|
addressable (>= 2.3.4)
|
45
45
|
cookiejar (!= 0.3.1)
|
46
46
|
em-socksify (>= 0.3)
|
@@ -54,11 +54,11 @@ GEM
|
|
54
54
|
eventmachine (>= 0.12.9)
|
55
55
|
http_parser.rb (~> 0.6.0)
|
56
56
|
eventmachine (1.2.7)
|
57
|
-
faraday (0.
|
57
|
+
faraday (0.17.3)
|
58
58
|
multipart-post (>= 1.2, < 3)
|
59
59
|
faraday_middleware (0.13.1)
|
60
60
|
faraday (>= 0.7.4, < 1.0)
|
61
|
-
faye (1.
|
61
|
+
faye (1.3.0)
|
62
62
|
cookiejar (>= 0.3.0)
|
63
63
|
em-http-request (>= 0.3.0)
|
64
64
|
eventmachine (>= 0.12.0)
|
@@ -71,19 +71,19 @@ GEM
|
|
71
71
|
websocket-driver (>= 0.5.1)
|
72
72
|
hashdiff (1.0.1)
|
73
73
|
http_parser.rb (0.6.0)
|
74
|
-
i18n (1.8.
|
74
|
+
i18n (1.8.3)
|
75
75
|
concurrent-ruby (~> 1.0)
|
76
76
|
jwt (2.2.1)
|
77
77
|
memoist (0.16.2)
|
78
78
|
method_source (1.0.0)
|
79
|
-
minitest (5.14.
|
79
|
+
minitest (5.14.1)
|
80
80
|
mocha (1.11.2)
|
81
81
|
multi_json (1.14.1)
|
82
82
|
multipart-post (2.1.1)
|
83
83
|
mysql2 (0.5.3)
|
84
84
|
net-http-persistent (3.0.1)
|
85
85
|
connection_pool (~> 2.2)
|
86
|
-
peatio (2.
|
86
|
+
peatio (2.6.1)
|
87
87
|
activemodel (> 5.2, <= 6.0.0)
|
88
88
|
amqp
|
89
89
|
bunny
|
@@ -132,9 +132,9 @@ GEM
|
|
132
132
|
addressable (>= 2.3.6)
|
133
133
|
crack (>= 0.3.2)
|
134
134
|
hashdiff (>= 0.4.0, < 2.0.0)
|
135
|
-
websocket-driver (0.7.
|
135
|
+
websocket-driver (0.7.2)
|
136
136
|
websocket-extensions (>= 0.1.0)
|
137
|
-
websocket-extensions (0.1.
|
137
|
+
websocket-extensions (0.1.5)
|
138
138
|
|
139
139
|
PLATFORMS
|
140
140
|
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-litecoin.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 'net-http-persistent', '~> 3.0.1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peatio-litecoin
|
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
|
- Yaroslav S.
|
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
|