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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a82e36b0d269604cc8356fd4f529f8ad2f7952d99b8410a704958f89f37773a
4
- data.tar.gz: a3f07a1755d30a78f7705ba3a3380362b891e0ffe81294c04bdb9c152f72b861
3
+ metadata.gz: e12e8dd94904f0e60b5bc27396bcce91551e82c3eaf95aef206037e78e1b2a98
4
+ data.tar.gz: 40d1179302f5659fb8d896e01bac7c7b92f2047b805f3d62d2efb846b0aa28e3
5
5
  SHA512:
6
- metadata.gz: b91159b05ddb7d3def89ccd7b25be67131589b8344f45de43fdbab397ad0d04cea13c56b28d27a95d13e41bc665b1de205e455270d63dc895fee98c3f6320a26
7
- data.tar.gz: e9a7f6b318f5455ae7d374a453b09ad81fa8a617035cc45464d887572dfb299a6253df997358b5ad6b55c2881c307b065250a90e48e651c9a0253208ee03699c
6
+ metadata.gz: 2ca20a92b9e130d1a2680f1c8ad94d6b60191b9950421b9a07a8607e5993cd9218de012ae7cdb5c3d0598eee9e94ec482eac437090912e896b8e046f690209af
7
+ data.tar.gz: 719530948ee7d892a889088b3311b33e04798beced3537150c7a51dfbc8521968df9de58022d8755651d7faf350e66704bf73769c2202e7a9e9f4a1c54bab356
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-bitcoincash (2.5.2)
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.15.4)
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.2)
17
- activesupport (= 5.2.4.2)
18
- activesupport (5.2.4.2)
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.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.5)
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.15.4)
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.2.5)
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.2)
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.0)
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.4.4)
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.1)
139
+ websocket-driver (0.7.2)
140
140
  websocket-extensions (>= 0.1.0)
141
- websocket-extensions (0.1.4)
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 = connection.post \
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
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Bitcoincash
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 "better-faraday", "~> 1.0.5"
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 "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.2
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-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