istox 0.2.14.1 → 0.2.14.2

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: aea8b1a8c847286a529b4e6627e8d8cda6381aa854dee381deafde926b07c083
4
- data.tar.gz: 2e7573a8dd1375a623a55af262a1edcb8970c2d13c097ebd716d24e73b9b62da
3
+ metadata.gz: 0bce8aeff0172a935744cd551d7484db72b031c6d5c1987e333556ca78371472
4
+ data.tar.gz: c64f7d731ad1295b6713225e347484c20cc52e240f33c096a5b2196f4ab3f1e0
5
5
  SHA512:
6
- metadata.gz: 133570109b3093d70a35aa0d4ca6104da324ac110970ab566a98d9aa71df752746d34783cccd615e83ac28cad38999fa77369adc7173d447890f026d259b5185
7
- data.tar.gz: 02bf2b2fbbfbdee7136534116f6068de180ef1707dd1a9a4a4e2349b17127e704b884dcbe81507743f56aff52f00724812c60abfd737116ffbf4b9c6180e74fe
6
+ metadata.gz: 0aff2668703907f10658e8d083224e26a15b01871aa73f7118b4405475b96d1442b8c451fa0261a173cc8b42c06c60af939fb2be60b91811e8a36818de53f19b
7
+ data.tar.gz: c5bef66c72b43dcd00f9c536a6bc8e186c1d9f657ec749346638ccc624b1762c08a1a5f9173ba609b426187353c8af40784ebfad09aee849dc1a33fe3c1efb11
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- istox (0.2.13)
4
+ istox (0.2.14.2)
5
5
  amazing_print
6
6
  awesome_print
7
7
  aws-sdk-sns (~> 1)
@@ -134,7 +134,7 @@ GEM
134
134
  ffi (1.15.3)
135
135
  globalid (0.4.2)
136
136
  activesupport (>= 4.2.0)
137
- google-protobuf (3.17.3)
137
+ google-protobuf (3.17.3-universal-darwin)
138
138
  googleapis-common-protos-types (1.1.0)
139
139
  google-protobuf (~> 3.14)
140
140
  graphlient (0.5.0)
@@ -145,7 +145,7 @@ GEM
145
145
  graphql-client (0.16.0)
146
146
  activesupport (>= 3.0)
147
147
  graphql (~> 1.8)
148
- grpc (1.38.0)
148
+ grpc (1.38.0-universal-darwin)
149
149
  google-protobuf (~> 3.15)
150
150
  googleapis-common-protos-types (~> 1.0)
151
151
  grpc-tools (1.38.0)
@@ -44,6 +44,9 @@ module Istox
44
44
  ## for request there we need a lock to prevent there is not duplicate request exist for single model
45
45
  ::Istox::RaceConditionHelper.acquire!(key) if is_request
46
46
 
47
+ ## validate the request, this validation is overridable by inherited class
48
+ receipt.validate_request!(model.class.name, model.id) if is_request
49
+
47
50
  # delete the previous existing blockchain receipts
48
51
  klass.where(resource_name: model.class.name, resource_id: model.id).destroy_all
49
52
 
@@ -5,5 +5,7 @@ module Istox
5
5
  def activity
6
6
  I18n.t("#{resource_name}.#{resource_action}") if resource_name.present? && resource_action.present?
7
7
  end
8
+
9
+ def validate_request!(model_name, model_id); end
8
10
  end
9
11
  end
data/lib/istox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.2.14.1'.freeze
2
+ VERSION = '0.2.14.2'.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.2.14.1
4
+ version: 0.2.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng