istox 0.2.20.pre.0 → 0.2.20.2
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/redis_manager.rb +8 -0
- data/lib/istox/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8592d09643319b093e9bb6e226580ae3323f2b5b9bd98f79532ab624f8bcc204
|
4
|
+
data.tar.gz: ec9a24abcfa9f4faf346a4e4228c5d0782ef425c6d633f2f00f277b405a783c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee5321a1c3493d4723752c46e73c557189a9c7d760b7e65661be9ac5c33881c89c89d397f8b954ecd6c13627218cfce50697defd61449015f235a18ea590ff70
|
7
|
+
data.tar.gz: 9839764dd1863dca538e5b6cc05f371c8a61430f4130da65126bbf0f25197fc5f1e91171b9eacc4097402cdfa6d34f2dcca1800c2df11e78e3445b940da7e815
|
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..."
|
@@ -24,6 +24,14 @@ module Istox
|
|
24
24
|
db: 6
|
25
25
|
))
|
26
26
|
end
|
27
|
+
|
28
|
+
# for send_grid email templates cache
|
29
|
+
def sendgrid_email_templates
|
30
|
+
@sendgrid_email_templates ||= Redis::Namespace.new(:sendgrid_email_templates, redis: Redis.new(
|
31
|
+
url: ENV['REDIS_URL'] || 'redis://127.0.0.1:16379',
|
32
|
+
db: 5
|
33
|
+
))
|
34
|
+
end
|
27
35
|
end
|
28
36
|
end
|
29
37
|
end
|
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.2.20.
|
4
|
+
version: 0.2.20.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siong Leng
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amazing_print
|
@@ -530,9 +530,9 @@ 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
537
|
rubygems_version: 3.0.8
|
538
538
|
signing_key:
|