peatio-ripple 2.6.1 → 3.1.0

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: 473837d503c533e5d0e22e4d5b0ed6053269f40d1f078be4d304cb94ff72b124
4
- data.tar.gz: ea52ceea5c269ae213e379324054d845935af86b6b2288e4d15ff33c6b65e6ab
3
+ metadata.gz: 993a03e642a94719fc6fd343bdc7a411de4ef919d3494f8d3132e8b2e4a447b6
4
+ data.tar.gz: '08df2aad082b3c2afaf5adf26b3955303a23cc09fe2e05df206e5a51f9d30428'
5
5
  SHA512:
6
- metadata.gz: 0b697d8022a6e08a16ab021f2b0e044fe7005191dc22b56dda27a7d5e2e27a381f93325fd8f00f0c150210f1a3a9b472c1af9848d1420db27988e918513447c4
7
- data.tar.gz: 638264ea4301a0d606a0bed07a044fd48d5e38d2c7773282ceafed0f08d53d8a6abf300d526d49a4bb6a2ea935aa4b59aef1107be3c2efdda31cc28171b1d19b
6
+ metadata.gz: 6f434943ace68dafa5b99f35393b16062ea46d406724da567e38084494456884ff60c47d1d3ad203bddb40733241a2501605755da10aa786a911e74297d6995b
7
+ data.tar.gz: 22cd5badb860b0fce07cd4d335b09d1cfce71ebd2ed809588c6ccc58330944d2298a2b928f2053dbc636dab25c3decffbbb03512678e546731d7ce5b92eab27b
data/Gemfile.lock CHANGED
@@ -1,46 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-ripple (2.6.1)
5
- activesupport (~> 5.2.3)
6
- better-faraday (~> 1.0.5)
7
- faraday (~> 0.17)
4
+ peatio-ripple (3.1.0)
5
+ activesupport (~> 6.1.0)
6
+ better-faraday (~> 2.0.1)
7
+ faraday (~> 1.10)
8
8
  memoist (~> 0.16.0)
9
- net-http-persistent (~> 3.0.1)
10
- peatio (>= 0.6.3)
9
+ net-http-persistent (~> 4.0.1)
10
+ peatio (>= 3.1.1)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activemodel (5.2.4.3)
16
- activesupport (= 5.2.4.3)
17
- activesupport (5.2.4.3)
15
+ activemodel (6.1.7.2)
16
+ activesupport (= 6.1.7.2)
17
+ activesupport (6.1.7.2)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
- i18n (>= 0.7, < 2)
20
- minitest (~> 5.1)
21
- tzinfo (~> 1.1)
22
- addressable (2.7.0)
23
- public_suffix (>= 2.0.2, < 5.0)
24
- amq-protocol (2.3.1)
19
+ i18n (>= 1.6, < 2)
20
+ minitest (>= 5.1)
21
+ tzinfo (~> 2.0)
22
+ zeitwerk (~> 2.3)
23
+ addressable (2.8.1)
24
+ public_suffix (>= 2.0.2, < 6.0)
25
+ amq-protocol (2.3.2)
25
26
  amqp (1.8.0)
26
27
  amq-protocol (>= 2.2.0)
27
28
  eventmachine
28
- better-faraday (1.0.8)
29
- activesupport (>= 4.0, < 6.0)
30
- faraday (~> 0.12)
31
- bunny (2.15.0)
29
+ better-faraday (2.0.1)
30
+ activesupport (>= 4.0, < 7.0)
31
+ faraday (>= 1.0, < 3.0)
32
+ bunny (2.20.3)
32
33
  amq-protocol (~> 2.3, >= 2.3.1)
33
- byebug (11.1.1)
34
- clamp (1.3.1)
35
- coderay (1.1.2)
36
- concurrent-ruby (1.1.6)
37
- connection_pool (2.2.3)
34
+ sorted_set (~> 1, >= 1.0.2)
35
+ byebug (11.1.3)
36
+ clamp (1.3.2)
37
+ coderay (1.1.3)
38
+ concurrent-ruby (1.2.2)
39
+ connection_pool (2.3.0)
38
40
  cookiejar (0.3.3)
39
- crack (0.4.3)
40
- safe_yaml (~> 1.0.0)
41
- daemons (1.3.1)
42
- diff-lcs (1.3)
43
- em-http-request (1.1.6)
41
+ crack (0.4.5)
42
+ rexml
43
+ daemons (1.4.1)
44
+ diff-lcs (1.5.0)
45
+ em-http-request (1.1.7)
44
46
  addressable (>= 2.3.4)
45
47
  cookiejar (!= 0.3.1)
46
48
  em-socksify (>= 0.3)
@@ -50,97 +52,123 @@ GEM
50
52
  eventmachine (>= 1.0.0.beta.4)
51
53
  em-synchrony (1.0.6)
52
54
  eventmachine (>= 1.0.0.beta.1)
53
- em-websocket (0.5.1)
55
+ em-websocket (0.5.3)
54
56
  eventmachine (>= 0.12.9)
55
- http_parser.rb (~> 0.6.0)
57
+ http_parser.rb (~> 0)
56
58
  eventmachine (1.2.7)
57
- faraday (0.17.3)
58
- multipart-post (>= 1.2, < 3)
59
- faraday_middleware (0.13.1)
60
- faraday (>= 0.7.4, < 1.0)
61
- faye (1.3.0)
59
+ faraday (1.10.3)
60
+ faraday-em_http (~> 1.0)
61
+ faraday-em_synchrony (~> 1.0)
62
+ faraday-excon (~> 1.1)
63
+ faraday-httpclient (~> 1.0)
64
+ faraday-multipart (~> 1.0)
65
+ faraday-net_http (~> 1.0)
66
+ faraday-net_http_persistent (~> 1.0)
67
+ faraday-patron (~> 1.0)
68
+ faraday-rack (~> 1.0)
69
+ faraday-retry (~> 1.0)
70
+ ruby2_keywords (>= 0.0.4)
71
+ faraday-em_http (1.0.0)
72
+ faraday-em_synchrony (1.0.0)
73
+ faraday-excon (1.1.0)
74
+ faraday-httpclient (1.0.1)
75
+ faraday-multipart (1.0.4)
76
+ multipart-post (~> 2)
77
+ faraday-net_http (1.0.1)
78
+ faraday-net_http_persistent (1.2.0)
79
+ faraday-patron (1.0.0)
80
+ faraday-rack (1.0.0)
81
+ faraday-retry (1.0.3)
82
+ faye (1.4.0)
62
83
  cookiejar (>= 0.3.0)
63
- em-http-request (>= 0.3.0)
84
+ em-http-request (>= 1.1.6)
64
85
  eventmachine (>= 0.12.0)
65
- faye-websocket (>= 0.9.1)
86
+ faye-websocket (>= 0.11.0)
66
87
  multi_json (>= 1.0.0)
67
88
  rack (>= 1.0.0)
68
89
  websocket-driver (>= 0.5.1)
69
- faye-websocket (0.10.9)
90
+ faye-websocket (0.11.1)
70
91
  eventmachine (>= 0.12.0)
71
92
  websocket-driver (>= 0.5.1)
72
93
  hashdiff (1.0.1)
73
- http_parser.rb (0.6.0)
74
- i18n (1.8.3)
94
+ http_parser.rb (0.8.0)
95
+ i18n (1.12.0)
75
96
  concurrent-ruby (~> 1.0)
76
- jwt (2.2.1)
97
+ jwt (2.7.0)
77
98
  memoist (0.16.2)
78
99
  method_source (1.0.0)
79
- minitest (5.14.1)
80
- mocha (1.11.2)
81
- multi_json (1.14.1)
82
- multipart-post (2.1.1)
83
- mysql2 (0.5.3)
84
- net-http-persistent (3.0.1)
100
+ minitest (5.17.0)
101
+ mocha (1.16.1)
102
+ multi_json (1.15.0)
103
+ multipart-post (2.3.0)
104
+ mysql2 (0.5.5)
105
+ net-http-persistent (4.0.1)
85
106
  connection_pool (~> 2.2)
86
- peatio (2.6.1)
87
- activemodel (> 5.2, <= 6.0.0)
107
+ peatio (3.1.1)
108
+ activemodel (> 5.2)
88
109
  amqp
89
110
  bunny
90
111
  clamp
91
112
  em-synchrony (~> 1.0)
92
113
  em-websocket
93
114
  eventmachine
94
- faraday_middleware (~> 0.13.1)
115
+ faraday (~> 1.10)
95
116
  faye (~> 1.2)
96
117
  jwt
97
118
  mysql2
98
119
  prometheus-client
99
120
  thin
100
- prometheus-client (2.0.0)
101
- pry (0.13.0)
121
+ prometheus-client (4.0.0)
122
+ pry (0.14.2)
102
123
  coderay (~> 1.1)
103
124
  method_source (~> 1.0)
104
- pry-byebug (3.9.0)
125
+ pry-byebug (3.8.0)
105
126
  byebug (~> 11.0)
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)
127
+ pry (~> 0.10)
128
+ public_suffix (5.0.1)
129
+ rack (2.2.6.2)
130
+ rake (13.0.6)
131
+ rbtree (0.4.6)
132
+ rexml (3.2.5)
133
+ rspec (3.12.0)
134
+ rspec-core (~> 3.12.0)
135
+ rspec-expectations (~> 3.12.0)
136
+ rspec-mocks (~> 3.12.0)
137
+ rspec-core (3.12.1)
138
+ rspec-support (~> 3.12.0)
139
+ rspec-expectations (3.12.2)
117
140
  diff-lcs (>= 1.2.0, < 2.0)
118
- rspec-support (~> 3.9.0)
119
- rspec-mocks (3.9.1)
141
+ rspec-support (~> 3.12.0)
142
+ rspec-mocks (3.12.3)
120
143
  diff-lcs (>= 1.2.0, < 2.0)
121
- rspec-support (~> 3.9.0)
122
- rspec-support (3.9.2)
123
- safe_yaml (1.0.5)
124
- thin (1.7.2)
144
+ rspec-support (~> 3.12.0)
145
+ rspec-support (3.12.0)
146
+ ruby2_keywords (0.0.5)
147
+ set (1.0.3)
148
+ sorted_set (1.0.3)
149
+ rbtree
150
+ set (~> 1.0)
151
+ thin (1.8.1)
125
152
  daemons (~> 1.0, >= 1.0.9)
126
153
  eventmachine (~> 1.0, >= 1.0.4)
127
154
  rack (>= 1, < 3)
128
- thread_safe (0.3.6)
129
- tzinfo (1.2.7)
130
- thread_safe (~> 0.1)
131
- webmock (3.8.3)
132
- addressable (>= 2.3.6)
155
+ tzinfo (2.0.6)
156
+ concurrent-ruby (~> 1.0)
157
+ webmock (3.18.1)
158
+ addressable (>= 2.8.0)
133
159
  crack (>= 0.3.2)
134
160
  hashdiff (>= 0.4.0, < 2.0.0)
135
- websocket-driver (0.7.2)
161
+ websocket-driver (0.7.5)
136
162
  websocket-extensions (>= 0.1.0)
137
163
  websocket-extensions (0.1.5)
164
+ zeitwerk (2.6.7)
138
165
 
139
166
  PLATFORMS
140
- ruby
167
+ arm64-darwin-21
168
+ x86_64-linux
141
169
 
142
170
  DEPENDENCIES
143
- bundler (~> 1.17)
171
+ bundler (~> 2.4.7)
144
172
  mocha (~> 1.8)
145
173
  peatio-ripple!
146
174
  pry-byebug
@@ -149,4 +177,4 @@ DEPENDENCIES
149
177
  webmock (~> 3.5)
150
178
 
151
179
  BUNDLED WITH
152
- 1.17.3
180
+ 2.4.7
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Ripple
3
- VERSION = "2.6.1".freeze
3
+ VERSION = "3.1.0".freeze
4
4
  end
5
5
  end
@@ -54,6 +54,7 @@ module Peatio
54
54
  # than change status to opposite one before ledger is final.
55
55
  # Need to set special status and recheck this transaction status
56
56
  if result['engine_result'].to_s == 'tesSUCCESS' && result['status'].to_s == 'success'
57
+ transaction.currency_id = 'xrp' if transaction.currency_id.blank?
57
58
  transaction.hash = result.fetch('tx_json').fetch('hash')
58
59
  else
59
60
  raise Error, "XRP withdrawal from #{@wallet.fetch(:address)} to #{transaction.to_address} failed. Message: #{error_message}."
@@ -23,14 +23,14 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ["lib"]
25
25
 
26
- spec.add_dependency "activesupport", "~> 5.2.3"
27
- spec.add_dependency "peatio", ">= 0.6.3"
28
- spec.add_dependency "faraday", "~> 0.17"
26
+ spec.add_dependency "activesupport", "~> 6.1.0"
27
+ spec.add_dependency "peatio", ">= 3.1.1"
28
+ spec.add_dependency "faraday", "~> 1.10"
29
29
  spec.add_dependency "memoist", "~> 0.16.0"
30
- spec.add_dependency "better-faraday", "~> 1.0.5"
31
- spec.add_dependency 'net-http-persistent', '~> 3.0.1'
30
+ spec.add_dependency "better-faraday", "~> 2.0.1"
31
+ spec.add_dependency 'net-http-persistent', '~> 4.0.1'
32
32
 
33
- spec.add_development_dependency "bundler", "~> 1.17"
33
+ spec.add_development_dependency "bundler", "~> 2.4.7"
34
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"
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.6.1
4
+ version: 3.1.0
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-06-10 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.3
19
+ version: 6.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 5.2.3
26
+ version: 6.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: peatio
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.6.3
33
+ version: 3.1.1
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
- version: 0.6.3
40
+ version: 3.1.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.17'
47
+ version: '1.10'
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.17'
54
+ version: '1.10'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: memoist
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,42 +72,42 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.0.5
75
+ version: 2.0.1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.0.5
82
+ version: 2.0.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: net-http-persistent
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 3.0.1
89
+ version: 4.0.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 3.0.1
96
+ version: 4.0.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.17'
103
+ version: 2.4.7
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.17'
110
+ version: 2.4.7
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  - !ruby/object:Gem::Version
230
230
  version: '0'
231
231
  requirements: []
232
- rubygems_version: 3.0.3
232
+ rubygems_version: 3.0.3.1
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: Gem for extending Peatio plugable system with Ripple implementation.