istox 0.1.157.8.1 → 0.1.157.9

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: 2e787b820875724210c795bc5680cf04aa5a97a1dd970b340401ae31b3f1e633
4
- data.tar.gz: 9cbb1ce9c31dda340d667c6b11c11f370a4a93399c55f9223889576f56d74daf
3
+ metadata.gz: 7431b108df74c8c693b46e81970dcae1046dbd5100c43946bb64b4c1ea221c57
4
+ data.tar.gz: 7df37bee665f045e849efa30ccf538e563df1eff688a29fdc945859f115c86c3
5
5
  SHA512:
6
- metadata.gz: 6d3fb11ec569218347a09adfd9cbe5776f2b6d96ea1cb2d395e199a285e5d8d6911f44e85d2620772f369d16f2f3899ab718139cc9715a7a255fd33b51291e3b
7
- data.tar.gz: 135d14048048cedb8dcbc1bf10fa58a42f0a79d3db433376574e594a1497875a2708f52f349165dc2e5954115a3691d96ef53b456040be6c9348cf49c2b03339
6
+ metadata.gz: d949196f2bf4d71575317c10d9829480ca7ece2c9719c87f9d176717478c89da198fce1adb57bd5f6da107e8af98dbcc54de23b2c9bc38139b62184bad9a0842
7
+ data.tar.gz: 980e92c26253c2594206a559e3da5363ff2cc8ca77969425505118ba084da3579edf67ff8acde3ed6a13261cb7a761754480f6ccf3ceadb04bf5db7057e39843
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- istox (0.1.157.9)
4
+ istox (0.1.157.5)
5
5
  amazing_print
6
6
  awesome_print
7
7
  aws-sdk-sns (~> 1)
@@ -86,13 +86,14 @@ GEM
86
86
  aws-xray-sdk (0.11.4)
87
87
  aws-sdk-xray (~> 1.4.0)
88
88
  multi_json (~> 1)
89
+ bigdecimal (2.0.0)
89
90
  binding_of_caller (0.8.0)
90
91
  debug_inspector (>= 0.0.1)
91
92
  builder (3.2.4)
92
93
  bullet (5.7.6)
93
94
  activesupport (>= 3.0.0)
94
95
  uniform_notifier (~> 1.11.0)
95
- bunny (2.17.0)
96
+ bunny (2.16.1)
96
97
  amq-protocol (~> 2.3, >= 2.3.1)
97
98
  byebug (11.1.3)
98
99
  coderay (1.1.2)
@@ -126,14 +127,14 @@ GEM
126
127
  faraday (>= 1.0)
127
128
  faraday_middleware
128
129
  graphql-client
129
- graphql (1.11.4)
130
+ graphql (1.11.3)
130
131
  graphql-client (0.16.0)
131
132
  activesupport (>= 3.0)
132
133
  graphql (~> 1.8)
133
- grpc (1.32.0-universal-darwin)
134
- google-protobuf (~> 3.13)
134
+ grpc (1.31.1-universal-darwin)
135
+ google-protobuf (~> 3.12)
135
136
  googleapis-common-protos-types (~> 1.0)
136
- grpc-tools (1.32.0)
137
+ grpc-tools (1.31.1)
137
138
  gruf (2.8.1)
138
139
  activesupport (> 4)
139
140
  concurrent-ruby (> 1)
@@ -170,7 +171,8 @@ GEM
170
171
  nio4r (2.3.1)
171
172
  nokogiri (1.10.9)
172
173
  mini_portile2 (~> 2.4.0)
173
- oj (3.10.14)
174
+ oj (3.10.9)
175
+ bigdecimal (~> 2.0)
174
176
  ougai (1.8.5)
175
177
  oj (~> 3.10)
176
178
  paranoia (2.4.2)
@@ -8,8 +8,8 @@ module Istox
8
8
  @@blockchain_receipt_klass
9
9
  end
10
10
 
11
- def self.request(sid:, action:, before:, execute:)
12
- start(sid: sid, action: action, before: before, execute: execute, is_request: true)
11
+ def self.request(sid:, action:, before:, execute:, request_reason: nil)
12
+ start(sid: sid, action: action, before: before, execute: execute, is_request: true, request_reason: request_reason)
13
13
  end
14
14
 
15
15
  def self.run(sid:, action:, before:, execute:)
@@ -19,7 +19,7 @@ module Istox
19
19
  private
20
20
 
21
21
  # before is the proc that will be executed before, must return the main model blockchain receipt will bind to
22
- def start(sid:, action:, before:, execute:, is_request: false)
22
+ def start(sid:, action:, before:, execute:, is_request: false, request_reason: nil)
23
23
  # create blockchain receipt first
24
24
  klass = blockchain_receipt_class
25
25
  uuid = ::SecureRandom.uuid
@@ -27,6 +27,7 @@ module Istox
27
27
  txid: uuid,
28
28
  sid: sid,
29
29
  is_request: is_request,
30
+ request_reason: request_reason,
30
31
  resource_action: action
31
32
  )
32
33
 
@@ -130,25 +130,7 @@ module Istox
130
130
  next unless ce.present?
131
131
 
132
132
  copy_email_data = email_data.clone
133
-
134
- # if it is just email to cc
135
- if ce.is_a? String
136
- copy_email_data[:email] = ce
137
- else
138
- # if it is a object hash
139
- # {
140
- # email: xxxx
141
- # params: {
142
- # istoxP1: xxxx,
143
- # istoxP2: xxxx
144
- # }
145
- # }
146
- next unless ce[:email].present?
147
-
148
- copy_email_data[:email] = ce[:email]
149
- copy_email_data = copy_email_data.merge(ce[:params])
150
- end
151
-
133
+ copy_email_data[:email] = ce
152
134
  copy_email_data.delete(:copy_emails)
153
135
  copy_email_data_arr << copy_email_data
154
136
  end
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.1.157.8.1'.freeze
2
+ VERSION = '0.1.157.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.157.8.1
4
+ version: 0.1.157.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng