stellar_base-rails 0.8.0 → 0.8.1

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: 952ff7b6daad012f4455ec2fb98a767ad5db4736b8de3b09a145e33371f8125b
4
- data.tar.gz: fa6d0be7aeb5bdfb813a966773d3770808de28284e4eefe32a4ec3bee5dfc37b
3
+ metadata.gz: 46943649b87fdb15531d65c1814bc38746b9055400350bfec43e500b21d73ebe
4
+ data.tar.gz: 1594da4cbaabde37599a8181a6a4b52a84b8cfdbe74c9c89af957d0f42334126
5
5
  SHA512:
6
- metadata.gz: c30f41f12189c32702c59e33a0bb166ea185b657fc88c6302ff54d5fb6c7465f54da185351eaae567491151b1594e5a1b90769515b59b13882a37cf25be41223
7
- data.tar.gz: 906829e824d97bab00df168602ec6614fd34da9aceea958121f0c227f56512dbfdd7e78435f107e2e0d453f3e88a0d1bc893ac77900b843e9757c563e48a23fb
6
+ metadata.gz: 24b69a3777a871e73a8ee8658a2e3f4b2b2f04cd96445a3cdbb21d12fa665dd0d168107f059649474a940d779a7547ac78405f87eb988d16679b205d0c06527b
7
+ data.tar.gz: e9181700df9814e8135276a41ae5c32fd129845f38450eb0fd69b173345cc64e736b9c4745c5b8b1677d873a17dbfdfdfef363d3394f2c07d5783acb875b6387
@@ -13,7 +13,9 @@ module StellarBase
13
13
  tx_id: c.tx_id,
14
14
  )
15
15
 
16
- c.skip_remaining! if c.deposit.present?
16
+ if c.deposit.present?
17
+ c.skip_remaining!("Deposit trigger previously made, skipping")
18
+ end
17
19
  end
18
20
 
19
21
  end
@@ -17,7 +17,7 @@ module StellarBase
17
17
  )
18
18
 
19
19
  if c.deposit_request.blank?
20
- c.fail_and_return! "No DepositRequest found for " +
20
+ c.skip_remaining! "No DepositRequest found for " +
21
21
  [asset_code, deposit_address].join(":")
22
22
  end
23
23
  end
data/lib/stellar_base.rb CHANGED
@@ -45,9 +45,7 @@ module StellarBase
45
45
  end
46
46
 
47
47
  def self.on_deposit_trigger(network:, deposit_address:, tx_id:, amount:)
48
- result = DepositRequests::Trigger.(network, deposit_address, tx_id, amount)
49
- raise StandardError, result.message if result.failure?
50
- result
48
+ DepositRequests::Trigger.(network, deposit_address, tx_id, amount)
51
49
  end
52
50
 
53
51
  def self.included_module?(module_name)
@@ -1,3 +1,3 @@
1
1
  module StellarBase
2
- VERSION = "0.8.0".freeze
2
+ VERSION = "0.8.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellar_base-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Subido
@@ -476,7 +476,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
476
476
  version: '0'
477
477
  requirements: []
478
478
  rubyforge_project:
479
- rubygems_version: 2.7.7
479
+ rubygems_version: 2.7.6
480
480
  signing_key:
481
481
  specification_version: 4
482
482
  summary: Mountable Stellar API Endpoints for Rails