peatio-ripple 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa8a8325ee90bf1927e78a90400bf8fc7bce70828cb65d21c1b37077fe9c9518
4
- data.tar.gz: 5ae88ce4c2290406d2da6a9a132045822d303e20acf2e30defea8371c7c2cddc
3
+ metadata.gz: 3ec383e28ef458611a3e667a6c2da978fe038eb4be3b7445912014040e69a3d9
4
+ data.tar.gz: 9d8aa39f2d04e0338af3c5a24c2bf72f3f682e384a9016d8596a764fe02c1373
5
5
  SHA512:
6
- metadata.gz: 53d8039ed1e1630e21dcc0ca91d10c838018388eb01253714bdde82d8cf8b0b692ca494343638bde17eaf1ee97dee27de1c3d219e8f8b8cd404ef142c1d4c3ed
7
- data.tar.gz: 86ec800a89e776d3c44558f00fe42dbefc779577b6032c3832c9f3d14d87405de46d68a5007f95eeca4ceb5b38a7f09f536e873f387c2a4eef4453f8de7c286c
6
+ metadata.gz: 5ac02b41d20347110fd8b2f33b6c8938a6749ff4d84b8d3903aec29f2bb31ecfc35d59732d08d18a07e785ccedb5133d6cff9e962d609ae221ab07d11f7e21d6
7
+ data.tar.gz: a622f1fb5ae345e392ff3ef1c53132cf6da5f625f1c6fbb773eb7779dab224bddfb783ad1ea0bc937bc41e7c95a3579310fad769c7c737c544d048bddfdba1c0
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-ripple (2.5.2)
4
+ peatio-ripple (2.5.3)
5
5
  activesupport (~> 5.2.3)
6
6
  better-faraday (~> 1.0.5)
7
- faraday (~> 0.15.4)
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.2)
16
- activesupport (= 5.2.4.2)
17
- activesupport (5.2.4.2)
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.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.5)
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.15.4)
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.2.5)
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.2)
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.0)
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.4.4)
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.1)
135
+ websocket-driver (0.7.2)
136
136
  websocket-extensions (>= 0.1.0)
137
- websocket-extensions (0.1.4)
137
+ websocket-extensions (0.1.5)
138
138
 
139
139
  PLATFORMS
140
140
  ruby
@@ -27,11 +27,8 @@ module Peatio
27
27
  end
28
28
 
29
29
  def json_rpc(method, params = [])
30
- response = connection.post \
31
- '/',
32
- { jsonrpc: '2.0', id: rpc_call_id, method: method, params: params }.to_json,
33
- { 'Accept' => 'application/json',
34
- 'Content-Type' => 'application/json' }
30
+ response = post(method, params)
31
+
35
32
  response.assert_2xx!
36
33
  response = JSON.parse(response.body)
37
34
  response.fetch('result').tap do |result|
@@ -50,6 +47,11 @@ module Peatio
50
47
 
51
48
  private
52
49
 
50
+ def post(method, params)
51
+ connection.post("/", {jsonrpc: "2.0", id: rpc_call_id, method: method, params: params}.to_json,
52
+ "Accept" => "application/json", "Content-Type" => "application/json")
53
+ end
54
+
53
55
  def rpc_call_id
54
56
  @json_rpc_call_id += 1
55
57
  end
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Ripple
3
- VERSION = "2.5.2".freeze
3
+ VERSION = "2.5.3".freeze
4
4
  end
5
5
  end
@@ -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 "peatio", ">= 0.6.3"
28
- spec.add_dependency "faraday", "~> 0.15.4"
28
+ spec.add_dependency "faraday", "~> 0.17"
29
29
  spec.add_dependency "memoist", "~> 0.16.0"
30
30
  spec.add_dependency "better-faraday", "~> 1.0.5"
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-ripple
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maksym N.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-07 00:00:00.000000000 Z
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.15.4
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.15.4
54
+ version: '0.17'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: memoist
57
57
  requirement: !ruby/object:Gem::Requirement