peatio-ripple 0.1.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: fca8aa799c1b54795efa9cbac40bb012f921b5696be7227ea5d3ac77249e3b49
4
- data.tar.gz: 9ca88c8760dd198af3c4e37eeff9f6b56e71693e5f81b5bba9d4f703ab32d286
3
+ metadata.gz: 3ec383e28ef458611a3e667a6c2da978fe038eb4be3b7445912014040e69a3d9
4
+ data.tar.gz: 9d8aa39f2d04e0338af3c5a24c2bf72f3f682e384a9016d8596a764fe02c1373
5
5
  SHA512:
6
- metadata.gz: 698f9775c3af56b6fb836e4db5a82cc9b35adfc50d60b2290124a12c77db3d59132c527e727ba75aaf6bf21ed32172ed76f4925f3d3543588e15d9130e2e27ce
7
- data.tar.gz: 8a0213dc55a40cbf3761c6791213356ddc9a4849e9780d70575239d052d0564c3028cc08070e551429ae8b4ea9bf488fa2d71206e3f7d0971048c1d0af43ab79
6
+ metadata.gz: 5ac02b41d20347110fd8b2f33b6c8938a6749ff4d84b8d3903aec29f2bb31ecfc35d59732d08d18a07e785ccedb5133d6cff9e962d609ae221ab07d11f7e21d6
7
+ data.tar.gz: a622f1fb5ae345e392ff3ef1c53132cf6da5f625f1c6fbb773eb7779dab224bddfb783ad1ea0bc937bc41e7c95a3579310fad769c7c737c544d048bddfdba1c0
@@ -1,102 +1,140 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-ripple (0.1.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
- peatio (~> 0.6.3)
10
+ peatio (>= 0.6.3)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activemodel (5.2.3)
16
- activesupport (= 5.2.3)
17
- activesupport (5.2.3)
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)
21
21
  tzinfo (~> 1.1)
22
- addressable (2.6.0)
23
- public_suffix (>= 2.0.2, < 4.0)
24
- amq-protocol (2.3.0)
22
+ addressable (2.7.0)
23
+ public_suffix (>= 2.0.2, < 5.0)
24
+ amq-protocol (2.3.1)
25
25
  amqp (1.8.0)
26
26
  amq-protocol (>= 2.2.0)
27
27
  eventmachine
28
28
  better-faraday (1.0.8)
29
29
  activesupport (>= 4.0, < 6.0)
30
30
  faraday (~> 0.12)
31
- bunny (2.14.3)
32
- amq-protocol (~> 2.3, >= 2.3.0)
33
- byebug (11.0.1)
31
+ bunny (2.15.0)
32
+ amq-protocol (~> 2.3, >= 2.3.1)
33
+ byebug (11.1.1)
34
34
  clamp (1.3.1)
35
35
  coderay (1.1.2)
36
- concurrent-ruby (1.1.5)
37
- connection_pool (2.2.2)
36
+ concurrent-ruby (1.1.6)
37
+ connection_pool (2.2.3)
38
+ cookiejar (0.3.3)
38
39
  crack (0.4.3)
39
40
  safe_yaml (~> 1.0.0)
41
+ daemons (1.3.1)
40
42
  diff-lcs (1.3)
43
+ em-http-request (1.1.6)
44
+ addressable (>= 2.3.4)
45
+ cookiejar (!= 0.3.1)
46
+ em-socksify (>= 0.3)
47
+ eventmachine (>= 1.0.3)
48
+ http_parser.rb (>= 0.6.0)
49
+ em-socksify (0.3.2)
50
+ eventmachine (>= 1.0.0.beta.4)
51
+ em-synchrony (1.0.6)
52
+ eventmachine (>= 1.0.0.beta.1)
41
53
  em-websocket (0.5.1)
42
54
  eventmachine (>= 0.12.9)
43
55
  http_parser.rb (~> 0.6.0)
44
56
  eventmachine (1.2.7)
45
- faraday (0.15.4)
57
+ faraday (0.17.3)
46
58
  multipart-post (>= 1.2, < 3)
47
- hashdiff (0.3.9)
59
+ faraday_middleware (0.13.1)
60
+ faraday (>= 0.7.4, < 1.0)
61
+ faye (1.3.0)
62
+ cookiejar (>= 0.3.0)
63
+ em-http-request (>= 0.3.0)
64
+ eventmachine (>= 0.12.0)
65
+ faye-websocket (>= 0.9.1)
66
+ multi_json (>= 1.0.0)
67
+ rack (>= 1.0.0)
68
+ websocket-driver (>= 0.5.1)
69
+ faye-websocket (0.10.9)
70
+ eventmachine (>= 0.12.0)
71
+ websocket-driver (>= 0.5.1)
72
+ hashdiff (1.0.1)
48
73
  http_parser.rb (0.6.0)
49
- i18n (1.7.0)
74
+ i18n (1.8.3)
50
75
  concurrent-ruby (~> 1.0)
51
76
  jwt (2.2.1)
52
- memoist (0.16.1)
53
- metaclass (0.0.4)
54
- method_source (0.9.2)
55
- minitest (5.13.0)
56
- mocha (1.8.0)
57
- metaclass (~> 0.0.1)
77
+ memoist (0.16.2)
78
+ method_source (1.0.0)
79
+ minitest (5.14.1)
80
+ mocha (1.11.2)
81
+ multi_json (1.14.1)
58
82
  multipart-post (2.1.1)
59
- mysql2 (0.5.2)
83
+ mysql2 (0.5.3)
60
84
  net-http-persistent (3.0.1)
61
85
  connection_pool (~> 2.2)
62
- peatio (0.6.3)
86
+ peatio (2.6.1)
63
87
  activemodel (> 5.2, <= 6.0.0)
64
88
  amqp
65
89
  bunny
66
90
  clamp
91
+ em-synchrony (~> 1.0)
67
92
  em-websocket
68
93
  eventmachine
94
+ faraday_middleware (~> 0.13.1)
95
+ faye (~> 1.2)
69
96
  jwt
70
97
  mysql2
71
- pry (0.12.2)
72
- coderay (~> 1.1.0)
73
- method_source (~> 0.9.0)
74
- pry-byebug (3.7.0)
98
+ prometheus-client
99
+ thin
100
+ prometheus-client (2.0.0)
101
+ pry (0.13.0)
102
+ coderay (~> 1.1)
103
+ method_source (~> 1.0)
104
+ pry-byebug (3.9.0)
75
105
  byebug (~> 11.0)
76
- pry (~> 0.10)
77
- public_suffix (3.0.3)
78
- rake (10.5.0)
79
- rspec (3.8.0)
80
- rspec-core (~> 3.8.0)
81
- rspec-expectations (~> 3.8.0)
82
- rspec-mocks (~> 3.8.0)
83
- rspec-core (3.8.0)
84
- rspec-support (~> 3.8.0)
85
- rspec-expectations (3.8.2)
106
+ pry (~> 0.13.0)
107
+ public_suffix (4.0.4)
108
+ rack (2.2.2)
109
+ rake (13.0.1)
110
+ rspec (3.9.0)
111
+ rspec-core (~> 3.9.0)
112
+ rspec-expectations (~> 3.9.0)
113
+ rspec-mocks (~> 3.9.0)
114
+ rspec-core (3.9.1)
115
+ rspec-support (~> 3.9.1)
116
+ rspec-expectations (3.9.1)
86
117
  diff-lcs (>= 1.2.0, < 2.0)
87
- rspec-support (~> 3.8.0)
88
- rspec-mocks (3.8.0)
118
+ rspec-support (~> 3.9.0)
119
+ rspec-mocks (3.9.1)
89
120
  diff-lcs (>= 1.2.0, < 2.0)
90
- rspec-support (~> 3.8.0)
91
- rspec-support (3.8.0)
121
+ rspec-support (~> 3.9.0)
122
+ rspec-support (3.9.2)
92
123
  safe_yaml (1.0.5)
124
+ thin (1.7.2)
125
+ daemons (~> 1.0, >= 1.0.9)
126
+ eventmachine (~> 1.0, >= 1.0.4)
127
+ rack (>= 1, < 3)
93
128
  thread_safe (0.3.6)
94
- tzinfo (1.2.5)
129
+ tzinfo (1.2.7)
95
130
  thread_safe (~> 0.1)
96
- webmock (3.5.1)
131
+ webmock (3.8.3)
97
132
  addressable (>= 2.3.6)
98
133
  crack (>= 0.3.2)
99
- hashdiff
134
+ hashdiff (>= 0.4.0, < 2.0.0)
135
+ websocket-driver (0.7.2)
136
+ websocket-extensions (>= 0.1.0)
137
+ websocket-extensions (0.1.5)
100
138
 
101
139
  PLATFORMS
102
140
  ruby
@@ -106,7 +144,7 @@ DEPENDENCIES
106
144
  mocha (~> 1.8)
107
145
  peatio-ripple!
108
146
  pry-byebug
109
- rake (~> 10.0)
147
+ rake (~> 13.0)
110
148
  rspec (~> 3.0)
111
149
  webmock (~> 3.5)
112
150
 
@@ -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
@@ -19,8 +19,8 @@ module Peatio
19
19
  end
20
20
 
21
21
  def register
22
- Peatio::Blockchain.registry[:ripple] = Ripple::Blockchain.new
23
- Peatio::Wallet.registry[:rippled] = Ripple::Wallet.new
22
+ Peatio::Blockchain.registry[:ripple] = Ripple::Blockchain
23
+ Peatio::Wallet.registry[:rippled] = Ripple::Wallet
24
24
  end
25
25
  end
26
26
 
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Ripple
3
- VERSION = "0.1.2"
3
+ VERSION = "2.5.3".freeze
4
4
  end
5
5
  end
@@ -24,14 +24,14 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ["lib"]
25
25
 
26
26
  spec.add_dependency "activesupport", "~> 5.2.3"
27
- spec.add_dependency "peatio", "~> 0.6.3"
28
- spec.add_dependency "faraday", "~> 0.15.4"
27
+ spec.add_dependency "peatio", ">= 0.6.3"
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'
32
32
 
33
33
  spec.add_development_dependency "bundler", "~> 1.17"
34
- spec.add_development_dependency "rake", "~> 10.0"
34
+ spec.add_development_dependency "rake", "~> 13.0"
35
35
  spec.add_development_dependency "rspec", "~> 3.0"
36
36
  spec.add_development_dependency "mocha", "~> 1.8"
37
37
  spec.add_development_dependency "pry-byebug"
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: 0.1.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: 2019-11-14 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
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: peatio
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.6.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.6.3
41
41
  - !ruby/object:Gem::Dependency
@@ -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
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '10.0'
117
+ version: '13.0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '10.0'
124
+ version: '13.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement