istox 0.1.64 → 0.1.65

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7224e7e98be65c528e7920616c358d9c1c77d462063d8240b0d1b80fe967eeea
4
- data.tar.gz: 0a3293c01e2167e44c024699ebe6b9ed5504cca3209d69ce19865096978ef459
3
+ metadata.gz: baeba6e8a85adc10e2f67cd95ee7edc73fcf3825903078d67591969a21d8730f
4
+ data.tar.gz: 548dd49ffa13f5d57cc4d7a23c847d655b79f7a91f9fc7160a932a8f9293918c
5
5
  SHA512:
6
- metadata.gz: fc8d59a3435173aca5dd287a65e853b6b8c36e775244886d7b4e3834a42b3cffa8af9f5dbab2a2f8dc1c22ef329bda9d7f5461aa5dae57ef3325dcadbca7c539
7
- data.tar.gz: 6b6f8bfefca1df247068df22fb2913f31a88bbe58d649676e8ba9d706d5a08ddbb529d5067ec23ab4f0557cea4a487e713e2adeaf6dad4abacb0bc3ebefff19e
6
+ metadata.gz: ebe7b75b9dd7c31c3a06d48ac462f610d66999c7c840a9b8421ff77966e9cd3283e6d063119787853f56cc4283303a4523fdd8af7beb992a2d1648b1e738f666
7
+ data.tar.gz: bc99791700da0446769ef60f52aab77b0d85f3f4e51b6596d40f0ea8ce2ddae4661ab6ce0a1dcb74e9fdcc66368ae4949f6fa5c374f5a2b176f56f9ff8152a75
@@ -20,7 +20,7 @@ module Istox
20
20
  uuid
21
21
  end
22
22
 
23
- def create!(tx_message, model, sid, action)
23
+ def create!(tx_message, model, sid, action, is_request: false)
24
24
  klass = ::Istox::BlockchainReceiptService.blockchain_receipt_class
25
25
 
26
26
  # delete the previous existing blockchain receipts
@@ -38,7 +38,8 @@ module Istox
38
38
  txid: tx_message.uuid,
39
39
  resource_name: model.class.name,
40
40
  resource_id: model.id,
41
- resource_action: action
41
+ resource_action: action,
42
+ is_request: is_request
42
43
  })
43
44
  else
44
45
  blockchain_receipt = klass.new(
@@ -46,7 +47,8 @@ module Istox
46
47
  txid: tx_message.uuid,
47
48
  resource_name: model.class.name,
48
49
  resource_id: model.id,
49
- resource_action: action
50
+ resource_action: action,
51
+ is_request: is_request
50
52
  )
51
53
  blockchain_receipt.save!
52
54
  end
@@ -19,6 +19,7 @@ module Istox
19
19
  t.timestamps
20
20
  t.string :sid
21
21
  t.string :status, :default => "pending"
22
+ t.boolean :is_request, :default => false
22
23
  t.integer :lock_version
23
24
  end
24
25
  end
data/lib/istox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = "0.1.64"
2
+ VERSION = "0.1.65"
3
3
  end
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.1.64
4
+ version: 0.1.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-24 00:00:00.000000000 Z
11
+ date: 2019-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny