istox 0.1.104 → 0.1.105

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: 017e8b356e88bb9934ee5e01dce3ef6ce1ccdbf937bd5e8463ccd138c074ccee
4
- data.tar.gz: 606737426dc9eaf9ca1b3d1f879b0dda17f46dacc89817cacf80990ce8a9fad2
3
+ metadata.gz: 1cda3b4cd33b17f5927f1d29a4fde2324ee221683e344bd53052c6f62039d38b
4
+ data.tar.gz: ffaabc3866f8936bdca161e0e83e637cee393070f4026b5a864c464b8d3d7fb3
5
5
  SHA512:
6
- metadata.gz: 38bd1dcc56ce327d8c994f5743310cf3e34d3f70639513dcdfdcb0bd2a9b6a3c5cdef19e5b3b26c4ac43d8ee5742146cfb798b73be17fd4f9838bb14c7b5013c
7
- data.tar.gz: d338cf9fe623a1a99481581c57142a5637899509f319407d489662ce8c511318d5a5747a8f091072f17a796bc51038382162278b89b5a72b0cd9c1a739e506e2
6
+ metadata.gz: c38ab31c013e41825205258988b635cb94f09ba3f02ab44a895da6ee5c494901f56d1a5b169dc0b2d53ade609dd22922d03fc4a90addc5f80276cc1b7ff6ad0e
7
+ data.tar.gz: ad2d04b7e4638e96ef4517651ecc2721ae0a889fe37feeccf53ba6884da4158e39a556f54c3a2b3a487c95ea329f564803c377ad07387169139e1ed334499a61
@@ -23,7 +23,7 @@ module Istox
23
23
  status = transaction.success ? 'confirmed' : 'failed'
24
24
 
25
25
  receipt.update!(status: status, message: transaction.message,
26
- txhash: transaction.txnHashes.present? ? transaction.txnHashes.join(',') : nil)
26
+ txhash: transaction.txn_hashes.present? ? transaction.txn_hashes.join(',') : nil)
27
27
 
28
28
  resource = begin
29
29
  class_eval("::#{receipt.resource_name}", __FILE__, __LINE__).find(receipt.resource_id)
@@ -84,9 +84,11 @@ module Istox
84
84
 
85
85
  queue.subscribe manual_ack: manual_ack do |delivery_info, metadata, payload|
86
86
  processing_paylod = JSON.parse(payload)
87
- log.info "Processing in consumer: #{klass}, paylod: #{processing_paylod.inspect}"
87
+ payload_object = ::Istox::CommonHelper.to_open_struct(processing_paylod)
88
88
 
89
- klass.new.process(::Istox::CommonHelper.to_open_struct(processing_paylod, metadata, delivery_info))
89
+ log.info "Processing in consumer: #{klass}, paylod: #{payload_object.to_h.inspect}"
90
+
91
+ klass.new.process(payload_object, metadata, delivery_info)
90
92
  active_channel.ack(delivery_info.delivery_tag) if manual_ack
91
93
  rescue StandardError => e
92
94
  log.error(e)
data/lib/istox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.1.104'.freeze
2
+ VERSION = '0.1.105'.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.104
4
+ version: 0.1.105
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng