istox 0.1.81.pre.test6 → 0.1.81.pre.test7

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: cca0cb11f65d8ee1808b6d5fa12ed5f943f99f79b27de67a7b0c30d09dfb84eb
4
- data.tar.gz: 70532ad643266a04ebe91a732d63f11e2f05cdfc28d3db5eb1b90bd8fc218cbe
3
+ metadata.gz: 729001e75a3aabdc46971845276748d609b0bc3a7fd7fb9443c7557ee88f5e46
4
+ data.tar.gz: ba491528fe2bbcb6e61fdafe5b279cc8860b80a8f5173f5d5890916a92001b19
5
5
  SHA512:
6
- metadata.gz: a05980971896da6c358abd6d3fe5d3f97dfbe0eedecdc23d5704ffa7992afbe691933d920ec5a42f7c1b139645d6d50bdc9161e18292352ce941adb80a056dde
7
- data.tar.gz: a56355d7b6e883e16e39d358c6e53d2c68decdfc80129e80a155f7deb0055fa893af02a16fa7a5841f0df0fa3a01ac14f8946a6657880f4c773e32abd08d21fa
6
+ metadata.gz: 96e334e27ad0feb1b293895eb65daa3b2ec838625cab5ca04496d8c27292a468696ee621e737b85b39536cbe20b3fdce49c69e6735b20cb1bd95cbf02293d1c7
7
+ data.tar.gz: 0f62ea109c1607ca23841381837fcb19d5e6365d0fff8c8a42a367dcf705b08276bfbf75693bb6077c08fadbe4b9312924056fcfd42265570a38c93975fffe22
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- istox (0.1.81.pre.test5)
4
+ istox (0.1.81.pre.test7)
5
5
  binding_of_caller
6
6
  bunny (>= 2.12.0)
7
7
  graphlient
@@ -28,13 +28,13 @@ module Istox
28
28
  return if resource_handled?(receipt)
29
29
 
30
30
  if transaction.status == 'confirmed'
31
- resource.handle_confirm(receipt.resource_action)
31
+ resource.handle_confirm(receipt)
32
32
 
33
33
  mark_resource_handled(receipt)
34
34
  publish_to_frontend(resource, true, receipt, receipt.sid)
35
35
 
36
36
  elsif transaction.status == 'failed'
37
- resource.handle_fail(receipt.resource_action)
37
+ resource.handle_fail(receipt)
38
38
 
39
39
  mark_resource_handled(receipt)
40
40
  publish_to_frontend(resource, false, receipt, receipt.sid)
@@ -3,12 +3,12 @@ module Istox
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  # overrideable, when blockchain transaction has confirmed
6
- def handle_confirm(_resource_action)
6
+ def handle_confirm(_receipt)
7
7
  self
8
8
  end
9
9
 
10
10
  # overrideable, when blockchain transaction has failed
11
- def handle_fail(_resource_action)
11
+ def handle_fail(_receipt)
12
12
  self
13
13
  end
14
14
 
data/lib/istox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.1.81-test6'.freeze
2
+ VERSION = '0.1.81-test7'.freeze
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.81.pre.test6
4
+ version: 0.1.81.pre.test7
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-09-09 00:00:00.000000000 Z
11
+ date: 2019-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny