istox 0.2.20.pre.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -19
- data/lib/istox/consumers/blockchain_status_handler.rb +2 -8
- data/lib/istox/helpers/gruf_listener_hook.rb +7 -7
- data/lib/istox/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf92c8de5dc5407049f3a216cbf0d63df754aa1c4d23473a2a87a9628d71bbc8
|
4
|
+
data.tar.gz: 2cfce3c6ef9c45edcff3f9c34d8e27def16e6ed6cf94343acd9d810052d2ecb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f91e99b9bb7ae5fab66068e14d7c049187662b7265afcb45c7538af6b72bbd4c0e8d60eb7b0afd0e3eb60412709b32a42f38a3eebab8f07d8ef56d64f5fa76cd
|
7
|
+
data.tar.gz: 7f48b151239306cdfe9b754c195f7f2d01608efddec8342aaf10f779f6693fdf4b9ece2cf3208345e79ae3e605cc94b9ec5382ed229895a7fc7e28645bc5afe0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
istox (0.2.
|
4
|
+
istox (0.2.15)
|
5
5
|
amazing_print
|
6
6
|
awesome_print
|
7
7
|
aws-sdk-sns (~> 1)
|
@@ -63,7 +63,7 @@ GEM
|
|
63
63
|
i18n (>= 0.7, < 2)
|
64
64
|
minitest (~> 5.1)
|
65
65
|
tzinfo (~> 1.1)
|
66
|
-
amazing_print (1.
|
66
|
+
amazing_print (1.3.0)
|
67
67
|
amq-protocol (2.3.2)
|
68
68
|
arel (9.0.0)
|
69
69
|
awesome_print (1.9.2)
|
@@ -74,8 +74,8 @@ GEM
|
|
74
74
|
aws-partitions (~> 1, >= 1.239.0)
|
75
75
|
aws-sigv4 (~> 1.1)
|
76
76
|
jmespath (~> 1.0)
|
77
|
-
aws-sdk-sns (1.
|
78
|
-
aws-sdk-core (~> 3, >= 3.
|
77
|
+
aws-sdk-sns (1.42.0)
|
78
|
+
aws-sdk-core (~> 3, >= 3.112.0)
|
79
79
|
aws-sigv4 (~> 1.1)
|
80
80
|
aws-sdk-xray (1.4.0)
|
81
81
|
aws-sdk-core (~> 3)
|
@@ -112,7 +112,7 @@ GEM
|
|
112
112
|
i18n (~> 0.5)
|
113
113
|
fakeredis (0.7.0)
|
114
114
|
redis (>= 3.2, < 5.0)
|
115
|
-
faraday (1.
|
115
|
+
faraday (1.5.1)
|
116
116
|
faraday-em_http (~> 1.0)
|
117
117
|
faraday-em_synchrony (~> 1.0)
|
118
118
|
faraday-excon (~> 1.1)
|
@@ -120,7 +120,6 @@ GEM
|
|
120
120
|
faraday-net_http (~> 1.0)
|
121
121
|
faraday-net_http_persistent (~> 1.1)
|
122
122
|
faraday-patron (~> 1.0)
|
123
|
-
faraday-rack (~> 1.0)
|
124
123
|
multipart-post (>= 1.2, < 3)
|
125
124
|
ruby2_keywords (>= 0.0.4)
|
126
125
|
faraday-em_http (1.0.0)
|
@@ -130,27 +129,26 @@ GEM
|
|
130
129
|
faraday-net_http (1.0.1)
|
131
130
|
faraday-net_http_persistent (1.2.0)
|
132
131
|
faraday-patron (1.0.0)
|
133
|
-
|
134
|
-
faraday_middleware (1.2.0)
|
132
|
+
faraday_middleware (1.0.0)
|
135
133
|
faraday (~> 1.0)
|
136
|
-
ffi (1.15.
|
134
|
+
ffi (1.15.3)
|
137
135
|
globalid (0.4.2)
|
138
136
|
activesupport (>= 4.2.0)
|
139
|
-
google-protobuf (3.
|
140
|
-
googleapis-common-protos-types (1.
|
137
|
+
google-protobuf (3.17.3-universal-darwin)
|
138
|
+
googleapis-common-protos-types (1.1.0)
|
141
139
|
google-protobuf (~> 3.14)
|
142
140
|
graphlient (0.5.0)
|
143
141
|
faraday (>= 1.0)
|
144
142
|
faraday_middleware
|
145
143
|
graphql-client
|
146
|
-
graphql (1.
|
147
|
-
graphql-client (0.
|
144
|
+
graphql (1.12.14)
|
145
|
+
graphql-client (0.16.0)
|
148
146
|
activesupport (>= 3.0)
|
149
|
-
graphql (~> 1.
|
150
|
-
grpc (1.
|
151
|
-
google-protobuf (~> 3.
|
147
|
+
graphql (~> 1.8)
|
148
|
+
grpc (1.38.0-universal-darwin)
|
149
|
+
google-protobuf (~> 3.15)
|
152
150
|
googleapis-common-protos-types (~> 1.0)
|
153
|
-
grpc-tools (1.
|
151
|
+
grpc-tools (1.38.0)
|
154
152
|
hashie (3.5.7)
|
155
153
|
i18n (0.9.5)
|
156
154
|
concurrent-ruby (~> 1.0)
|
@@ -180,7 +178,7 @@ GEM
|
|
180
178
|
nokogiri (1.11.7)
|
181
179
|
mini_portile2 (~> 2.5.0)
|
182
180
|
racc (~> 1.4)
|
183
|
-
oj (3.
|
181
|
+
oj (3.12.2)
|
184
182
|
ougai (2.0.0)
|
185
183
|
oj (~> 3.10)
|
186
184
|
paranoia (2.4.3)
|
@@ -267,7 +265,7 @@ GEM
|
|
267
265
|
rspec-support (~> 3.8.0)
|
268
266
|
rspec-support (3.8.0)
|
269
267
|
ruby2_keywords (0.0.5)
|
270
|
-
set (1.0.
|
268
|
+
set (1.0.1)
|
271
269
|
slop (4.9.1)
|
272
270
|
sorted_set (1.0.3)
|
273
271
|
rbtree
|
@@ -27,16 +27,10 @@ module Istox
|
|
27
27
|
|
28
28
|
resource = begin
|
29
29
|
cls = class_eval("::#{receipt.resource_name}", __FILE__, __LINE__)
|
30
|
-
if receipt.resource_name == 'Auth::ReferralProgramPayoutList' && receipt.request_reason.present?
|
31
|
-
data = JSON.parse(receipt.request_reason, object_class: OpenStruct)
|
32
|
-
id = data.ref_id
|
33
|
-
else
|
34
|
-
id = receipt.resource_id
|
35
|
-
end
|
36
30
|
if cls.respond_to?('with_deleted')
|
37
|
-
cls.with_deleted.find(
|
31
|
+
cls.with_deleted.find(receipt.resource_id)
|
38
32
|
else
|
39
|
-
cls.find(
|
33
|
+
cls.find(receipt.resource_id)
|
40
34
|
end
|
41
35
|
rescue NameError
|
42
36
|
log.warn "Transaction bind to #{receipt.resource_name} with id #{receipt.resource_id} class not found, skipping..."
|
@@ -3,14 +3,14 @@ module Istox
|
|
3
3
|
def before_server_start(server:)
|
4
4
|
# do my thing before the server starts
|
5
5
|
|
6
|
-
@listener = ::Listen.to('app/rpc') do |modified, added, removed|
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
# @listener = ::Listen.to('app/rpc') do |modified, added, removed|
|
7
|
+
# puts "modified absolute path: #{modified}"
|
8
|
+
# puts "added absolute path: #{added}"
|
9
|
+
# puts "removed absolute path: #{removed}"
|
10
10
|
|
11
|
-
|
12
|
-
end
|
13
|
-
@listener.start # not blocking
|
11
|
+
# server.init_restart
|
12
|
+
# end
|
13
|
+
# @listener.start # not blocking
|
14
14
|
end
|
15
15
|
|
16
16
|
def after_server_stop(server:)
|
data/lib/istox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: istox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siong Leng
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amazing_print
|
@@ -519,7 +519,7 @@ files:
|
|
519
519
|
homepage: http://www.abc.com
|
520
520
|
licenses: []
|
521
521
|
metadata: {}
|
522
|
-
post_install_message:
|
522
|
+
post_install_message:
|
523
523
|
rdoc_options: []
|
524
524
|
require_paths:
|
525
525
|
- lib
|
@@ -530,12 +530,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
530
530
|
version: '0'
|
531
531
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
532
532
|
requirements:
|
533
|
-
- - "
|
533
|
+
- - ">="
|
534
534
|
- !ruby/object:Gem::Version
|
535
|
-
version:
|
535
|
+
version: '0'
|
536
536
|
requirements: []
|
537
|
-
rubygems_version: 3.0.
|
538
|
-
signing_key:
|
537
|
+
rubygems_version: 3.0.6
|
538
|
+
signing_key:
|
539
539
|
specification_version: 4
|
540
540
|
summary: istox backend shared gem
|
541
541
|
test_files: []
|