istox 0.1.60.1 → 0.1.60.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/lib/istox/helpers/blockchain_receipt_service.rb +4 -6
- data/lib/istox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af555e65fe2a04792873d28339e6e1bf9275ac40f05005aa65991d56b10f87da
|
|
4
|
+
data.tar.gz: c5b5f0ae7b95f53f2a370039b2a088248d604e1ff82ba0f3a58d6c00200c5dec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72e2a199348083f2b0224512831af8a87623f95a87a4ddb5f2edd9313c01cf9ce7ee357f203deb7139eb478e819da6ecbf92ddac6aeb5ceafd626be09aed59d5
|
|
7
|
+
data.tar.gz: d9525d96a8ec2e516ba97329bd6e2ba3c6eff178471a733d7e4c7ceaea8fe286ae84112379811b336dbc48c54d71055a677c944b6e7bbd8433843495dc7af75d
|
|
@@ -9,8 +9,8 @@ module Istox
|
|
|
9
9
|
@@blockchain_receipt_klass
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
def generate_uuid
|
|
13
|
-
klass =
|
|
12
|
+
def self.generate_uuid
|
|
13
|
+
klass = ::Istox::BlockchainReceiptService.blockchain_receipt_class
|
|
14
14
|
uuid = SecureRandom.uuid
|
|
15
15
|
|
|
16
16
|
klass.create!({
|
|
@@ -21,7 +21,7 @@ module Istox
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def create!(tx_message, model, sid, action)
|
|
24
|
-
klass =
|
|
24
|
+
klass = ::Istox::BlockchainReceiptService.blockchain_receipt_class
|
|
25
25
|
|
|
26
26
|
# delete the previous existing blockchain receipts
|
|
27
27
|
klass.where(resource_name: model.class.name,
|
|
@@ -53,9 +53,7 @@ module Istox
|
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
def get_blockchain_receipt_class
|
|
56
|
+
def self.blockchain_receipt_class
|
|
59
57
|
raise "Have you forgetten to init blockchain receipt service?" if ::Istox::BlockchainReceiptService.get_blockchain_receipt_klass == nil
|
|
60
58
|
|
|
61
59
|
blockchain_receipt_klass = ::Istox::BlockchainReceiptService.get_blockchain_receipt_klass
|
data/lib/istox/version.rb
CHANGED