stellar_base-rails 2.0.0 → 3.0.0

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: ad5e6deb9ec8fd94347c8e26bfff097df0d952e5b7a141147821df9d67c4585b
4
- data.tar.gz: 643f567b8acfef28cf47839bd85720df4e09bff961db4644ac3f68e22a9df4cd
3
+ metadata.gz: 205c8a74625acc0c63b8d7cebccce557f28eeaaeecdd2e01c0a89f13858246b4
4
+ data.tar.gz: 03b3cd8048c9281b7c68e3b7c6c4f04698647e19c6e12e5473aedecaa2f13aba
5
5
  SHA512:
6
- metadata.gz: 576d430e3a1726827226c9f1c4c8097e74224bbbc0dd9f63a0ed69909276837d66eb13eed6301260f69a74a24db6b82c5e46cf259b225670ec650774e2091136
7
- data.tar.gz: d9671a83c5183e938f6538f8e52c3cc1c4f57317b76d96bcf8269a5a0a885214b2568e895d80280d3f850ec3d53b79a7ad40a9daeb6928583ba08245428269ef
6
+ metadata.gz: e7d5ea815097938ac7334b4b727a6bacbf6e30c1a42db21889b3cd9d11c0081bdd60344f600aa369790a87203d17fb2531a924ac0b0a57c2c5e2e29abcdd6d8c
7
+ data.tar.gz: 5ecb3a37a9ca87c75b20bf0dc4a9025150ff067c0e021896ef2a456f03fad7bb809072518215b93bac27bb99d636945335ad86d0ebe823f75390fde7a55a76ad
@@ -0,0 +1,5 @@
1
+ module StellarBase
2
+ class NotFoundError < StandardError
3
+
4
+ end
5
+ end
@@ -10,6 +10,8 @@ module StellarBase
10
10
  hash = c.remote_operation["transaction_hash"]
11
11
  c.remote_transaction = c.stellar_sdk_client.horizon.
12
12
  transaction(hash: hash).to_hash
13
+ rescue Faraday::ResourceNotFound
14
+ raise NotFoundError, "transaction #{hash} not found"
13
15
  end
14
16
 
15
17
  end
@@ -1,3 +1,3 @@
1
1
  module StellarBase
2
- VERSION = "2.0.0".freeze
2
+ VERSION = "3.0.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellar_base-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Subido
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-19 00:00:00.000000000 Z
11
+ date: 2019-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: disposable
@@ -196,14 +196,14 @@ dependencies:
196
196
  name: trailblazer
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - "~>"
199
+ - - ">="
200
200
  - !ruby/object:Gem::Version
201
201
  version: '2.0'
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - "~>"
206
+ - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '2.0'
209
209
  - !ruby/object:Gem::Dependency
@@ -435,6 +435,7 @@ files:
435
435
  - app/controllers/stellar_base/deposit_controller.rb
436
436
  - app/controllers/stellar_base/home_controller.rb
437
437
  - app/controllers/stellar_base/withdraw_controller.rb
438
+ - app/errors/stellar_base/not_found_error.rb
438
439
  - app/helpers/stellar_base/application_helper.rb
439
440
  - app/jobs/stellar_base/application_job.rb
440
441
  - app/jobs/stellar_base/enqueue_subscribe_accounts_job.rb
@@ -548,8 +549,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
548
549
  - !ruby/object:Gem::Version
549
550
  version: '0'
550
551
  requirements: []
551
- rubyforge_project:
552
- rubygems_version: 2.7.7
552
+ rubygems_version: 3.0.1
553
553
  signing_key:
554
554
  specification_version: 4
555
555
  summary: Mountable Stellar API Endpoints for Rails